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/osgclip/osgclip.cpp

    r1954 r4713  
    1616#include <osgGA/FlightManipulator> 
    1717#include <osgGA/DriveManipulator> 
    18 #include <osgUtil/TransformCallback> 
    1918 
    2019#include <osgProducer/Viewer> 
     
    6665    osg::MatrixTransform* transform= new osg::MatrixTransform; 
    6766 
    68     osg::NodeCallback* nc = new osgUtil::TransformCallback(subgraph->getBound().center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(45.0f)); 
     67    osg::NodeCallback* nc = new osg::AnimationPathCallback(subgraph->getBound().center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(45.0f)); 
    6968    transform->setUpdateCallback(nc); 
    7069