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

#include <CL_Track.h>

Public Member Functions

 CL_Track (CL_Clip &dad, const CL_Track &from)
 
 CL_Track (CL_Clip &dad, const char *name)
 
 ~CL_Track ()
 
CL_Trackoperator= (const CL_Track &from)
 
void init (CL_Clip &dad, const char *name)
 
fprealgetData ()
 
const fprealgetData () const
 
int getTrackLength () const
 
const UT_StringgetName () const
 
const UT_StringHoldergetNameRef () const
 
void setName (const char *)
 
unsigned short getNameHash () const
 
unsigned short getNameBaseLength () const
 
unsigned short getNameBaseHash () const
 
int getNameNumber () const
 
const char * info (fpreal t, const char *prefix=0, const char *suffix=0) const
 
int isTimeDependent () const
 
int isWithinRange (fpreal low, fpreal hi, int completely=1) const
 
void setLeft (CL_TrackOutside type)
 
void setRight (CL_TrackOutside type)
 
void setDefault (fpreal value)
 
CL_ClipgetClip (void)
 
const CL_ClipgetClip (void) const
 
const char * getLeft (void) const
 
const char * getRight (void) const
 
int64 getMemoryUsage (bool inclusive) const
 
void getExtendCond (CL_TrackOutside &left, CL_TrackOutside &right) const
 
fpreal getDefault () const
 
void dupAttributes (const CL_Track *, int data_too=0, int name_too=0)
 
void reverse ()
 
void constant (fpreal value=0)
 
void cycle (int howmany)
 
int convolve (const CL_Track &t1, const CL_Track &t2, int add=0)
 
int convolveCenter (fpreal *data2, int n2, int passes=1)
 
int convolveCenterDirect (fpreal *data2, int n2, int passes)
 
int convolveCenterFFT (fpreal *data2, int n2, int passes)
 
int copyStamp (const CL_Track &t1, fpreal toffset, int clr)
 
int getThresholdTimes (fpreal thresh, UT_FprealArray &toffsets, UT_FprealArray &values) const
 
void despike (fpreal tol, fpreal effect=1.0, int maxwidth=1)
 
void blend (fpreal start, const fpreal *values, int len, fpreal base, const CL_SubRange *effect, fpreal cycle)
 
void blend (fpreal start, const fpreal *values, int len, fpreal base, const CL_Track *effect_track, fpreal cycle)
 
void limitValues (fpreal max, fpreal min, CL_TrackLimitMethod method, int start, int end)
 
int resample (const fpreal *values, int num, CL_TrackResampleMethod method, int constant_area, int iscycle=0, fpreal cycle=0)
 
int resample (fpreal *data, int size, int start, int end, CL_TrackResampleMethod method, int constant_area, int iscycle=0, fpreal cycle=0) const
 
void quantizeValue (fpreal max, fpreal min, CL_QuantizeValueMethod method, fpreal step, fpreal offset, int clamp, int start, int end)
 
void normalize ()
 
void absolute ()
 
void smoothRotate (fpreal delta=180.0)
 
void filterFrequency (int filter_size, fpreal freqstep, fpreal overlap, fpreal discard, fpreal *filter, fpreal *phase_filter=0, void(*filter_design)(void *, int, fpreal, fpreal *, fpreal *, int, int)=0, void *node=0, int doblend=1)
 
void pitchShift (fpreal shift, int chunk, const CL_Track *animate=0, fpreal(*callback)(void *, int, int)=0, void *node=0)
 
void fastConvolve (int chunk, fpreal *data)
 
void aliasTrack (CL_Track &track)
 
void unalias ()
 
bool isAliased () const
 
void swapData (CL_Track &track)
 
int getIndex () const
 

Static Public Member Functions

static void getNameComposition (const char *name, unsigned short &base_length, unsigned short &base_hash)
 
static fpreal limitValue (fpreal max, fpreal min, CL_TrackLimitMethod method, fpreal v)
 

Friends

class CL_Clip
 
class CL_AsciiClipReader
 
class CL_AsciiClipWriter
 
class CL_BinaryClipReader
 
class CL_BinaryClipWriter
 

Detailed Description

Constructor & Destructor Documentation

CL_Track::CL_Track ( CL_Clip dad,
const CL_Track from 
)
CL_Track::CL_Track ( CL_Clip dad,
const char *  name 
)
CL_Track::~CL_Track ( )

Member Function Documentation

