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

#include <CH_Segment.h>

Public Member Functions

 CH_Segment (CH_Channel *mom)
 
 CH_Segment (fpreal defVal, CH_Channel *mom, fpreal len=0)
 
 CH_Segment (const CH_Segment &from)
 
 CH_Segment (const char *expr, CH_ExprLanguage language, CH_Channel *mom, fpreal len=0)
 
 ~CH_Segment ()
 
int64 getMemoryUsage (bool inclusive) const
 
CH_ManagergetManager () const
 
fpreal getTolerance () const
 
void save (std::ostream &os, int binary, bool compiled, bool disabled) const
 
template<typename FPREAL_TYPE >
bool load (UT_IStream &is, bool disabled, bool reload=false)
 
CH_Segmentoperator= (const CH_Segment &from)
 
int operator== (const CH_Segment &)
 
fpreal evaluate (fpreal ltime, bool extend, int thread)
 
void evaluateString (UT_String &result, fpreal 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
 
int isChopSegment () 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, fpreal ar=0.0)
 
void tieOutSlope (int onoff, bool dotie=true, fpreal ar=0.0)
 
void tieInAccel (int onoff, bool dotie=true)
 
void tieOutAccel (int onoff, bool dotie=true)
 
void autoInSlope (int onoff)
 
void autoOutSlope (int onoff)
 
void cook (int state, int unused=0)
 
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 isLinear () const
 
int isQLinear () const
 
int isQCubic () const
 
int isQuaternion () const
 
int isInSlopeAuto () const
 
int isOutSlopeAuto () const
 
int isInValueUsed ()
 
int isOutValueUsed ()
 
int isInSlopeUsed ()
 
int isOutSlopeUsed ()
 
int isInAccelUsed ()
 
int isOutAccelUsed ()
 
int isSplineUsed ()
 
bool getFunctionKeyUserFlags (int thread, unsigned &flags)
 
bool isTimeDependent () const
 
bool isTimeDependent (bool evaluate_to_find_out, int thread) const
 
bool isTimeDependentAndGetFloat (fpreal &value, int thread) const
 
bool isTimeDependentAndGetString (UT_String &value, int thread) const
 
bool hasNonIntegerKeys () const
 
unsigned isDataDependent () const
 
int canChange (fpreal start, fpreal end) const
 
void changeLength (fpreal len, CH_SegmentScale how=CH_SCALE_ANY, bool accel_ratio=true)
 
void changeTimes (fpreal s, fpreal e)
 
void stretch (fpreal scale, int adjust_slopes, int adjust_accel)
 
const char * getExpression (void) const
 
const CH_ExpressiongetCHExpr () const
 
CH_ExpressiongetCHExpr ()
 
bool isEndSegment () const
 
fpreal getInValue (void) const
 
fpreal getOutValue (void) const
 
fpreal getInSlope (void) const
 
fpreal getOutSlope (void) const
 
fpreal getInAccel (void) const
 
fpreal getOutAccel (void) const
 
fpreal getInAccelRatio () const
 
fpreal getOutAccelRatio () const
 
CH_SegmentgetNext ()
 
const CH_SegmentgetNext () const
 
void setNext (CH_Segment *segp)
 
CH_SegmentgetPrev ()
 
const CH_SegmentgetPrev () const
 
void setPrev (CH_Segment *segp)
 
fpreal getLength (void) const
 
fpreal getILength (void) const
 
fpreal getStart (void) const
 
fpreal getEnd (void) const
 
fpreal relativeTime (fpreal t) const
 
void changeExpression (const char *expr, CH_ExprLanguage language, bool convert_accels)
 
void changeExpression (const char *expr, CH_ExprLanguage language)
 
bool expressionIsAnimationFunctionCall ()
 
void setInValue (fpreal v, bool dotie=true)
 
void setOutValue (fpreal v, bool dotie=true)
 
void setInSlope (fpreal v, bool dotie=true, fpreal ar=0.0)
 
