Hi Pasquale,

I have never contemplated AnimationPath being something one would
derive from, rather its just an off the shelf container class.
Potentially would could make methods virtual, but then perhaps just
implementing your own class from scatch would be apporpriate.

Robert.

On 10/17/06, Pasquale Tricarico <[EMAIL PROTECTED]> wrote:
Hi,

I'm subclassing osg::AnimationPath and reimplementing the virtual
method getInterpolatedControlPoint to use a custom function to return
valid ControlPoints at the requested time. This allows me to have the
local TimeControlPointMap data container completely empty, and still
return genuine CP. So I guess the methods
osg::AnimationPath::getFirstTime() and ...::getLastTime() should be
virtual too, so that I could reimplement them to return correct
values. Is this correct? Maybe the osg::AnimationPath::empty() method
should be virtual too, or replaced by something more generic like a
virtual bool osg::AnimationPath::haveData()? Comments are welcome.

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

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

Reply via email to