HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_TimeWarp Class Reference

#include <CL_TimeWarp.h>

+ Inheritance diagram for CL_TimeWarp:

Public Member Functions

 CL_TimeWarp ()
 
virtual ~CL_TimeWarp ()
 
fpreal linearWarp (fpreal sample, int warp_length)
 
void interpolateWarp ()
 
fpreal warpSample (fpreal sample)
 
bool warpIsValid ()
 
int warpLength ()
 
bool setNumChannels (int num_channels, int src_channel_length, int ref_channel_length)
 
bool addChannel (const fpreal *input_src_channel, const fpreal *input_ref_channel)
 
bool addMotionChannels (const fpreal *src_tx_channel, const fpreal *src_ty_channel, const fpreal *src_tz_channel, const fpreal *ref_tx_channel, const fpreal *ref_ty_channel, const fpreal *ref_tz_channel)
 
void setRootTrnChannels (const fpreal *tx_channel, const fpreal *ty_channel, const fpreal *tz_channel, bool set_src)
 
void setRootRotChannels (const fpreal *rx_channel, const fpreal *ry_channel, const fpreal *rz_channel, bool set_src)
 
void processMotionChannels ()
 
fprealsrcChannel (int i)
 
fprealrefChannel (int i)
 

Protected Member Functions

void getRootTrnVec (int i, UT_Vector3R &vec, bool get_src)
 
void getRootRotVec (int i, UT_Vector3R &vec, bool get_src)
 
void getRootRotMat (int i, UT_Matrix3R &mat, UT_Matrix3R &inv_mat, bool get_src)
 

Protected Attributes

int myCurrentNumChannels
 
int myNumChannels
 
UT_Array< intmyTrnChannels
 
UT_UniquePtr< fpreal[]> myRefChannels
 
UT_UniquePtr< fpreal[]> myRefRootTrnChannels [3]
 
UT_UniquePtr< fpreal[]> myRefRootRotChannels [3]
 
int myRefChannelLength
 
UT_UniquePtr< fpreal[]> mySrcChannels
 
UT_UniquePtr< fpreal[]> mySrcRootTrnChannels [3]
 
UT_UniquePtr< fpreal[]> mySrcRootRotChannels [3]
 
int mySrcChannelLength
 
bool myWarpIsValid
 
int myWarpLength
 
UT_UniquePtr< fpreal[]> myWarpMap
 

Detailed Description

Definition at line 27 of file CL_TimeWarp.h.

Constructor & Destructor Documentation

CL_TimeWarp::CL_TimeWarp ( )
virtual CL_TimeWarp::~CL_TimeWarp ( )
virtual

Member Function Documentation

bool CL_TimeWarp::addChannel ( const fpreal input_src_channel,
const fpreal input_ref_channel 
)
bool CL_TimeWarp::addMotionChannels ( const fpreal src_tx_channel,
const fpreal src_ty_channel,
const fpreal src_tz_channel,
const fpreal ref_tx_channel,
const fpreal ref_ty_channel,
const fpreal ref_tz_channel 
)
void CL_TimeWarp::getRootRotMat ( int  i,
UT_Matrix3R mat,
UT_Matrix3R inv_mat,
bool  get_src 
)
protected
void CL_TimeWarp::getRootRotVec ( int  i,
UT_Vector3R vec,
bool  get_src 
)
protected
void CL_TimeWarp::getRootTrnVec ( int  i,
UT_Vector3R vec,
bool  get_src 
)
protected
void CL_TimeWarp::interpolateWarp ( )
fpreal CL_TimeWarp::linearWarp ( fpreal  sample,
int  warp_length 
)
void CL_TimeWarp::processMotionChannels ( )
fpreal* CL_TimeWarp::refChannel ( int  i)
inline

Definition at line 67 of file CL_TimeWarp.h.

bool CL_TimeWarp::setNumChannels ( int  num_channels,
int  src_channel_length,
int  ref_channel_length 
)
void CL_TimeWarp::setRootRotChannels ( const fpreal rx_channel,
const fpreal ry_channel,
const fpreal rz_channel,
bool  set_src 
)
void CL_TimeWarp::setRootTrnChannels ( const fpreal tx_channel,
const fpreal ty_channel,
const fpreal tz_channel,
bool  set_src 
)
fpreal* CL_TimeWarp::srcChannel ( int  i)
inline

Definition at line 65 of file CL_TimeWarp.h.

bool CL_TimeWarp::warpIsValid ( )
inline

Definition at line 36 of file CL_TimeWarp.h.

int CL_TimeWarp::warpLength ( )
inline

Definition at line 37 of file CL_TimeWarp.h.

fpreal CL_TimeWarp::warpSample ( fpreal  sample)

Member Data Documentation

int CL_TimeWarp::myCurrentNumChannels
protected

Definition at line 80 of file CL_TimeWarp.h.

int CL_TimeWarp::myNumChannels
protected

Definition at line 81 of file CL_TimeWarp.h.

int CL_TimeWarp::myRefChannelLength
protected

Definition at line 88 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::myRefChannels
protected

Definition at line 85 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::myRefRootRotChannels[3]
protected

Definition at line 87 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::myRefRootTrnChannels[3]
protected

Definition at line 86 of file CL_TimeWarp.h.

int CL_TimeWarp::mySrcChannelLength
protected

Definition at line 93 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::mySrcChannels
protected

Definition at line 90 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::mySrcRootRotChannels[3]
protected

Definition at line 92 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::mySrcRootTrnChannels[3]
protected

Definition at line 91 of file CL_TimeWarp.h.

UT_Array<int> CL_TimeWarp::myTrnChannels
protected

Definition at line 83 of file CL_TimeWarp.h.

bool CL_TimeWarp::myWarpIsValid
protected

Definition at line 95 of file CL_TimeWarp.h.

int CL_TimeWarp::myWarpLength
protected

Definition at line 96 of file CL_TimeWarp.h.

UT_UniquePtr<fpreal[]> CL_TimeWarp::myWarpMap
protected

Definition at line 97 of file CL_TimeWarp.h.


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