CH_Segment Class Reference

#include <CH_Segment.h>

List of all members.

Public Member Functions

 CH_Segment (float defVal, CH_Channel *mom, float len=0)
 CH_Segment (const CH_Segment &from)
 CH_Segment (const char *expr, CH_ExprLanguage language, CH_Channel *mom, float len=0)
 ~CH_Segment ()
CH_ManagergetManager () const
float getTolerance () const
void save (ostream &os, int binary, bool compiled, bool disabled) const
bool load (UT_IStream &is, bool disabled, bool reload=false)
CH_Segmentoperator= (const CH_Segment &from)
int operator== (const CH_Segment &)
float evaluate (float ltime, bool extend, int thread)
void evaluateString (UT_String &result, float ltime, bool extend, int thread)
void unresolveLocalVars (int thread)
CH_ChannelgetChannel (void) const
void setChannel (CH_Channel *chp)
void setExprLanguage (CH_ExprLanguage language)
CH_ExprLanguage getExprLanguage () const
CH_StringMeaning getStringMeaning ()
int isMatchFunction (void) const
int isLockedSegment () const
CH_SegmentFlags getFlags () const
void lockLength (int onoff)
void lockStart (int onoff)
void lockEnd (int onoff)
void tieInValue (int onoff, bool dotie=true)
void tieOutValue (int onoff, bool dotie=true)
void tieInSlope (int onoff, bool dotie=true, float ar=0.0)
void tieOutSlope (int onoff, bool dotie=true, float ar=0.0)
void tieInAccel (int onoff, bool dotie=true)
void tieOutAccel (int onoff, bool dotie=true)
void cook (int state, int nsamples)
int isCooking () const
int isLengthLocked () const
int isStartLocked () const
int isEndLocked () const
int isInValueTied () const
int isOutValueTied () const
int isInSlopeTied () const
int isOutSlopeTied () const
int isInAccelTied () const
int isOutAccelTied () const
int isConstant () const
int isCubic () const
int isBezier () const
int isQLinear () const
int isQCubic () const
int isQuaternion () const
int isInValueUsed ()
int isOutValueUsed ()
int isInSlopeUsed ()
int isOutSlopeUsed ()
int isInAccelUsed ()
int isOutAccelUsed ()
int isSplineUsed ()
bool isTimeDependent () const
bool isTimeDependent (bool evaluate_to_find_out, int thread) const
bool isTimeDependentAndGetFloat (float &value, int thread) const
bool isTimeDependentAndGetString (UT_String &value, int thread) const
bool hasNonIntegerKeys () const
unsigned isDataDependent () const
int canChange (float start, float end) const
void changeLength (float len, CH_SegmentScale how=CH_SCALE_ANY, bool accel_ratio=true)
void changeTimes (float s, float e)
void stretch (float scale, int adjust_slopes, int adjust_accel)
const char * getExpression (void) const
CH_ExpressiongetCHExpr (void) const
const UT_Vector3getSplineKnots (void) const
const UT_Vector3getSplineKnot (int n) const
int getNKnots (void) const
bool isEndSegment () const
float getInValue (void) const
float getOutValue (void) const
float getInSlope (void) const
float getOutSlope (void) const
float getInAccel (void) const
float getOutAccel (void) const
fpreal getInAccelRatio () const
fpreal getOutAccelRatio () const
CH_SegmentgetNext ()
const CH_SegmentgetNext () const
CH_SegmentgetPrev ()
const CH_SegmentgetPrev () const
float getLength (void) const
float getILength (void) const
float getStart (void) const
float getEnd (void) const
float relativeTime (float t) const
void changeExpression (const char *expr, CH_ExprLanguage language, bool convert_accels)
void changeExpression (const char *expr, CH_ExprLanguage language)
bool expressionIsAnimationFunctionCall ()
void addSplineKnot (float x, float y)
void setSplineKnot (int n, float x, float y)
void setInValue (float v, bool dotie=true)
void setOutValue (float v, bool dotie=true)
void setInSlope (float v, bool dotie=true, float ar=0.0)
void setOutSlope (float v, bool dotie=true, float ar=0.0)
void setInAccel (float v, bool dotie=true)
void setOutAccel (float v, bool dotie=true)
void setInAccelRatio (float ratio, bool dotie=true)
void setOutAccelRatio (float ratio, bool dotie=true)
void clampInAccel ()
void clampOutAccel ()
void normalizeAccels ()
void setPrevNext (CH_Segment *p, CH_Segment *n)
void setChanged ()
void reverse ()
void buildOpDependencies (void *ref_id, int thread)
int changeOpRef (const char *new_fullpath, const char *old_fullpath, const char *old_cwd, const char *chan_name, const char *old_chan_name, int thread)
int findString (const char *str, bool fullword, bool usewildcards) const
int changeString (const char *from, const char *to, bool fullword, int thread)
void transferGroup (CH_Segment &from)
int wasModified () const
void setModified (int onOff)
void dirtyExprCache ()
float getValue (bool left, CH_ValueTypes t) const
void setValue (bool left, CH_ValueTypes t, float value)
bool getValueValid (bool left, CH_ValueTypes t)
bool getValueTied (bool left, CH_ValueTypes t) const
void setValueTied (bool left, CH_ValueTypes t, bool on_off)
void display ()
CH_TimeGroupgetTimeGroup (void) const

