CH/CH_Channel.h File Reference

#include "CH_API.h"
#include <iostream.h>
#include <UT/UT_Algorithm.h>
#include <UT/UT_Defines.h>
#include <UT/UT_IntArray.h>
#include <UT/UT_PtrArray.h>
#include <UT/UT_String.h>
#include <UT/UT_SuperInterval.h>
#include <UT/UT_IStream.h>
#include <UT/UT_VectorTypes.h>
#include "CH_Collection.h"

Go to the source code of this file.

Classes

class  CH_HalfKey
class  CH_Key
class  CH_FullKey
class  CH_ReversibleKey
class  CH_ChannelIterator
class  CH_Channel
class  CH_Channel::EvalData

Enumerations

enum  CH_ValueTypes { CH_VALUE = 0, CH_SLOPE, CH_ACCEL, CH_NUM_VALUES }
enum  CH_ChannelBehavior {
  CH_CHANNEL_DEFAULT, CH_CHANNEL_HOLD, CH_CHANNEL_CYCLE, CH_CHANNEL_EXTEND,
  CH_CHANNEL_SLOPE
}
enum  CH_SegmentScale { CH_SCALE_ANY, CH_SCALE_START, CH_SCALE_END }
enum  CH_ChannelFlag {
  CH_CHANNEL_NONE = 0x00, CH_CHANNEL_MODIFIED = 0x01, CH_CHANNEL_COOKING = 0x02, CH_CACHE_ENABLED = 0x04,
  CH_CHANNEL_SPARE = 0x08, CH_CHANNEL_ACTIVE = 0x10, CH_CHANNEL_PENDING = 0x20, CH_CHANNEL_PENDINGHOLD = 0x40,
  CH_CHANNEL_LOCKED = 0x80, CH_CHANNEL_SAVE_MASK = CH_CHANNEL_PENDING, CH_CHANNEL_FLAG_MASK = 0xFF
}

Functions

 UT_SWAPPER_SIMPLE (CH_ChannelBehavior)
 UT_SWAPPER_SIMPLE (CH_HalfKey)
void UTswap (CH_Channel &x, CH_Channel &y)
CH_API void CHstretchSlopeAccel (float xscale, float yscale, float &slope, float &accel, bool accel_ratio)
CH_API void CHfindMoveKeysDelta (const CH_Channel *chp, bool snap_to_frame, float base_time, const UT_FloatArray &orig_keys, float accepted_dt, float &attempted_dt)
CH_API void CHmoveKeysWithDelta (CH_Channel *chp, const UT_FloatArray &orig_keys, float old_accepted_dt, float new_accepted_dt)

Variables

CH_API char CHvalueNames [2][CH_NUM_VALUES]


Enumeration Type Documentation

Enumerator:
CH_CHANNEL_DEFAULT 
CH_CHANNEL_HOLD 
CH_CHANNEL_CYCLE 
CH_CHANNEL_EXTEND 
CH_CHANNEL_SLOPE 

Definition at line 45 of file CH_Channel.h.

Enumerator:
CH_CHANNEL_NONE 
CH_CHANNEL_MODIFIED 
CH_CHANNEL_COOKING 
CH_CACHE_ENABLED 
CH_CHANNEL_SPARE 
CH_CHANNEL_ACTIVE 
CH_CHANNEL_PENDING 
CH_CHANNEL_PENDINGHOLD 
CH_CHANNEL_LOCKED 
CH_CHANNEL_SAVE_MASK 
CH_CHANNEL_FLAG_MASK 

Definition at line 68 of file CH_Channel.h.

Enumerator:
CH_SCALE_ANY 
CH_SCALE_START 
CH_SCALE_END 

Definition at line 60 of file CH_Channel.h.

Enumerator:
CH_VALUE 
CH_SLOPE 
CH_ACCEL 
CH_NUM_VALUES 

Definition at line 35 of file CH_Channel.h.


Function Documentation

CH_API void CHfindMoveKeysDelta ( const CH_Channel chp,
bool  snap_to_frame,
float  base_time,
const UT_FloatArray orig_keys,
float  accepted_dt,
float &  attempted_dt 
)

CH_API void CHmoveKeysWithDelta ( CH_Channel chp,
const UT_FloatArray orig_keys,
float  old_accepted_dt,
float  new_accepted_dt 
)

CH_API void CHstretchSlopeAccel ( float  xscale,
float  yscale,
float &  slope,
float &  accel,
bool  accel_ratio 
)

This function stretches the modifies the given slope and accel values according to the given factors. If the accel value is given as a ratio, then accel_ratio should be true.

UT_SWAPPER_SIMPLE ( CH_HalfKey   ) 

UT_SWAPPER_SIMPLE ( CH_ChannelBehavior   ) 

void UTswap ( CH_Channel x,
CH_Channel y 
) [inline]

Definition at line 822 of file CH_Channel.h.


Variable Documentation

CH_API char CHvalueNames[2][CH_NUM_VALUES]


Generated on Mon Jan 28 00:47:21 2013 for HDK by  doxygen 1.5.9