#include <AnimatedTransform.h>
Inheritance diagram for nvsg::AnimatedTransform:
Public Member Functions | |
virtual NVSG_API AnimatedTransform * | clone (void) const |
Create a new AnimatedTransforms by copying from this. | |
NVSG_API const Animation< nvmath::Trafo > * | getAnimation (void) const |
Get a constant pointer to the animation. | |
NVSG_API void | setAnimation (const Animation< nvmath::Trafo > *pAnimation) |
Set the Animation. | |
NVSG_API void | setAnimationFrame (size_t frame) |
Set the animation frame. | |
virtual NVSG_API void | setCenter (const nvmath::Vec3f ¢er) |
Set the center of rotation of this transformation. | |
virtual NVSG_API void | setIdentity (void) |
Set the Transform to be the identity. | |
virtual NVSG_API void | setOrientation (const nvmath::Quatf &orientation) |
Set the rotational part of this transformation, using a quaternion. | |
virtual NVSG_API void | setScaling (const nvmath::Vec3f &scaling) |
Set the scaling part of this transformation. | |
virtual NVSG_API void | setTranslation (const nvmath::Vec3f &translation) |
Set the translational part of this transformation. | |
virtual NVSG_API size_t | getNumberOfFrames (void) const |
Get the number of animation frames that are part of this Node. | |
virtual NVSG_API DataID | getDataID (void) const |
Get the DataID of the data of this object. | |
virtual NVSG_API bool | isDataShared (void) const |
Determine whether the data of this object is shared. | |
Static Public Member Functions | |
static NVSG_API const AnimatedTransform * | create (const Animation< nvmath::Trafo > *pAnimation=NULL) |
Create an AnimatedTransform. | |
static NVSG_API const AnimatedTransform * | createFromBase (const Transform &rhs, const Animation< nvmath::Trafo > *pAnimation=NULL) |
Create an AnimatedTransform by copying from a Transform. | |
Protected Member Functions | |
NVSG_API | AnimatedTransform (const Animation< nvmath::Trafo > *pAnimation) |
Constructor with an Animation. | |
NVSG_API | AnimatedTransform (const Transform &rhs, const Animation< nvmath::Trafo > *pAnimation) |
Constructur with a Transform and an Animation. | |
NVSG_API | AnimatedTransform (const AnimatedTransform &rhs) |
Copy Constructor. | |
virtual NVSG_API | ~AnimatedTransform (void) |
Protected destructor to prevent explicit creation on stack. |
An AnimatedTransform is a Transform that also holds an Animation. The transformation is determined from the Animation with every frame.
|
Constructor with an Animation.
|
|
Constructur with a Transform and an Animation.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create an AnimatedTransform. There is an optional argument pAnimation to use a given Animation<Trafo>.
|
|
Create an AnimatedTransform by copying from a Transform. There is an optional argument pAnimation to use a given Animation<Trafo>.
|
|
Create a new AnimatedTransforms by copying from this.
Reimplemented from nvsg::Transform. |
|
Get a constant pointer to the animation.
|
|
Set the Animation. A previous Animation is dereferenced, the new one is referenced, and the animation frame is reset to zero.
|
|
Set the animation frame. The transformation for animation step frame is calculated and used as the current.
|
|
Set the center of rotation of this transformation.
Reimplemented from nvsg::Transform. |
|
Set the Transform to be the identity.
Reimplemented from nvsg::Transform. |
|
Set the rotational part of this transformation, using a quaternion.
Reimplemented from nvsg::Transform. |
|
Set the scaling part of this transformation.
Reimplemented from nvsg::Transform. |
|
Set the translational part of this transformation.
Reimplemented from nvsg::Transform. |
|
Get the number of animation frames that are part of this Node.
Reimplemented from nvsg::Group. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::Transform. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::Transform. |