Static Public Member Functions

static fpreal getAccelRatio (float slope, float accel, float length)
static fpreal getAccelFromRatio (float slope, float ratio, float length)
static bool expressionIsAnimationFunctionCall (const char *expression)

Friends

class CH_TimeGroup


Detailed Description

Definition at line 111 of file CH_Segment.h.


Constructor & Destructor Documentation

CH_Segment::CH_Segment ( float  defVal,
CH_Channel mom,
float  len = 0 
)

CH_Segment::CH_Segment ( const CH_Segment from  ) 

CH_Segment::CH_Segment ( const char *  expr,
CH_ExprLanguage  language,
CH_Channel mom,
float  len = 0 
)

CH_Segment::~CH_Segment (  ) 


Member Function Documentation

void CH_Segment::addSplineKnot ( float  x,
float  y 
)

void CH_Segment::buildOpDependencies ( void *  ref_id,
int  thread 
)

int CH_Segment::canChange ( float  start,
float  end 
) const

void CH_Segment::changeExpression ( const char *  expr,
CH_ExprLanguage  language 
)

void CH_Segment::changeExpression ( const char *  expr,
CH_ExprLanguage  language,
bool  convert_accels 
)

void CH_Segment::changeLength ( float  len,
CH_SegmentScale  how = CH_SCALE_ANY,
bool  accel_ratio = true 
)

int CH_Segment::changeOpRef ( const char *  new_fullpath,
const char *  old_fullpath,
const char *  old_cwd,
const char *  chan_name,
const char *  old_chan_name,
int  thread 
)

int CH_Segment::changeString ( const char *  from,
const char *  to,
bool  fullword,
int  thread 
)

void CH_Segment::changeTimes ( float  s,
float  e 
)

void CH_Segment::clampInAccel (  ) 

void CH_Segment::clampOutAccel (  ) 

void CH_Segment::cook ( int  state,
int  nsamples 
)

void CH_Segment::dirtyExprCache (  ) 

void CH_Segment::display (  ) 

float CH_Segment::evaluate ( float  ltime,
bool  extend,
int  thread 
)

void CH_Segment::evaluateString ( UT_String result,
float  ltime,
bool  extend,
int  thread 
)

bool CH_Segment::expressionIsAnimationFunctionCall (  ) 

static bool CH_Segment::expressionIsAnimationFunctionCall ( const char *  expression  )  [static]

int CH_Segment::findString ( const char *  str,
bool  fullword,
bool  usewildcards 
) const

static fpreal CH_Segment::getAccelFromRatio ( float  slope,
float  ratio,
float  length 
) [inline, static]

Definition at line 281 of file CH_Segment.h.

static fpreal CH_Segment::getAccelRatio ( float  slope,
float  accel,
float  length 
) [static]

CH_Channel* CH_Segment::getChannel ( void   )  const [inline]

Definition at line 155 of file CH_Segment.h.

CH_Expression* CH_Segment::getCHExpr ( void   )  const [inline]

Definition at line 254 of file CH_Segment.h.

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

Definition at line 298 of file CH_Segment.h.

const char* CH_Segment::getExpression ( void   )  const

CH_ExprLanguage CH_Segment::getExprLanguage (  )  const

CH_SegmentFlags CH_Segment::getFlags (  )  const [inline]

Definition at line 169 of file CH_Segment.h.

float CH_Segment::getILength ( void   )  const [inline]

Definition at line 295 of file CH_Segment.h.

float CH_Segment::getInAccel ( void   )  const [inline]

Definition at line 268 of file CH_Segment.h.

fpreal CH_Segment::getInAccelRatio (  )  const [inline]

Definition at line 270 of file CH_Segment.h.

