CL_Clip Class Reference

#include <CL_Clip.h>

List of all members.

Public Member Functions

 CL_Clip (int size)
 CL_Clip (const CL_Clip &from)
 ~CL_Clip ()
CL_Clipoperator= (const CL_Clip &v)
void copyContents (const CL_Clip &v, int data, int slerps)
int getCheckDuplicateNames () const
void setCheckDuplicateNames (int val)
void clearAndDestroy ()
void setStart (float start)
float getStart (void) const
float getEnd (void) const
int getTrackLength (void) const
void setTrackLength (int length, int clear_extra=0)
void setSampleRate (float rate)
float getSampleRate (void) const
int getTrackNames (UT_PtrArray< const char * > &list) const
int getTracks (CL_TrackListC &list, const char *pattern=0) const
int getTracks (UT_IntArray &list, const char *pat) const
int isTimeDependent () const
int numSlerps () const
int copySlerpAttributes (const CL_Clip &v, int by_name=0)
int resetSlerps ()
int findSlerp (const CL_Track *track, int &idx) const
int getSlerp (int slerp_idx, int &x_idx, int &y_idx, int &z_idx) const
int getSlerp (const CL_Track *track, int &x_idx, int &y_idx, int &z_idx) const
int setSlerp (int x_idx, int y_idx, int z_idx)
int slerpBlend (int slerp_idx, const float *xvalues, const float *yvalues, const float *zvalues, float start, int len, float base, const CL_Track *effect_track)
int slerpBlend (int slerp_idx, const float *xvalues, const float *yvalues, const float *zvalues, float start, int len, float base, const CL_SubRange *effect)
int validateSlerps ()
void setSlerpOrder (UT_XformOrder::xyzOrder o)
UT_XformOrder::xyzOrder getSlerpOrder () const
void removeTrack (int idx)
CL_TrackaddTrack (const char *name)
CL_TrackdupTrackInfo (const CL_Track *, int data_too=0, const char *name=0)
int getNumTracks (void) const
CL_TrackgetTrack (int index)
const CL_TrackgetTrack (int index) const
CL_TrackgetTrack (const char *name, int *index=0)
const CL_TrackgetTrack (const char *name, int *index=0) const
float evaluateSingle (const CL_Track *track, float index) const
float evaluateSingleTime (const CL_Track *track, float t) const
float evaluateSingleFrame (const CL_Track *track, float f, float fps) const
void evaluate (const CL_Track *track, float start_index, float stop_index, float *data, int size) const
int evaluateSlerp (int slerp_idx, float start_index, float stop_index, float *xdata, float *ydata, float *zdata, int size) const
void evaluateTime (const CL_Track *track, float start_time, float stop_time, float *data, int size) const
void resampleTime (const CL_Track *track, float start_time, float stop_time, float *data, int size) const
void getHeight (const CL_Track *track, float start_index, float stop_index, int nsamples, float *imin, float *imax) const
void evaluateHeightRange (const CL_Track *track, float start_index, float stop_index, float *data, int size) const
int extendTime (float t, int *delta)
float getStartTime () const
float getEndTime () const
void dupAttributes (const CL_Clip &)
float getIndex (float time) const
float getTime (float index) const
float getFrame (float index, float fps) const
float getIndexF (float frame, float fps) const
void trim (const CL_Clip *clip, float leftpos, float rightpos, int discard)
int crop (int newlen, int add)
int save (ostream &os, int binary) const
int save (const char *nm) const
bool load (UT_IStream &is, const char *path=0)
int load (const char *nm)
int64 getMemoryUsage (void) const
int info (ostream &os, float fps, float t, int limit=1, CL_InfoCallback cb=0, void *cbdata=0) const
void reorder (CL_TrackList &list)
void crackSmooth (int xidx, int yidx, int zidz, UT_XformOrder order, int use_hint, float hx, float hy, float hz)
int isSameRange (const CL_Clip &v) const
void stashAll ()
void destroyStashed ()
char * newName (const char *oldname) const
void setDefaults (void)
void trackRenamed (CL_Track *track, const char *oldname)

Static Public Member Functions

static float getTimeF (float frame, float fps)
static float getFrameT (float time, float fps)
static float fixedDecimal (float num, int digits=2)
static void printNum (ostream &os, float num)


Detailed Description

Examples:

CHOP/CHOP_Blend.C, CHOP/CHOP_Blend.h, and CHOP/CHOP_Spring.C.

Definition at line 38 of file CL_Clip.h.


Constructor & Destructor Documentation

CL_Clip::CL_Clip ( int  size  ) 

CL_Clip::CL_Clip ( const CL_Clip from  ) 