void CL_Track::absolute ( )
void CL_Track::aliasTrack ( CL_Track track)
void CL_Track::blend ( fpreal  start,
const fpreal values,
int  len,
fpreal  base,
const CL_SubRange effect,
fpreal  cycle 
)
void CL_Track::blend ( fpreal  start,
const fpreal values,
int  len,
fpreal  base,
const CL_Track effect_track,
fpreal  cycle 
)
void CL_Track::constant ( fpreal  value = 0)
int CL_Track::convolve ( const CL_Track t1,
const CL_Track t2,
int  add = 0 
)
int CL_Track::convolveCenter ( fpreal data2,
int  n2,
int  passes = 1 
)
int CL_Track::convolveCenterDirect ( fpreal data2,
int  n2,
int  passes 
)
int CL_Track::convolveCenterFFT ( fpreal data2,
int  n2,
int  passes 
)
int CL_Track::copyStamp ( const CL_Track t1,
fpreal  toffset,
int  clr 
)
void CL_Track::cycle ( int  howmany)
void CL_Track::despike ( fpreal  tol,
fpreal  effect = 1.0,
int  maxwidth = 1 
)
void CL_Track::dupAttributes ( const CL_Track ,
int  data_too = 0,
int  name_too = 0 
)
void CL_Track::fastConvolve ( int  chunk,
fpreal data 
)
void CL_Track::filterFrequency ( int  filter_size,
fpreal  freqstep,
fpreal  overlap,
fpreal  discard,
fpreal filter,
fpreal phase_filter = 0,
void(*)(void *, int, fpreal, fpreal *, fpreal *, int, int filter_design = 0,
void node = 0,
int  doblend = 1 
)
CL_Clip* CL_Track::getClip ( void  )
inline
Examples:
CHOP/CHOP_Spring.C.

Definition at line 141 of file CL_Track.h.

const CL_Clip* CL_Track::getClip ( void  ) const
inline

Definition at line 144 of file CL_Track.h.

fpreal* CL_Track::getData ( )
inline
Examples:
CHOP/CHOP_Blend.C, CHOP/CHOP_Spring.C, and CHOP/CHOP_Stair.C.

Definition at line 84 of file CL_Track.h.

const fpreal* CL_Track::getData ( ) const
inline

Definition at line 87 of file CL_Track.h.

fpreal CL_Track::getDefault ( ) const
inline

Definition at line 155 of file CL_Track.h.

void CL_Track::getExtendCond ( CL_TrackOutside left,
CL_TrackOutside right 
) const
int CL_Track::getIndex ( ) const
const char* CL_Track::getLeft ( void  ) const
int64 CL_Track::getMemoryUsage ( bool  inclusive) const
const UT_String& CL_Track::getName ( void  ) const
inline
Examples:
CHOP/CHOP_Spring.C.

Definition at line 93 of file CL_Track.h.

unsigned short CL_Track::getNameBaseHash ( ) const
inline

Definition at line 112 of file CL_Track.h.

unsigned short CL_Track::getNameBaseLength ( ) const
inline

Definition at line 109 of file CL_Track.h.

static void CL_Track::getNameComposition ( const char *  name,
unsigned short &  base_length,
unsigned short &  base_hash 
)
static
unsigned short CL_Track::getNameHash ( ) const
inline

Definition at line 106 of file CL_Track.h.

int CL_Track::getNameNumber ( ) const
inline

Definition at line 115 of file CL_Track.h.

const UT_StringHolder& CL_Track::getNameRef ( ) const
inline

Definition at line 96 of file CL_Track.h.

const char* CL_Track::getRight ( void  ) const
int CL_Track::getThresholdTimes ( fpreal  thresh,
UT_FprealArray toffsets,
UT_FprealArray values 
) const
int CL_Track::getTrackLength ( ) const
inline

Definition at line 90 of file CL_Track.h.

const char* CL_Track::info ( fpreal  t,
const char *  prefix = 0,
const char *  suffix = 0 
) const
void CL_Track::init ( CL_Clip dad,
const char *  name 
)
bool CL_Track::isAliased ( ) const
inline

Definition at line 255 of file CL_Track.h.

int CL_Track::isTimeDependent ( ) const
int CL_Track::isWithinRange ( fpreal  low,
fpreal  hi,
int  completely = 1 
) const
static fpreal CL_Track::limitValue ( fpreal  max,
fpreal  min,
CL_TrackLimitMethod  method,
fpreal  v 
)
static
void CL_Track::limitValues ( fpreal  max,
fpreal  min,
CL_TrackLimitMethod  method,
int  start,
int  end 
)
void CL_Track::normalize ( )
CL_Track& CL_Track::operator= ( const CL_Track from)
void CL_Track::pitchShift ( fpreal  shift,
int  chunk,
const CL_Track animate = 0,
fpreal(*)(void *, int, int callback = 0,
void node = 0 
)
void CL_Track::quantizeValue ( fpreal  max,
fpreal  min,
CL_QuantizeValueMethod  method,
fpreal  step,
fpreal  offset,
int  clamp,
int  start,
int  end 
)
int CL_Track::resample ( const fpreal values,
int  num,
CL_TrackResampleMethod  method,
int  constant_area,
int  iscycle = 0,
fpreal  cycle = 0 
)
int CL_Track::resample ( fpreal data,
int  size,
int  start,
int  end,
CL_TrackResampleMethod  method,
int  constant_area,
int  iscycle = 0,
fpreal  cycle = 0 
) const
void CL_Track::reverse ( )
void CL_Track::setDefault ( fpreal  value)
Examples:
CHOP/CHOP_Stair.C.
void CL_Track::setLeft ( CL_TrackOutside  type)
Examples:
CHOP/CHOP_Stair.C.
void CL_Track::setName ( const char *  )
void CL_Track::setRight ( CL_TrackOutside  type)
Examples:
CHOP/CHOP_Stair.C.
void CL_Track::smoothRotate ( fpreal  delta = 180.0)
void CL_Track::swapData ( CL_Track track)
void CL_Track::unalias ( )

Friends And Related Function Documentation

friend class CL_AsciiClipReader
friend

Definition at line 345 of file CL_Track.h.

friend class CL_AsciiClipWriter
friend

Definition at line 346 of file CL_Track.h.

friend class CL_BinaryClipReader
friend

Definition at line 347 of file CL_Track.h.

friend class CL_BinaryClipWriter
friend

Definition at line 348 of file CL_Track.h.

friend class CL_Clip
friend

Definition at line 344 of file CL_Track.h.


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