Show
Ignore:
Timestamp:
11/09/05 16:11:22 (8 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/osgprerendercubemap/osgprerendercubemap.cpp

    r4663 r4713  
    2020#include <osg/PositionAttitudeTransform> 
    2121 
    22 #include <osgUtil/TransformCallback> 
    23  
    2422#include <osg/CameraNode> 
    2523#include <osg/TexGenNode> 
     
    3735  ref_ptr<MatrixTransform> transform_2 = new MatrixTransform; 
    3836  transform_2->addChild(geode_2.get()); 
    39   transform_2->setUpdateCallback(new osgUtil::TransformCallback(Vec3(0, 0, 0), Y_AXIS, inDegrees(45.0f))); 
     37  transform_2->setUpdateCallback(new osg::AnimationPathCallback(Vec3(0, 0, 0), Y_AXIS, inDegrees(45.0f))); 
    4038  scene->addChild(transform_2.get()); 
    4139 
     
    4341  ref_ptr<MatrixTransform> transform_3 = new MatrixTransform; 
    4442  transform_3->addChild(geode_3.get()); 
    45   transform_3->setUpdateCallback(new osgUtil::TransformCallback(Vec3(0, 0, 0), Y_AXIS, inDegrees(-22.5f))); 
     43  transform_3->setUpdateCallback(new osg::AnimationPathCallback(Vec3(0, 0, 0), Y_AXIS, inDegrees(-22.5f))); 
    4644  scene->addChild(transform_3.get()); 
    4745