Hi Daniel,

On 8/2/06, Daniel Trstenjak <[EMAIL PROTECTED]> wrote:
On Wed, Aug 02, 2006 at 09:38:53AM +0100, Robert Osfield wrote:
> Could you bit a bit more specific, I can't find any cast of any type
> in NodeVisitor header or .cpp.

NodeVisitor.h:
virtual void apply(Geode& node)                     { apply((Node&)node); }
virtual void apply(Billboard& node)                 { apply((Geode&)node); }
virtual void apply(Group& node)                     { apply((Node&)node); }

Ok, I was looking for a reinterpret_cast..

Anyway, I have yet to hear of a problem with NodeVisitor, the multiple
inheritance issue is mute as the Node's don't multiple inherit.

Forward declaring of classes is essential for NodeVisitor, as the
Node's themselves have to include the NodeVisitor to implement the
accept.   The only way around it would to move the apply() into the
.cpp.

Since the problem seems pretty academic, rather than real then I'm
very much inclined to stick with code the existing code.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to