#include <AnimatedTriangles.h>
Inheritance diagram for nvsg::AnimatedTriangles:
Public Methods | |
virtual NVSG_API const AnimatedTriangles * | clone (void) const |
Create a new AnimatedTriangles by copying from this. More... | |
NVSG_API const Animation< VNVector > * | getAnimation (void) const |
Get a constant pointer to the animation. More... | |
NVSG_API void | setAnimation (const Animation< VNVector > *pAnimation) |
Set the Animation. More... | |
NVSG_API void | setAnimationFrame (size_t frame) |
Set the animation frame. More... | |
virtual NVSG_API size_t | getNumberOfFrames (void) const |
Get the number of animation frames. More... | |
virtual NVSG_API DataID | getDataID (void) const |
Get the DataID of the data of this object. More... | |
virtual NVSG_API bool | isDataShared (void) const |
Determine whether the data of this object is shared. More... | |
Static Public Methods | |
NVSG_API const AnimatedTriangles * | create (const Animation< VNVector > *pAnimation=NULL) |
Create an AnimatedTriangles. More... | |
NVSG_API const AnimatedTriangles * | createFromBase (const Triangles &rhs, const Animation< VNVector > *pAnimation=NULL) |
Create an AnimatedTriangles by copying from a Triangles. More... | |
Protected Methods | |
NVSG_API | AnimatedTriangles (const Animation< VNVector > *pAnimation) |
Constructor with an Animation. More... | |
NVSG_API | AnimatedTriangles (const Triangles &rhs, const Animation< VNVector > *pAnimation) |
Constructor with a Triangles and an Animation. More... | |
NVSG_API | AnimatedTriangles (const AnimatedTriangles &rhs) |
Copy Constructor. More... | |
virtual NVSG_API | ~AnimatedTriangles (void) |
Protected destructor to prevent explicit creation on stack. More... | |
virtual NVSG_API void | onSetVertexAttributeData (void) |
Vertex attribute data have been changed. More... |
This class is a Triangles with an Animation<VNVector>. The Animation defines the vertices and normals for each animation step.
|
Constructor with an Animation.
|
|
Constructor with a Triangles and an Animation.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create an AnimatedTriangles. There is an optional argument pAnimation to use a given Animation<VNVector>.
|
|
Create an AnimatedTriangles by copying from a Triangles. There is an optional argument pAnimation to use a given Animation<VNVector>.
|
|
Create a new AnimatedTriangles by copying from this.
Reimplemented from nvsg::Triangles. |
|
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 vertices/normals for animation step frame are used as the current.
|
|
Get the number of animation frames.
Reimplemented from nvsg::Drawable. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::Triangles. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::Triangles. |
|
Vertex attribute data have been changed. This function gets called from the framework, whenever certain vertex attribute data has been changed. Classes that derive from GeoSet may overload this function to add some necessary work after the vertex attribute data has been changed. Reimplemented from nvsg::GeoSet. |