void setOutSlope (fpreal v, bool dotie=true, fpreal ar=0.0)
 
void setInAccel (fpreal v, bool dotie=true)
 
void setOutAccel (fpreal v, bool dotie=true)
 
void setInAccelRatio (fpreal ratio, bool dotie=true)
 
void setOutAccelRatio (fpreal 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 ()
 
fpreal getValue (bool left, CH_ValueTypes t) const
 
void setValue (bool left, CH_ValueTypes t, fpreal 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)
 
bool getValueAuto (bool left, CH_ValueTypes t) const
 
void setValueAuto (bool left, CH_ValueTypes t, bool on_off)
 
void display ()
 
CH_TimeGroupgetTimeGroup (void) const
 

Static Public Member Functions

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

Friends

class CH_TimeGroup
 

Detailed Description

Definition at line 112 of file CH_Segment.h.

Constructor & Destructor Documentation

CH_Segment::CH_Segment ( CH_Channel mom)
CH_Segment::CH_Segment ( fpreal  defVal,
CH_Channel mom,
fpreal  len = 0 
)
CH_Segment::CH_Segment ( const CH_Segment from)
CH_Segment::CH_Segment ( const char *  expr,
CH_ExprLanguage  language,
CH_Channel mom,
fpreal  len = 0 
)
CH_Segment::~CH_Segment ( )

Member Function Documentation

void CH_Segment::autoInSlope ( int  onoff)
void CH_Segment::autoOutSlope ( int  onoff)
void CH_Segment::buildOpDependencies ( void ref_id,
int  thread 
)
int CH_Segment::canChange ( fpreal  start,
fpreal  end 
) const
void CH_Segment::changeExpression ( const char *  expr,
CH_ExprLanguage  language,
bool  convert_accels 
)
void CH_Segment::changeExpression ( const char *  expr,
CH_ExprLanguage  language 
)
void CH_Segment::changeLength ( fpreal  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 ( fpreal  s,
fpreal  e 
)
void CH_Segment::clampInAccel ( )
void CH_Segment::clampOutAccel ( )
void CH_Segment::cook ( int  state,
int  unused = 0 
)
void CH_Segment::dirtyExprCache ( )
void CH_Segment::display ( )
fpreal CH_Segment::evaluate ( fpreal  ltime,
bool  extend,
int  thread 
)
void CH_Segment::evaluateString ( UT_String result,
fpreal  ltime,
bool  extend,
int  thread 
)
static bool CH_Segment::expressionIsAnimationFunctionCall ( const char *  expression)
static
bool CH_Segment::expressionIsAnimationFunctionCall ( )
int CH_Segment::findString ( const char *  str,
bool  fullword,
bool  usewildcards 
) const
static fpreal CH_Segment::getAccelFromRatio ( fpreal  slope,
fpreal  ratio,
fpreal  length 
)
inlinestatic

Definition at line 300 of file CH_Segment.h.

static fpreal CH_Segment::getAccelRatio ( fpreal  slope,
fpreal  accel,
fpreal  length 
)
static
CH_Channel* CH_Segment::getChannel ( void  ) const
inline

Definition at line 163 of file CH_Segment.h.

const CH_Expression* CH_Segment::getCHExpr ( ) const
inline

Definition at line 276 of file CH_Segment.h.

CH_Expression* CH_Segment::getCHExpr ( )
inline

Definition at line 277 of file CH_Segment.h.

fpreal CH_Segment::getEnd ( void  ) const
inline

Definition at line 321 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 178 of file CH_Segment.h.

bool CH_Segment::getFunctionKeyUserFlags ( int  thread,
unsigned &  flags 
)
fpreal CH_Segment::getILength ( void  ) const
inline

Definition at line 318 of file CH_Segment.h.

fpreal CH_Segment::getInAccel ( void  ) const
inline

Definition at line 287 of file CH_Segment.h.

fpreal CH_Segment::getInAccelRatio ( ) const
inline

Definition at line 289 of file CH_Segment.h.

fpreal CH_Segment::getInSlope ( void  ) const
inline

Definition at line 285 of file CH_Segment.h.

fpreal CH_Segment::getInValue ( void  ) const
inline

Definition at line 283 of file CH_Segment.h.

fpreal CH_Segment::getLength ( void  ) const
inline

Definition at line 317 of file CH_Segment.h.

CH_Manager* CH_Segment::getManager ( ) const
int64 CH_Segment::getMemoryUsage ( bool  inclusive) const
CH_Segment* CH_Segment::getNext ( )
inline

Definition at line 308 of file CH_Segment.h.

const CH_Segment* CH_Segment::getNext ( ) const
inline

Definition at line 309 of file CH_Segment.h.

fpreal CH_Segment::getOutAccel ( void  ) const
inline

Definition at line 288 of file CH_Segment.h.

fpreal CH_Segment::getOutAccelRatio ( ) const
inline

Definition at line 293 of file CH_Segment.h.

fpreal CH_Segment::getOutSlope ( void  ) const
inline

Definition at line 286 of file CH_Segment.h.

fpreal CH_Segment::getOutValue ( void  ) const
inline

Definition at line 284 of file CH_Segment.h.

CH_Segment* CH_Segment::getPrev ( )
inline

Definition at line 312 of file CH_Segment.h.

const CH_Segment* CH_Segment::getPrev ( ) const
inline

Definition at line 313 of file CH_Segment.h.

fpreal CH_Segment::getStart ( void  ) const
inline

Definition at line 320 of file CH_Segment.h.

CH_StringMeaning CH_Segment::getStringMeaning ( )
CH_TimeGroup* CH_Segment::getTimeGroup ( void  ) const
inline

Definition at line 409 of file CH_Segment.h.

fpreal CH_Segment::getTolerance ( ) const
fpreal CH_Segment::getValue ( bool  left,
CH_ValueTypes  t 
) const
bool CH_Segment::getValueAuto ( 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 209 of file CH_Segment.h.

int CH_Segment::isChopSegment ( ) const
inline

Definition at line 176 of file CH_Segment.h.

int CH_Segment::isConstant ( ) const
inline

Definition at line 207 of file CH_Segment.h.

int CH_Segment::isCooking ( ) const
inline

Definition at line 197 of file CH_Segment.h.

int CH_Segment::isCubic ( ) const
inline

Definition at line 208 of file CH_Segment.h.

unsigned CH_Segment::isDataDependent ( ) const
int CH_Segment::isEndLocked ( ) const
inline

Definition at line 200 of file CH_Segment.h.

bool CH_Segment::isEndSegment ( ) const
inline

Definition at line 279 of file CH_Segment.h.

int CH_Segment::isInAccelTied ( ) const
inline

Definition at line 205 of file CH_Segment.h.

int CH_Segment::isInAccelUsed ( )
int CH_Segment::isInSlopeAuto ( ) const
inline

Definition at line 216 of file CH_Segment.h.

int CH_Segment::isInSlopeTied ( ) const
inline

Definition at line 203 of file CH_Segment.h.

int CH_Segment::isInSlopeUsed ( )
int CH_Segment::isInValueTied ( ) const
inline

Definition at line 201 of file CH_Segment.h.

int CH_Segment::isInValueUsed ( )
int CH_Segment::isLengthLocked ( ) const
inline

Definition at line 198 of file CH_Segment.h.

int CH_Segment::isLinear ( ) const
inline

Definition at line 210 of file CH_Segment.h.

int CH_Segment::isLockedSegment ( ) const
inline

Definition at line 175 of file CH_Segment.h.

int CH_Segment::isMatchFunction ( void  ) const
int CH_Segment::isOutAccelTied ( ) const
inline

Definition at line 206 of file CH_Segment.h.

int CH_Segment::isOutAccelUsed ( )
int CH_Segment::isOutSlopeAuto ( ) const
inline

Definition at line 217 of file CH_Segment.h.

int CH_Segment::isOutSlopeTied ( ) const
inline

Definition at line 204 of file CH_Segment.h.

int CH_Segment::isOutSlopeUsed ( )
int CH_Segment::isOutValueTied ( ) const
inline

Definition at line 202 of file CH_Segment.h.

int CH_Segment::isOutValueUsed ( )
int CH_Segment::isQCubic ( ) const
inline

Definition at line 212 of file CH_Segment.h.

int CH_Segment::isQLinear ( ) const
inline

Definition at line 211 of file CH_Segment.h.

int CH_Segment::isQuaternion ( ) const
inline

Definition at line 213 of file CH_Segment.h.

int CH_Segment::isSplineUsed ( )
int CH_Segment::isStartLocked ( ) const
inline

Definition at line 199 of file CH_Segment.h.

bool CH_Segment::isTimeDependent ( ) const
inline

Definition at line 464 of file CH_Segment.h.

bool CH_Segment::isTimeDependent ( bool  evaluate_to_find_out,
int  thread 
) const
bool CH_Segment::isTimeDependentAndGetFloat ( fpreal value,
int  thread 
) const
bool CH_Segment::isTimeDependentAndGetString ( UT_String value,
int  thread 
) const
template<typename FPREAL_TYPE >
bool CH_Segment::load ( UT_IStream is,
bool  disabled,
bool  reload = false 
)
void CH_Segment::lockEnd ( int  onoff)
inline

Definition at line 181 of file CH_Segment.h.

void CH_Segment::lockLength ( int  onoff)
inline

Definition at line 179 of file CH_Segment.h.

void CH_Segment::lockStart ( int  onoff)
inline

Definition at line 180 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 147 of file CH_Segment.h.

fpreal CH_Segment::relativeTime ( fpreal  t) const
inline

Definition at line 323 of file CH_Segment.h.

void CH_Segment::reverse ( )
void CH_Segment::save ( std::ostream &  os,
int  binary,
bool  compiled,
bool  disabled 
) const
void CH_Segment::setChanged ( )
void CH_Segment::setChannel ( CH_Channel chp)
inline

Definition at line 164 of file CH_Segment.h.

void CH_Segment::setExprLanguage ( CH_ExprLanguage  language)
void CH_Segment::setInAccel ( fpreal  v,
bool  dotie = true 
)
void CH_Segment::setInAccelRatio ( fpreal  ratio,
bool  dotie = true 
)
inline

Definition at line 349 of file CH_Segment.h.

void CH_Segment::setInSlope ( fpreal  v,
bool  dotie = true,
fpreal  ar = 0.0 
)
void CH_Segment::setInValue ( fpreal  v,
bool  dotie = true 
)
void CH_Segment::setModified ( int  onOff)
void CH_Segment::setNext ( CH_Segment segp)
inline

Definition at line 310 of file CH_Segment.h.

void CH_Segment::setOutAccel ( fpreal  v,
bool  dotie = true 
)
void CH_Segment::setOutAccelRatio ( fpreal  ratio,
bool  dotie = true 
)
inline

Definition at line 355 of file CH_Segment.h.

void CH_Segment::setOutSlope ( fpreal  v,
bool  dotie = true,
fpreal  ar = 0.0 
)
void CH_Segment::setOutValue ( fpreal  v,
bool  dotie = true 
)
void CH_Segment::setPrev ( CH_Segment segp)
inline

Definition at line 314 of file CH_Segment.h.

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

Definition at line 365 of file CH_Segment.h.

void CH_Segment::setValue ( bool  left,
CH_ValueTypes  t,
fpreal  value 
)
void CH_Segment::setValueAuto ( bool  left,
CH_ValueTypes  t,
bool  on_off 
)
void CH_Segment::setValueTied ( bool  left,
CH_ValueTypes  t,
bool  on_off 
)
void CH_Segment::stretch ( fpreal  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,
fpreal  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,
fpreal  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 394 of file CH_Segment.h.

Friends And Related Function Documentation

friend class CH_TimeGroup
friend

Definition at line 460 of file CH_Segment.h.


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