CL_Clip::~CL_Clip (  ) 


Member Function Documentation

CL_Track* CL_Clip::addTrack ( const char *  name  ) 

Examples:
CHOP/CHOP_Stair.C.

void CL_Clip::clearAndDestroy (  ) 

void CL_Clip::copyContents ( const CL_Clip v,
int  data,
int  slerps 
)

int CL_Clip::copySlerpAttributes ( const CL_Clip v,
int  by_name = 0 
)

void CL_Clip::crackSmooth ( int  xidx,
int  yidx,
int  zidz,
UT_XformOrder  order,
int  use_hint,
float  hx,
float  hy,
float  hz 
)

int CL_Clip::crop ( int  newlen,
int  add 
)

void CL_Clip::destroyStashed (  ) 

void CL_Clip::dupAttributes ( const CL_Clip  ) 

CL_Track* CL_Clip::dupTrackInfo ( const CL_Track ,
int  data_too = 0,
const char *  name = 0 
)

Examples:
CHOP/CHOP_Blend.C.

void CL_Clip::evaluate ( const CL_Track track,
float  start_index,
float  stop_index,
float *  data,
int  size 
) const

void CL_Clip::evaluateHeightRange ( const CL_Track track,
float  start_index,
float  stop_index,
float *  data,
int  size 
) const

float CL_Clip::evaluateSingle ( const CL_Track track,
float  index 
) const [inline]

Examples:
CHOP/CHOP_Spring.C.

Definition at line 179 of file CL_Clip.h.

float CL_Clip::evaluateSingleFrame ( const CL_Track track,
float  f,
float  fps 
) const [inline]

Definition at line 185 of file CL_Clip.h.

float CL_Clip::evaluateSingleTime ( const CL_Track track,
float  t 
) const [inline]

Examples:
CHOP/CHOP_Blend.C, and CHOP/CHOP_Spring.C.

Definition at line 182 of file CL_Clip.h.

int CL_Clip::evaluateSlerp ( int  slerp_idx,
float  start_index,
float  stop_index,
float *  xdata,
float *  ydata,
float *  zdata,
int  size 
) const

void CL_Clip::evaluateTime ( const CL_Track track,
float  start_time,
float  stop_time,
float *  data,
int  size 
) const [inline]

Examples:
CHOP/CHOP_Spring.C.

Definition at line 200 of file CL_Clip.h.

int CL_Clip::extendTime ( float  t,
int *  delta 
)

int CL_Clip::findSlerp ( const CL_Track track,
int &  idx 
) const

static float CL_Clip::fixedDecimal ( float  num,
int  digits = 2 
) [static]

int CL_Clip::getCheckDuplicateNames (  )  const [inline]

Definition at line 57 of file CL_Clip.h.

float CL_Clip::getEnd ( void   )  const [inline]

Definition at line 75 of file CL_Clip.h.

float CL_Clip::getEndTime (  )  const [inline]

Definition at line 241 of file CL_Clip.h.

float CL_Clip::getFrame ( float  index,
float  fps 
) const [inline]

Definition at line 256 of file CL_Clip.h.

static float CL_Clip::getFrameT ( float  time,
float  fps 
) [inline, static]

Definition at line 265 of file CL_Clip.h.

void CL_Clip::getHeight ( const CL_Track track,
float  start_index,
float  stop_index,
int  nsamples,
float *  imin,
float *  imax 
) const

float CL_Clip::getIndex ( float  time  )  const [inline]

Examples:
CHOP/CHOP_Spring.C.

Definition at line 250 of file CL_Clip.h.

float CL_Clip::getIndexF ( float  frame,
float  fps 
) const [inline]

Definition at line 259 of file CL_Clip.h.

int64 CL_Clip::getMemoryUsage ( void   )  const

int CL_Clip::getNumTracks ( void   )  const [inline]

Examples:
CHOP/CHOP_Blend.C, and CHOP/CHOP_Spring.C.

Definition at line 156 of file CL_Clip.h.

float CL_Clip::getSampleRate ( void   )  const [inline]

Examples:
CHOP/CHOP_Spring.C.

Definition at line 86 of file CL_Clip.h.

int CL_Clip::getSlerp ( const CL_Track track,
int &  x_idx,
int &  y_idx,
int &  z_idx 
) const

int CL_Clip::getSlerp ( int  slerp_idx,
int &  x_idx,
int &  y_idx,
int &  z_idx 
) const

UT_XformOrder::xyzOrder CL_Clip::getSlerpOrder (  )  const [inline]

Definition at line 142 of file CL_Clip.h.

float CL_Clip::getStart ( void   )  const [inline]

