Re: [Fresco-devel] Bogus traversals (and patch)

Tobias Hunger <[email protected]>
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 27 August 2002 15:05, Stefan Seefeld wrote:
> What about the template pattern then ? Add a method 'traverse_body'
> to the MonoGraphic (and 'traverse_children' to the PolyGraphic) which
> implements the subgraph traversal. These methods are then to be called
> *from inside* draw / pick.
>
> That's not that different from the current scheme, just a bit more
> formal. The traverse_body is essentially the same as
> MonoGraphic::traverse...

This sounds like a clean solution to me. Except for one thing: Have one method 
'continue_traversal'  for both,  MonoGraphic and PolyGraphic. That way a 
custom Traversal does not need to figure out what it is dealing with before 
being able to continue.

The downside is that we will need to expose yet another method via CORBA. 
Without that such a client-side traversal Nicholas has in mind  is not 
feastable. Nicholas' proposal did not result in the need to change the 
interfaces, it even makes it a little bit harder for client-side graphics to 
break the rendering alltogether.

- -- 
Gruss,
Tobias

- ------------------------------------------------------------
Tobias Hunger           The box said: 'Windows 95 or better'
[email protected]                      So I installed Linux.
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9a5Nkv0FZW3NyoqURAjlWAJ42FpkWSSZuj13RufHnWBetDdP9zwCgsiVN
ljHgTWIcUpR2btMUizHVN0E=
=V8Bq
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.