HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 UT_StringHolder &name)
 
 ~CL_Track ()
 
 CL_Track (const CL_Track &from)=delete
 
CL_Trackoperator= (const CL_Track &from)
 
void init (CL_Clip &dad, const UT_StringHolder &name)
 
int getDataCapacity () const
 
fprealgetData ()
 
const fprealgetData () const
 
int getTrackLength () const
 
const UT_StringHoldergetName () const
 
void setName (const UT_StringHolder &name)
 
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 ()
 
const CL_ClipgetClip () const
 
const char * getLeft () const
 
const char * getRight () 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 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 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 UT_StringRef &name, unsigned short &base_length, unsigned short &base_hash)
 
static fpreal limitValue (fpreal max, fpreal min, CL_TrackLimitMethod method, fpreal v)
 
static UT_StringHolder fixName (const UT_StringHolder &old)
 

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 UT_StringHolder name 
)
CL_Track::~CL_Track ( )
CL_Track::CL_Track ( const CL_Track from)
delete

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::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 
)
static UT_StringHolder CL_Track::fixName ( const UT_StringHolder old)
static
CL_Clip* CL_Track::getClip ( )
inline
Examples:
CHOP/CHOP_Spring.C.

Definition at line 142 of file CL_Track.h.

const CL_Clip* CL_Track::getClip ( ) const
inline

Definition at line 145 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 89 of file CL_Track.h.

const fpreal* CL_Track::getData ( ) const
inline

Definition at line 92 of file CL_Track.h.

int CL_Track::getDataCapacity ( ) const
inline

Definition at line 86 of file CL_Track.h.

fpreal CL_Track::getDefault ( ) const
inline

Definition at line 156 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 ( ) const
int64 CL_Track::getMemoryUsage ( bool  inclusive) const
const UT_StringHolder& CL_Track::getName ( ) const
inline
Examples:
CHOP/CHOP_Spring.C.

Definition at line 98 of file CL_Track.h.

unsigned short CL_Track::getNameBaseHash ( ) const
inline

Definition at line 113 of file CL_Track.h.

unsigned short CL_Track::getNameBaseLength ( ) const
inline

Definition at line 110 of file CL_Track.h.

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

Definition at line 107 of file CL_Track.h.

int CL_Track::getNameNumber ( ) const
inline

Definition at line 116 of file CL_Track.h.

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

Definition at line 95 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 UT_StringHolder name 
)
bool CL_Track::isAliased ( ) const
inline

Definition at line 236 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 UT_StringHolder name)
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 324 of file CL_Track.h.

friend class CL_AsciiClipWriter
friend

Definition at line 325 of file CL_Track.h.

friend class CL_BinaryClipReader
friend

Definition at line 326 of file CL_Track.h.

friend class CL_BinaryClipWriter
friend

Definition at line 327 of file CL_Track.h.

friend class CL_Clip
friend

Definition at line 323 of file CL_Track.h.


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