Examples:
CHOP/CHOP_Blend.C, and CHOP/CHOP_Spring.C.

Definition at line 72 of file CL_Clip.h.

float CL_Clip::getStartTime (  )  const [inline]

Definition at line 238 of file CL_Clip.h.

float CL_Clip::getTime ( float  index  )  const [inline]

Examples:
CHOP/CHOP_Blend.C, and CHOP/CHOP_Spring.C.

Definition at line 253 of file CL_Clip.h.

static float CL_Clip::getTimeF ( float  frame,
float  fps 
) [inline, static]

Definition at line 262 of file CL_Clip.h.

const CL_Track* CL_Clip::getTrack ( const char *  name,
int *  index = 0 
) const

CL_Track* CL_Clip::getTrack ( const char *  name,
int *  index = 0 
)

const CL_Track* CL_Clip::getTrack ( int  index  )  const [inline]

Definition at line 163 of file CL_Clip.h.

CL_Track* CL_Clip::getTrack ( int  index  )  [inline]

Examples:
CHOP/CHOP_Blend.C, and CHOP/CHOP_Spring.C.

Definition at line 159 of file CL_Clip.h.

int CL_Clip::getTrackLength ( void   )  const [inline]

Examples:
CHOP/CHOP_Blend.C, and CHOP/CHOP_Spring.C.

Definition at line 78 of file CL_Clip.h.

int CL_Clip::getTrackNames ( UT_PtrArray< const char * > &  list  )  const

int CL_Clip::getTracks ( UT_IntArray list,
const char *  pat 
) const

int CL_Clip::getTracks ( CL_TrackListC list,
const char *  pattern = 0 
) const

int CL_Clip::info ( ostream &  os,
float  fps,
float  t,
int  limit = 1,
CL_InfoCallback  cb = 0,
void *  cbdata = 0 
) const

int CL_Clip::isSameRange ( const CL_Clip v  )  const

Examples:
CHOP/CHOP_Blend.C.

int CL_Clip::isTimeDependent (  )  const

int CL_Clip::load ( const char *  nm  ) 

bool CL_Clip::load ( UT_IStream is,
const char *  path = 0 
)

char* CL_Clip::newName ( const char *  oldname  )  const

int CL_Clip::numSlerps (  )  const

CL_Clip& CL_Clip::operator= ( const CL_Clip v  ) 

static void CL_Clip::printNum ( ostream &  os,
float  num 
) [static]

void CL_Clip::removeTrack ( int  idx  ) 

void CL_Clip::reorder ( CL_TrackList list  ) 

void CL_Clip::resampleTime ( const CL_Track track,
float  start_time,
float  stop_time,
float *  data,
int  size 
) const

int CL_Clip::resetSlerps (  ) 

int CL_Clip::save ( const char *  nm  )  const

int CL_Clip::save ( ostream &  os,
int  binary 
) const

void CL_Clip::setCheckDuplicateNames ( int  val  )  [inline]

Definition at line 60 of file CL_Clip.h.

void CL_Clip::setDefaults ( void   ) 

void CL_Clip::setSampleRate ( float  rate  )  [inline]

Examples:
CHOP/CHOP_Stair.C.

Definition at line 83 of file CL_Clip.h.

int CL_Clip::setSlerp ( int  x_idx,
int  y_idx,
int  z_idx 
)

void CL_Clip::setSlerpOrder ( UT_XformOrder::xyzOrder  o  )  [inline]

Definition at line 139 of file CL_Clip.h.

void CL_Clip::setStart ( float  start  )  [inline]

Examples:
CHOP/CHOP_Stair.C.

Definition at line 69 of file CL_Clip.h.

void CL_Clip::setTrackLength ( int  length,
int  clear_extra = 0 
)

Examples:
CHOP/CHOP_Stair.C.

int CL_Clip::slerpBlend ( int  slerp_idx,
const float *  xvalues,
const float *  yvalues,
const float *  zvalues,
float  start,
int  len,
float  base,
const CL_SubRange effect 
)

int CL_Clip::slerpBlend ( int  slerp_idx,
const float *  xvalues,
const float *  yvalues,
const float *  zvalues,
float  start,
int  len,
float  base,
const CL_Track effect_track 
)

void CL_Clip::stashAll (  ) 

void CL_Clip::trackRenamed ( CL_Track track,
const char *  oldname 
)

void CL_Clip::trim ( const CL_Clip clip,
float  leftpos,
float  rightpos,
int  discard 
)

int CL_Clip::validateSlerps (  ) 


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

Generated on Fri May 25 00:10:20 2012 for HDK by  doxygen 1.5.9