Hi Robert,

25.05.2011 13:25, Robert Osfield wrote:
HI Mikhail,

So the problem is the the Rotate3DCommnd is being upcast to the base
class MotionCommand and then never the Constraint and DraggerCallbacks
only have their constrain(MotionCommand&)/recive(MotionCommand&)
methods called rather than the original subclass method i,e,
constain(Rotate3DCommand&) and recive(Rotate3DCommand&)?

Yes, it is.

If so then the problem looks to be one that would need tackling via a
double dispatch vistor pattern solution like used in
osg::Node::accept(NodeVisitor&)/osg::NodeVisitor::apply(Node&).  I am
on the right track?

Yes, you are right.

Mikhail.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to