Public Types |
| enum | LoopMode { SWING,
LOOP,
NO_LOOPING
} |
typedef std::map< double,
osg::ref_ptr< osg::Material > > | TimeControlPointMap |
Public Member Functions |
| | AnimationMaterial () |
| | AnimationMaterial (const AnimationMaterial &ap, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| | META_Object (osg, AnimationMaterial) |
| bool | getMaterial (double time, osg::Material &material) const |
| void | insert (double time, osg::Material *material) |
| double | getFirstTime () const |
| double | getLastTime () const |
| double | getPeriod () const |
| void | setLoopMode (LoopMode lm) |
| LoopMode | getLoopMode () const |
| TimeControlPointMap & | getTimeControlPointMap () |
| const TimeControlPointMap & | getTimeControlPointMap () const |
| void | read (std::istream &in) |
| void | write (std::ostream &out) const |
| bool | requiresBlending () const |
Protected Member Functions |
| virtual | ~AnimationMaterial () |
| void | interpolate (osg::Material &material, float r, const osg::Material &lhs, const osg::Material &rhs) const |
Protected Attributes |
| TimeControlPointMap | _timeControlPointMap |
| LoopMode | _loopMode |
AnimationMaterial for specify the time varying transformation pathway to use when update camera and model objects. Subclassed from Transform::ComputeTransformCallback allows AnimationMaterial to be attached directly to Transform nodes to move subgraphs around the scene.