|
openscenegraph
|
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.
| typedef std::map<double, osg::ref_ptr<osg::Material> > osgPresentation::AnimationMaterial::TimeControlPointMap |
| osgPresentation::AnimationMaterial::AnimationMaterial | ( | ) | [inline] |
| osgPresentation::AnimationMaterial::AnimationMaterial | ( | const AnimationMaterial & | ap, |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
| ) | [inline] |
| virtual osgPresentation::AnimationMaterial::~AnimationMaterial | ( | ) | [inline, protected, virtual] |
| double osgPresentation::AnimationMaterial::getFirstTime | ( | ) | const [inline] |
| double osgPresentation::AnimationMaterial::getLastTime | ( | ) | const [inline] |
| LoopMode osgPresentation::AnimationMaterial::getLoopMode | ( | ) | const [inline] |
| bool osgPresentation::AnimationMaterial::getMaterial | ( | double | time, |
| osg::Material & | material | ||
| ) | const |
get the transformation matrix for a point in time.
| double osgPresentation::AnimationMaterial::getPeriod | ( | ) | const [inline] |
| TimeControlPointMap& osgPresentation::AnimationMaterial::getTimeControlPointMap | ( | ) | [inline] |
| const TimeControlPointMap& osgPresentation::AnimationMaterial::getTimeControlPointMap | ( | ) | const [inline] |
| void osgPresentation::AnimationMaterial::insert | ( | double | time, |
| osg::Material * | material | ||
| ) |
| void osgPresentation::AnimationMaterial::interpolate | ( | osg::Material & | material, |
| float | r, | ||
| const osg::Material & | lhs, | ||
| const osg::Material & | rhs | ||
| ) | const [protected] |
| osgPresentation::AnimationMaterial::META_Object | ( | osg | , |
| AnimationMaterial | |||
| ) |
| void osgPresentation::AnimationMaterial::read | ( | std::istream & | in | ) |
read the anumation path from a flat ascii file stream.
| bool osgPresentation::AnimationMaterial::requiresBlending | ( | ) | const |
| void osgPresentation::AnimationMaterial::setLoopMode | ( | LoopMode | lm | ) | [inline] |
| void osgPresentation::AnimationMaterial::write | ( | std::ostream & | out | ) | const |
write the anumation path to a flat ascii file stream.
1.7.4