Blender V2.61 - r43446
Public Member Functions | Protected Attributes

AnimChannel< Scalar > Class Template Reference

An animated attribute channel. More...

#include <attributes.h>

Inheritance diagram for AnimChannel< Scalar >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AnimChannel ()
 AnimChannel (Scalar null)
 AnimChannel (vector< Scalar > &v, vector< double > &t)
 ~AnimChannel ()
Scalar get (double t) const
Scalar getConstant (double t) const
void reset (Scalar null)
string printChannel ()
 debug function, prints channel as string
void debugPrintChannel ()
 debug function, prints to stdout if DEBUG_CHANNELS flag is enabled, used in constructors
bool isInited () const
 valid init?
int getSize () const
 get number of entries (value and time sizes have to be equal)
vector< Scalar > & accessValues ()
 raw access of value vector
vector< double > & accessTimes ()
 raw access of time vector

Protected Attributes

bool mInited
vector< Scalar > mValue
vector< double > mTimes

Detailed Description

template<class Scalar>
class AnimChannel< Scalar >

An animated attribute channel.

Definition at line 25 of file attributes.h.


Constructor & Destructor Documentation

template<class Scalar>
AnimChannel< Scalar >::AnimChannel ( ) [inline]

Definition at line 29 of file attributes.h.

template<class Scalar>
AnimChannel< Scalar >::AnimChannel ( Scalar  null) [inline]

Definition at line 33 of file attributes.h.

template<class Scalar>
AnimChannel< Scalar >::AnimChannel ( vector< Scalar > &  v,
vector< double > &  t 
) [inline]

Definition at line 37 of file attributes.h.

template<class Scalar>
AnimChannel< Scalar >::~AnimChannel ( ) [inline]

Definition at line 41 of file attributes.h.


Member Function Documentation

template<class Scalar>
vector<double>& AnimChannel< Scalar >::accessTimes ( ) [inline]

raw access of time vector

Definition at line 103 of file attributes.h.

Referenced by channelSimplifyScalarT(), channelSimplifyVecT(), and ntlGeometryObject::initChannels().

template<class Scalar>
vector<Scalar>& AnimChannel< Scalar >::accessValues ( ) [inline]
template<class Scalar >
void AnimChannel< Scalar >::debugPrintChannel ( )

debug function, prints to stdout if DEBUG_CHANNELS flag is enabled, used in constructors

debug function, prints to stdout if DEBUG_PCHANNELS flag is enabled, used in constructors

Definition at line 218 of file attributes.h.

Referenced by __forceAnimChannelInstantiation(), and AnimChannel< ntlVec3f >::AnimChannel().

template<class Scalar>
Scalar AnimChannel< Scalar >::get ( double  t) const [inline]
template<class Scalar>
Scalar AnimChannel< Scalar >::getConstant ( double  t) const [inline]

Definition at line 69 of file attributes.h.

template<class Scalar>
int AnimChannel< Scalar >::getSize ( void  ) const [inline]

get number of entries (value and time sizes have to be equal)

Definition at line 99 of file attributes.h.

Referenced by channelSimplifyScalarT(), channelSimplifyVecT(), ntlGeometryObjModel::getMeshAnimated(), ntlGeometryObjModel::getTriangles(), and ntlGeometryObjModel::loadBobjModel().

template<class Scalar>
bool AnimChannel< Scalar >::isInited ( ) const [inline]

valid init?

Definition at line 96 of file attributes.h.

Referenced by ntlGeometryObjModel::initialize(), and ntlGeometryObject::initialize().

template<class Scalar >
string AnimChannel< Scalar >::printChannel ( )
template<class Scalar>
void AnimChannel< Scalar >::reset ( Scalar  null) [inline]

Definition at line 84 of file attributes.h.


Member Data Documentation

template<class Scalar>
bool AnimChannel< Scalar >::mInited [protected]
template<class Scalar>
vector<double> AnimChannel< Scalar >::mTimes [protected]
template<class Scalar>
vector<Scalar> AnimChannel< Scalar >::mValue [protected]

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