float CH_Segment::getInSlope ( void   )  const [inline]

Definition at line 266 of file CH_Segment.h.

float CH_Segment::getInValue ( void   )  const [inline]

Definition at line 264 of file CH_Segment.h.

float CH_Segment::getLength ( void   )  const [inline]

Definition at line 294 of file CH_Segment.h.

CH_Manager* CH_Segment::getManager (  )  const [inline]

Definition at line 128 of file CH_Segment.h.

const CH_Segment* CH_Segment::getNext (  )  const [inline]

Definition at line 290 of file CH_Segment.h.

CH_Segment* CH_Segment::getNext (  )  [inline]

Definition at line 289 of file CH_Segment.h.

int CH_Segment::getNKnots ( void   )  const [inline]

Definition at line 258 of file CH_Segment.h.

float CH_Segment::getOutAccel ( void   )  const [inline]

Definition at line 269 of file CH_Segment.h.

fpreal CH_Segment::getOutAccelRatio (  )  const [inline]

Definition at line 274 of file CH_Segment.h.

float CH_Segment::getOutSlope ( void   )  const [inline]

Definition at line 267 of file CH_Segment.h.

float CH_Segment::getOutValue ( void   )  const [inline]

Definition at line 265 of file CH_Segment.h.

const CH_Segment* CH_Segment::getPrev (  )  const [inline]

Definition at line 292 of file CH_Segment.h.

CH_Segment* CH_Segment::getPrev (  )  [inline]

Definition at line 291 of file CH_Segment.h.

const UT_Vector3* CH_Segment::getSplineKnot ( int  n  )  const [inline]

Definition at line 257 of file CH_Segment.h.

const UT_Vector3* CH_Segment::getSplineKnots ( void   )  const [inline]

Definition at line 256 of file CH_Segment.h.

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

Definition at line 297 of file CH_Segment.h.

CH_StringMeaning CH_Segment::getStringMeaning (  ) 

CH_TimeGroup* CH_Segment::getTimeGroup ( void   )  const [inline]

Definition at line 387 of file CH_Segment.h.

float CH_Segment::getTolerance (  )  const [inline]

Definition at line 129 of file CH_Segment.h.

float CH_Segment::getValue ( bool  left,
CH_ValueTypes  t 
) const

bool CH_Segment::getValueTied ( bool  left,
CH_ValueTypes  t 
) const

bool CH_Segment::getValueValid ( bool  left,
CH_ValueTypes  t 
)

bool CH_Segment::hasNonIntegerKeys (  )  const

int CH_Segment::isBezier (  )  const [inline]

Definition at line 197 of file CH_Segment.h.

int CH_Segment::isConstant (  )  const [inline]

Definition at line 195 of file CH_Segment.h.

int CH_Segment::isCooking (  )  const [inline]

Definition at line 185 of file CH_Segment.h.

int CH_Segment::isCubic (  )  const [inline]

Definition at line 196 of file CH_Segment.h.

unsigned CH_Segment::isDataDependent (  )  const

int CH_Segment::isEndLocked (  )  const [inline]

Definition at line 188 of file CH_Segment.h.

bool CH_Segment::isEndSegment (  )  const [inline]

Definition at line 260 of file CH_Segment.h.

int CH_Segment::isInAccelTied (  )  const [inline]

Definition at line 193 of file CH_Segment.h.

int CH_Segment::isInAccelUsed (  ) 

int CH_Segment::isInSlopeTied (  )  const [inline]

Definition at line 191 of file CH_Segment.h.

int CH_Segment::isInSlopeUsed (  ) 

int CH_Segment::isInValueTied (  )  const [inline]

Definition at line 189 of file CH_Segment.h.

int CH_Segment::isInValueUsed (  ) 

int CH_Segment::isLengthLocked (  )  const [inline]

Definition at line 186 of file CH_Segment.h.

int CH_Segment::isLockedSegment (  )  const [inline]

Definition at line 167 of file CH_Segment.h.

int CH_Segment::isMatchFunction ( void   )  const

int CH_Segment::isOutAccelTied (  )  const [inline]

Definition at line 194 of file CH_Segment.h.

int CH_Segment::isOutAccelUsed (  ) 

int CH_Segment::isOutSlopeTied (  )  const [inline]

Definition at line 192 of file CH_Segment.h.

int CH_Segment::isOutSlopeUsed (  ) 

int CH_Segment::isOutValueTied (  )  const [inline]

Definition at line 190 of file CH_Segment.h.

int CH_Segment::isOutValueUsed (  ) 

