Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::AbstractAnimationTrack Class Referenceabstract

Base class of animation tracks. More...

#include <mitsuba/core/track.h>

+ Inheritance diagram for mitsuba::AbstractAnimationTrack:

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 AbstractAnimationTrackclone () const =0
 Clone this track. More...
 
virtual const ClassgetClass () 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 Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_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< Floatm_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...
 

Detailed Description

Base class of animation tracks.

Member Enumeration Documentation

Enumerator
EInvalid 
ETranslationX 
ETranslationY 
ETranslationZ 
ETranslationXYZ 
EScaleX 
EScaleY 
EScaleZ 
EScaleXYZ 
ERotationX 
ERotationY 
ERotationZ 
ERotationQuat 

Constructor & Destructor Documentation

mitsuba::AbstractAnimationTrack::AbstractAnimationTrack ( EType  type,
size_t  nKeyframes 
)
inlineprotected
virtual mitsuba::AbstractAnimationTrack::~AbstractAnimationTrack ( )
inlineprotectedvirtual

Member Function Documentation

virtual AbstractAnimationTrack* mitsuba::AbstractAnimationTrack::clone ( ) const
pure virtual

Clone this track.

Implemented in mitsuba::AnimationTrack< T >.

virtual const Class* mitsuba::AbstractAnimationTrack::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from Object.

size_t mitsuba::AbstractAnimationTrack::getSize ( ) const
inline

Return the number of keyframes.

Float mitsuba::AbstractAnimationTrack::getTime ( size_t  idx) const
inline

Return the time value of a certain keyframe.

EType mitsuba::AbstractAnimationTrack::getType ( ) const
inline

Return the type of this track.

virtual void mitsuba::AbstractAnimationTrack::serialize ( Stream stream) const
pure virtual

Serialize to a binary data stream.

Implemented in mitsuba::AnimationTrack< T >.

void mitsuba::AbstractAnimationTrack::setTime ( size_t  idx,
Float  time 
)
inline

Set the time value of a certain keyframe.

Friends And Related Function Documentation

template<typename T >
friend class AnimationTrack
friend

Member Data Documentation

Class* mitsuba::AbstractAnimationTrack::m_theClass
static
std::vector<Float> mitsuba::AbstractAnimationTrack::m_times
protected
EType mitsuba::AbstractAnimationTrack::m_type
protected

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