Show
Ignore:
Timestamp:
11/09/05 16:11:22 (9 years ago)
Author:
robert
Message:

Added the support in AnimationPathCallback? for taking a pivot, axis and rotation rate
paramters in its constructor to allow it to be used to create rotations around a point.
This provides the same interface and functionality as osgUtil::TransformCallback? but
has the advantage and AnimationPathCallback? is fully supported by the .osg and .ive file formats.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osglogo/osglogo.cpp

    r2419 r4713  
    1010 
    1111#include <osgUtil/Tesselator> 
    12 #include <osgUtil/TransformCallback> 
    1312#include <osgUtil/CullVisitor> 
    1413 
     
    191190{ 
    192191    osg::MatrixTransform* xform = new osg::MatrixTransform; 
    193     xform->setUpdateCallback(new osgUtil::TransformCallback(bb.center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(10.0f))); 
     192    xform->setUpdateCallback(new osg::AnimationPathCallback(bb.center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(10.0f))); 
    194193 
    195194    osg::Node* bluemarble = osgDB::readNodeFile(filename.c_str());