int CH_Segment::isQCubic (  )  const [inline]

Definition at line 199 of file CH_Segment.h.

int CH_Segment::isQLinear (  )  const [inline]

Definition at line 198 of file CH_Segment.h.

int CH_Segment::isQuaternion (  )  const [inline]

Definition at line 200 of file CH_Segment.h.

int CH_Segment::isSplineUsed (  ) 

int CH_Segment::isStartLocked (  )  const [inline]

Definition at line 187 of file CH_Segment.h.

bool CH_Segment::isTimeDependent ( bool  evaluate_to_find_out,
int  thread 
) const

bool CH_Segment::isTimeDependent (  )  const

bool CH_Segment::isTimeDependentAndGetFloat ( float &  value,
int  thread 
) const

bool CH_Segment::isTimeDependentAndGetString ( UT_String value,
int  thread 
) const

bool CH_Segment::load ( UT_IStream is,
bool  disabled,
bool  reload = false 
)

void CH_Segment::lockEnd ( int  onoff  )  [inline]

Definition at line 172 of file CH_Segment.h.

void CH_Segment::lockLength ( int  onoff  )  [inline]

Definition at line 170 of file CH_Segment.h.

void CH_Segment::lockStart ( int  onoff  )  [inline]

Definition at line 171 of file CH_Segment.h.

void CH_Segment::normalizeAccels (  ) 

CH_Segment& CH_Segment::operator= ( const CH_Segment from  ) 

int CH_Segment::operator== ( const CH_Segment  )  [inline]

Definition at line 139 of file CH_Segment.h.

float CH_Segment::relativeTime ( float  t  )  const [inline]

Definition at line 300 of file CH_Segment.h.

void CH_Segment::reverse (  ) 

void CH_Segment::save ( ostream &  os,
int  binary,
bool  compiled,
bool  disabled 
) const

void CH_Segment::setChanged (  ) 

void CH_Segment::setChannel ( CH_Channel chp  )  [inline]

Definition at line 156 of file CH_Segment.h.

void CH_Segment::setExprLanguage ( CH_ExprLanguage  language  ) 

void CH_Segment::setInAccel ( float  v,
bool  dotie = true 
)

void CH_Segment::setInAccelRatio ( float  ratio,
bool  dotie = true 
) [inline]

Definition at line 329 of file CH_Segment.h.

void CH_Segment::setInSlope ( float  v,
bool  dotie = true,
float  ar = 0.0 
)

void CH_Segment::setInValue ( float  v,
bool  dotie = true 
)

void CH_Segment::setModified ( int  onOff  ) 

void CH_Segment::setOutAccel ( float  v,
bool  dotie = true 
)

void CH_Segment::setOutAccelRatio ( float  ratio,
bool  dotie = true 
) [inline]

Definition at line 335 of file CH_Segment.h.

void CH_Segment::setOutSlope ( float  v,
bool  dotie = true,
float  ar = 0.0 
)

void CH_Segment::setOutValue ( float  v,
bool  dotie = true 
)

void CH_Segment::setPrevNext ( CH_Segment p,
CH_Segment n 
) [inline]

Definition at line 345 of file CH_Segment.h.

void CH_Segment::setSplineKnot ( int  n,
float  x,
float  y 
)

void CH_Segment::setValue ( bool  left,
CH_ValueTypes  t,
float  value 
)

void CH_Segment::setValueTied ( bool  left,
CH_ValueTypes  t,
bool  on_off 
)

void CH_Segment::stretch ( float  scale,
int  adjust_slopes,
int  adjust_accel 
)

void CH_Segment::tieInAccel ( int  onoff,
bool  dotie = true 
)

void CH_Segment::tieInSlope ( int  onoff,
bool  dotie = true,
float  ar = 0.0 
)

void CH_Segment::tieInValue ( int  onoff,
bool  dotie = true 
)

void CH_Segment::tieOutAccel ( int  onoff,
bool  dotie = true 
)

void CH_Segment::tieOutSlope ( int  onoff,
bool  dotie = true,
float  ar = 0.0 
)

void CH_Segment::tieOutValue ( int  onoff,
bool  dotie = true 
)

void CH_Segment::transferGroup ( CH_Segment from  ) 

void CH_Segment::unresolveLocalVars ( int  thread  ) 

int CH_Segment::wasModified (  )  const [inline]

Definition at line 374 of file CH_Segment.h.


Friends And Related Function Documentation

friend class CH_TimeGroup [friend]

Definition at line 450 of file CH_Segment.h.


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

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