Base class of animation tracks. More...
#include <mitsuba/core/track.h>
Public Types | |
enum | EType { EInvalid = 0, ETranslationX = 1, ETranslationY = 2, ETranslationZ = 3, ETranslationXYZ = 4, EScaleX = 5, EScaleY = 6, EScaleZ = 7, EScaleXYZ = 8, ERotationX = 9, ERotationY = 10, ERotationZ = 11, ERotationQuat = 12 } |
Public Member Functions | |
EType | getType () const |
Return the type of this track. More... | |
void | setTime (size_t idx, Float time) |
Set the time value of a certain keyframe. More... | |
Float | getTime (size_t idx) const |
Return the time value of a certain keyframe. More... | |
size_t | getSize () const |
Return the number of keyframes. More... | |
virtual void | serialize (Stream *stream) const =0 |
Serialize to a binary data stream. More... | |
virtual AbstractAnimationTrack * | clone () const =0 |
Clone this track. More... | |
virtual const Class * | getClass () const |
Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
Object () | |
Construct a new object. More... | |
int | getRefCount () const |
Return the current reference count. More... | |
void | incRef () const |
Increase the reference count of the object by one. More... | |
void | decRef (bool autoDeallocate=true) const |
Decrease the reference count of the object and possibly deallocate it. More... | |
virtual std::string | toString () const |
Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
static Class * | m_theClass |
Static Public Attributes inherited from Object | |
static Class * | m_theClass |
Pointer to the object's class descriptor. More... | |
Protected Member Functions | |
AbstractAnimationTrack (EType type, size_t nKeyframes) | |
virtual | ~AbstractAnimationTrack () |
Protected Member Functions inherited from Object | |
virtual | ~Object () |
Virtual private deconstructor. (Will only be called by ref) More... | |
Protected Attributes | |
EType | m_type |
std::vector< Float > | m_times |
Friends | |
template<typename T > | |
class | AnimationTrack |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
static void | staticInitialization () |
Initializes the built-in reference count debugger (if enabled) More... | |
static void | staticShutdown () |
Free the memory taken by staticInitialization() More... | |
Base class of animation tracks.
|
inlineprotected |
|
inlineprotectedvirtual |
|
pure virtual |
Clone this track.
Implemented in mitsuba::AnimationTrack< T >.
|
virtual |
Retrieve this object's class.
Reimplemented from Object.
|
inline |
Return the number of keyframes.
|
inline |
Return the time value of a certain keyframe.
|
inline |
Return the type of this track.
|
pure virtual |
Serialize to a binary data stream.
Implemented in mitsuba::AnimationTrack< T >.
|
inline |
Set the time value of a certain keyframe.
|
friend |
|
static |
|
protected |
|
protected |