osgPresentation::AnimationMaterial Class Reference

Inheritance diagram for osgPresentation::AnimationMaterial:

osg::Object osg::Referenced

List of all members.

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 &copyop=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
TimeControlPointMapgetTimeControlPointMap ()
const TimeControlPointMapgetTimeControlPointMap () 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


Detailed Description

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.

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
SWING 
LOOP 
NO_LOOPING 


Constructor & Destructor Documentation

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]


Member Function Documentation

osgPresentation::AnimationMaterial::META_Object ( osg  ,
AnimationMaterial   
)

bool osgPresentation::AnimationMaterial::getMaterial ( double  time,
osg::Material material 
) const

get the transformation matrix for a point in time.

void osgPresentation::AnimationMaterial::insert ( double  time,
osg::Material material 
)

double osgPresentation::AnimationMaterial::getFirstTime (  )  const [inline]

double osgPresentation::AnimationMaterial::getLastTime (  )  const [inline]

double osgPresentation::AnimationMaterial::getPeriod (  )  const [inline]

void osgPresentation::AnimationMaterial::setLoopMode ( LoopMode  lm  )  [inline]

LoopMode osgPresentation::AnimationMaterial::getLoopMode (  )  const [inline]

TimeControlPointMap& osgPresentation::AnimationMaterial::getTimeControlPointMap (  )  [inline]

const TimeControlPointMap& osgPresentation::AnimationMaterial::getTimeControlPointMap (  )  const [inline]

void osgPresentation::AnimationMaterial::read ( std::istream &  in  ) 

read the anumation path from a flat ascii file stream.

void osgPresentation::AnimationMaterial::write ( std::ostream &  out  )  const

write the anumation path to a flat ascii file stream.

bool osgPresentation::AnimationMaterial::requiresBlending (  )  const

void osgPresentation::AnimationMaterial::interpolate ( osg::Material material,
float  r,
const osg::Material lhs,
const osg::Material rhs 
) const [protected]


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Fri Mar 19 19:52:58 2010 for openscenegraph by  doxygen 1.5.6