HDK
|
#include <CH_Collection.h>
Public Member Functions | |
CH_Collection (CH_Manager *manager) | |
CH_Collection (CH_Manager *manager, const CH_Collection &from) | |
virtual | ~CH_Collection () |
virtual int64 | getMemoryUsage (bool inclusive) const |
SETUPCLASSPACKETID ("CH_Collection") | |
CH_Manager * | getManager () const |
fpreal | getTolerance () const |
virtual int | canAccess (uint mask) const |
virtual int | canAccessChannel (uint mask, const CH_Channel *chp) const |
exint | entries () const |
const CH_Channel * | getChannel (const UT_StringRef &name) const |
CH_Channel * | getChannel (const UT_StringRef &name) |
const CH_Channel * | getChannel (int idx) const |
CH_Channel * | getChannel (int idx) |
int | getChannels (CH_ChannelList &chans, int scope=0) const |
int | getChannels (CH_ChannelList &chans, const char *pattern) const |
int | getChannelNames (CH_NameList &list, int scope=0) const |
int | getChannelCount (int scoped=0) const |
virtual CH_Collection * | findCollection (const char *path) const =0 |
CH_Channel * | findChannel (const char *path) const |
CH_Channel * | findOrCreateChannel (const char *path) |
CH_Channel * | addChannel (const UT_StringHolder &name) |
CH_Channel * | addChannel (CH_Channel *chp) |
CH_Channel * | dupChannel (const UT_StringRef &name) |
virtual CH_Channel * | dupChannel (const CH_Channel &from) |
virtual int | rename (const char *from_name, const char *to_name, const char *to_alias) |
virtual int | rename (CH_Channel *from, const char *to_name, const char *to_alias) |
void | deleteChannel (CH_Channel *chp) |
int | deleteChannels () |
fpreal | evaluate (CH_Channel *chp, fpreal time, bool no_disabling, int thread) |
void | evaluate (CH_Channel *chp, fpreal from, fpreal to, fpreal *vals, int nsamples, bool no_disabling, bool use_cache, int thread) |
void | evaluateString (UT_String &result, CH_Channel *chp, fpreal time, int thread) |
void | unresolveLocalVars (int thread) |
virtual UT_StringHolder | getFullPath () const =0 |
void | getFullPath (UT_String &path) const |
void | getFullPath (const CH_Channel *chp, UT_StringHolder &p, bool use_alias=false) const |
void | getFullPath (const CH_Channel *chp, UT_String &p, bool use_alias=false) const |
void | channelFind (const char *path, CHfindCallBack callback, void *data=nullptr) const |
void | findString (const char *word, bool fullword, bool usewildcards, CHfindCallBack callback, void *data=nullptr) |
int | findString (const char *word, bool fullword, bool usewildcards) const |
int | changeString (const char *from, const char *to, bool fullword, int thread) |
virtual const UT_String & | getName () const =0 |
virtual int | getUniqueId () const |
virtual CH_Collection * | lookupCollection (int id) const |
virtual const CH_Collection * | getParent () const =0 |
virtual CH_Collection * | getParent ()=0 |
virtual const CH_Collection * | getChild (const char *name) const =0 |
virtual CH_Collection * | getChild (const char *name)=0 |
virtual const void * | getOwner () const =0 |
virtual void * | getOwner ()=0 |
virtual int | getChildren (CH_NameList &names) const =0 |
virtual int | getChildren (CH_CollectionList &grps) const =0 |
virtual bool | getVariableValue (UT_String &str, int table, int index, int thread) |
virtual bool | getVariableValue (fpreal &val, int table, int index, int thread) |
virtual const CH_LocalVariable * | resolveVariable (const char *name, int &tab) |
int | save (std::ostream &os, bool binary, bool compiled, bool scoped, bool pending_state, const CH_ChannelList *channels) const |
int | saveToFile (const char *nm) const |
template<typename FPREAL_TYPE > | |
bool | load (UT_IStream &is, const char *path=nullptr, const CH_LoadInfo *load_info=nullptr, CH_ChannelList *loadedChannels=nullptr, bool delete_keys=false) |
int | loadFromFile (const char *nm) |
fpreal | findKey (fpreal gtime, int dir) const |
virtual void | saveKeyFrameForUndo (CH_Channel *chp, fpreal gtime)=0 |
virtual void | saveChannelForUndo (CH_Channel *chp)=0 |
Save the entire channel for undo. More... | |
int | getChanged () const |
virtual void | setChanged (CH_CHANGE_TYPE how, void *data=nullptr) |
void | setExpose (bool onoff) |
bool | getExpose () const |
void | clearAndDestroy () |
void | initManager (CH_Manager *manager) |
void | updateGlobalVariables (CH_LocalVariable *table) |
fpreal | getGlobalStart () const |
fpreal | getGlobalEnd () const |
bool | getCollectionRange (fpreal &start, fpreal &end, bool &timedep, int thread) |
void | addDynamicVariables (CH_LocalVariable *table) |
void | addedParamDependency () |
void | removeParamDependency () |
virtual void | getXformOrder (UT_XformOrder &xord, const CH_Channel *chp) const |
bool | setChannelAlias (CH_Channel &chp, const UT_StringHolder &alias) |
virtual OP_Channels * | castToOPChannels () |
virtual const OP_Channels * | castToOPChannels () const |
virtual void | addLocalVarDependency (int table, int index, void *ref_id) |
CH_ExprLanguage | getExprLanguage () const |
void | setExprLanguage (CH_ExprLanguage language) |
virtual void | getLocalVariables (UT_StringArray &out_vars) |
bool | getExternal () const |
void | setExternal (bool yesno) |
Static Public Member Functions | |
static bool | isValidChannelName (const char *s) |
Protected Member Functions | |
SYS_FORCE_INLINE void | checkEvaluationError (const CH_Channel *chp, int thread) const |
void | addLocalVariables (CH_LocalVariable *table) |
const CH_Collection * | getRoot () const |
const CH_ChannelList * | getChannels () const |
virtual void | notifyChannelRenameDependents (const char *old_name, const char *new_name) |
Friends | |
class | CH_Manager |
Definition at line 91 of file CH_Collection.h.
CH_Collection::CH_Collection | ( | CH_Manager * | manager | ) |
CH_Collection::CH_Collection | ( | CH_Manager * | manager, |
const CH_Collection & | from | ||
) |
|
virtual |
CH_Channel* CH_Collection::addChannel | ( | const UT_StringHolder & | name | ) |
CH_Channel* CH_Collection::addChannel | ( | CH_Channel * | chp | ) |
|
inline |
Definition at line 300 of file CH_Collection.h.
void CH_Collection::addedParamDependency | ( | ) |
Reimplemented in OP_Channels.
|
inlineprotected |
Definition at line 359 of file CH_Collection.h.
|
virtual |
Reimplemented in OP_Channels.
|
inlinevirtual |
Reimplemented in OP_Channels, and OP_GeometryChannels.
Definition at line 334 of file CH_Collection.h.
|
inlinevirtual |
Reimplemented in OP_Channels, and OP_GeometryChannels.
Definition at line 335 of file CH_Collection.h.
void CH_Collection::channelFind | ( | const char * | path, |
CHfindCallBack | callback, | ||
void * | data = nullptr |
||
) | const |
|
inlineprotected |
Definition at line 352 of file CH_Collection.h.
void CH_Collection::clearAndDestroy | ( | ) |
void CH_Collection::deleteChannel | ( | CH_Channel * | chp | ) |
int CH_Collection::deleteChannels | ( | ) |
CH_Channel* CH_Collection::dupChannel | ( | const UT_StringRef & | name | ) |
|
virtual |
|
inline |
Definition at line 108 of file CH_Collection.h.
fpreal CH_Collection::evaluate | ( | CH_Channel * | chp, |
fpreal | time, | ||
bool | no_disabling, | ||
int | thread | ||
) |
void CH_Collection::evaluate | ( | CH_Channel * | chp, |
fpreal | from, | ||
fpreal | to, | ||
fpreal * | vals, | ||
int | nsamples, | ||
bool | no_disabling, | ||
bool | use_cache, | ||
int | thread | ||
) |
void CH_Collection::evaluateString | ( | UT_String & | result, |
CH_Channel * | chp, | ||
fpreal | time, | ||
int | thread | ||
) |
CH_Channel* CH_Collection::findChannel | ( | const char * | path | ) | const |
|
pure virtual |
Implemented in OP_Channels.
CH_Channel* CH_Collection::findOrCreateChannel | ( | const char * | path | ) |
void CH_Collection::findString | ( | const char * | word, |
bool | fullword, | ||
bool | usewildcards, | ||
CHfindCallBack | callback, | ||
void * | data = nullptr |
||
) |
int CH_Collection::findString | ( | const char * | word, |
bool | fullword, | ||
bool | usewildcards | ||
) | const |
|
inline |
Definition at line 271 of file CH_Collection.h.
const CH_Channel* CH_Collection::getChannel | ( | const UT_StringRef & | name | ) | const |
CH_Channel* CH_Collection::getChannel | ( | const UT_StringRef & | name | ) |
|
inline |
Definition at line 116 of file CH_Collection.h.
|
inline |
Definition at line 117 of file CH_Collection.h.
int CH_Collection::getChannelNames | ( | CH_NameList & | list, |
int | scope = 0 |
||
) | const |
int CH_Collection::getChannels | ( | CH_ChannelList & | chans, |
int | scope = 0 |
||
) | const |
int CH_Collection::getChannels | ( | CH_ChannelList & | chans, |
const char * | pattern | ||
) | const |
|
inlineprotected |
Definition at line 365 of file CH_Collection.h.
|
pure virtual |
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
inline |
Definition at line 275 of file CH_Collection.h.
CH_ExprLanguage CH_Collection::getExprLanguage | ( | ) | const |
|
inline |
Definition at line 318 of file CH_Collection.h.
|
pure virtual |
Implemented in OP_Channels, and OP_GeometryChannels.
void CH_Collection::getFullPath | ( | const CH_Channel * | chp, |
UT_StringHolder & | p, | ||
bool | use_alias = false |
||
) | const |
|
inline |
Definition at line 182 of file CH_Collection.h.
|
inline |
Definition at line 289 of file CH_Collection.h.
|
inline |
Definition at line 287 of file CH_Collection.h.
|
virtual |
|
inline |
Definition at line 102 of file CH_Collection.h.
|
virtual |
Reimplemented in OP_GeometryChannels, and OP_Channels.
|
pure virtual |
Implemented in OP_GeometryChannels, and OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels.
|
protected |
|
inline |
Definition at line 103 of file CH_Collection.h.
|
virtual |
Reimplemented in OP_Channels.
|
virtual |
Reimplemented in OP_Channels.
|
virtual |
Reimplemented in OP_Channels.
|
virtual |
Reimplemented in OP_Channels.
void CH_Collection::initManager | ( | CH_Manager * | manager | ) |
|
static |
bool CH_Collection::load | ( | UT_IStream & | is, |
const char * | path = nullptr , |
||
const CH_LoadInfo * | load_info = nullptr , |
||
CH_ChannelList * | loadedChannels = nullptr , |
||
bool | delete_keys = false |
||
) |
int CH_Collection::loadFromFile | ( | const char * | nm | ) |
|
virtual |
Reimplemented in OP_Channels.
|
protectedvirtual |
Reimplemented in OP_Channels.
void CH_Collection::removeParamDependency | ( | ) |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in OP_Channels.
int CH_Collection::save | ( | std::ostream & | os, |
bool | binary, | ||
bool | compiled, | ||
bool | scoped, | ||
bool | pending_state, | ||
const CH_ChannelList * | channels | ||
) | const |
|
pure virtual |
Save the entire channel for undo.
Implemented in OP_Channels.
|
pure virtual |
Implemented in OP_Channels, and OP_GeometryChannels.
int CH_Collection::saveToFile | ( | const char * | nm | ) | const |
|
virtual |
Reimplemented in OP_Channels, and OP_GeometryChannels.
bool CH_Collection::setChannelAlias | ( | CH_Channel & | chp, |
const UT_StringHolder & | alias | ||
) |
void CH_Collection::setExpose | ( | bool | onoff | ) |
void CH_Collection::setExprLanguage | ( | CH_ExprLanguage | language | ) |
|
inline |
Definition at line 320 of file CH_Collection.h.
CH_Collection::SETUPCLASSPACKETID | ( | "CH_Collection" | ) |
|
inline |
Definition at line 284 of file CH_Collection.h.
|
friend |
Definition at line 398 of file CH_Collection.h.