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

#include <OP_Channels.h>

+ Inheritance diagram for OP_Channels:

Public Types

enum  { OP_VARIABLE_TABLE_INDEX = 4 }
 

Public Member Functions

 OP_Channels (OP_Node *owner, CH_Manager *chman, CH_LocalVariable *vars)
 
 ~OP_Channels () override
 
int64 getMemoryUsage (bool inclusive) const override
 
const UT_StringgetName () const override
 
int getUniqueId () const override
 
CH_CollectionlookupCollection (int id) const override
 
const CH_CollectiongetParent () const override
 
CH_CollectiongetParent () override
 
const CH_CollectiongetChild (const char *name) const override
 
CH_CollectiongetChild (const char *name) override
 
const voidgetOwner () const override
 
voidgetOwner () override
 
int getChildren (CH_NameList &names) const override
 
int getChildren (CH_CollectionList &grps) const override
 
UT_StringHolder getFullPath () const override
 
CH_CollectionfindCollection (const char *name) const override
 
void setChanged (CH_CHANGE_TYPE how, void *data=0) override
 
OP_NodegetNode () const
 
void setNode (OP_Node *new_owner)
 
bool getVariableValue (fpreal &val, int table, int index, int thread) override
 
bool getVariableValue (UT_String &str, int table, int index, int thread) override
 
const CH_LocalVariableresolveVariable (const char *name, int &tab) override
 
const CH_LocalVariableresolveExtraVariableForSyntaxHighlight (const char *name)
 
void getXformOrder (UT_XformOrder &xord, const CH_Channel *chp) const override
 
void setTargetChannel (const CH_Channel *target) const
 
int canAccess (unsigned mask) const override
 
int canAccessChannel (uint mask, const CH_Channel *chp) const override
 
void saveKeyFrameForUndo (CH_Channel *chp, fpreal gtime) override
 
void addLocalVarDependency (int table, int index, void *ref_id) override
 
OP_ChannelscastToOPChannels () override
 
const OP_ChannelscastToOPChannels () const override
 
- Public Member Functions inherited from CH_Collection
 CH_Collection (CH_Manager *manager)
 
 CH_Collection (CH_Manager *manager, const CH_Collection &from)
 
virtual ~CH_Collection ()
 
 SETUPCLASSPACKETID ("CH_Collection")
 
CH_ManagergetManager () const
 
fpreal getTolerance () const
 
virtual int canAccess (uint mask) const
 
exint entries () const
 
const CH_ChannelgetChannel (const UT_StringRef &name) const
 
CH_ChannelgetChannel (const UT_StringRef &name)
 
const CH_ChannelgetChannel (int idx) const
 
CH_ChannelgetChannel (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
 
CH_ChannelfindChannel (const char *path) const
 
CH_ChannelfindOrCreateChannel (const char *path)
 
CH_ChanneladdChannel (const UT_StringHolder &name)
 
CH_ChanneladdChannel (CH_Channel *chp)
 
CH_ChanneldupChannel (const UT_StringRef &name)
 
virtual CH_ChanneldupChannel (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)
 
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)
 
int save (std::ostream &os, int binary, bool compiled, int scope, const CH_ChannelList *channels=nullptr) const
 
int saveToFile (const char *nm) const
 
template<typename FPREAL_TYPE >
bool load (UT_IStream &is, const char *path=0, 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
 
int getChanged () const
 
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 ()
 
bool setChannelAlias (CH_Channel &chp, const UT_StringHolder &alias)
 
CH_ExprLanguage getExprLanguage () const
 
void setExprLanguage (CH_ExprLanguage language)
 
virtual void getLocalVariables (UT_StringArray &out_vars)
 
bool getExternal () const
 
void setExternal (bool yesno)
 

Protected Member Functions

void notifyChannelRenameDependents (const char *old_name, const char *new_name) override
 
- Protected Member Functions inherited from CH_Collection
SYS_FORCE_INLINE void checkEvaluationError (const CH_Channel *chp, int thread) const
 
void addLocalVariables (CH_LocalVariable *table)
 
const CH_CollectiongetRoot () const
 
const CH_ChannelListgetChannels () const
 

Additional Inherited Members

- Static Public Member Functions inherited from CH_Collection
static bool isValidChannelName (const char *s)
 

Detailed Description

Definition at line 42 of file OP_Channels.h.

Member Enumeration Documentation

anonymous enum
Enumerator
OP_VARIABLE_TABLE_INDEX 

Definition at line 84 of file OP_Channels.h.

Constructor & Destructor Documentation

OP_Channels::OP_Channels ( OP_Node owner,
CH_Manager chman,
CH_LocalVariable vars 
)
OP_Channels::~OP_Channels ( )
override

Member Function Documentation

void OP_Channels::addLocalVarDependency ( int  table,
int  index,
void ref_id 
)
overridevirtual

Reimplemented from CH_Collection.

int OP_Channels::canAccess ( unsigned  mask) const
override
int OP_Channels::canAccessChannel ( uint  mask,
const CH_Channel chp 
) const
overridevirtual

Reimplemented from CH_Collection.

OP_Channels* OP_Channels::castToOPChannels ( )
inlineoverridevirtual

Reimplemented from CH_Collection.

Definition at line 109 of file OP_Channels.h.

const OP_Channels* OP_Channels::castToOPChannels ( ) const
inlineoverridevirtual

Reimplemented from CH_Collection.

Definition at line 110 of file OP_Channels.h.

CH_Collection* OP_Channels::findCollection ( const char *  name) const
overridevirtual

Implements CH_Collection.

const CH_Collection* OP_Channels::getChild ( const char *  name) const
overridevirtual

Implements CH_Collection.

CH_Collection* OP_Channels::getChild ( const char *  name)
overridevirtual

Implements CH_Collection.

int OP_Channels::getChildren ( CH_NameList names) const
overridevirtual

Implements CH_Collection.

int OP_Channels::getChildren ( CH_CollectionList grps) const
overridevirtual

Implements CH_Collection.

UT_StringHolder OP_Channels::getFullPath ( ) const
overridevirtual

Implements CH_Collection.

int64 OP_Channels::getMemoryUsage ( bool  inclusive) const
overridevirtual

Reimplemented from CH_Collection.

const UT_String& OP_Channels::getName ( ) const
overridevirtual

Implements CH_Collection.

OP_Node* OP_Channels::getNode ( ) const
inline

Definition at line 76 of file OP_Channels.h.

const void* OP_Channels::getOwner ( ) const
overridevirtual

Implements CH_Collection.

void* OP_Channels::getOwner ( )
overridevirtual

Implements CH_Collection.

const CH_Collection* OP_Channels::getParent ( ) const
overridevirtual

Implements CH_Collection.

CH_Collection* OP_Channels::getParent ( )
overridevirtual

Implements CH_Collection.

int OP_Channels::getUniqueId ( ) const
overridevirtual

Reimplemented from CH_Collection.

bool OP_Channels::getVariableValue ( fpreal val,
int  table,
int  index,
int  thread 
)
overridevirtual

Reimplemented from CH_Collection.

bool OP_Channels::getVariableValue ( UT_String str,
int  table,
int  index,
int  thread 
)
overridevirtual

Reimplemented from CH_Collection.

void OP_Channels::getXformOrder ( UT_XformOrder xord,
const CH_Channel chp 
) const
overridevirtual

Reimplemented from CH_Collection.

CH_Collection* OP_Channels::lookupCollection ( int  id) const
overridevirtual

Reimplemented from CH_Collection.

void OP_Channels::notifyChannelRenameDependents ( const char *  old_name,
const char *  new_name 
)
overrideprotectedvirtual

Reimplemented from CH_Collection.

const CH_LocalVariable* OP_Channels::resolveExtraVariableForSyntaxHighlight ( const char *  name)
const CH_LocalVariable* OP_Channels::resolveVariable ( const char *  name,
int tab 
)
overridevirtual

Reimplemented from CH_Collection.

void OP_Channels::saveKeyFrameForUndo ( CH_Channel chp,
fpreal  gtime 
)
overridevirtual

Implements CH_Collection.

void OP_Channels::setChanged ( CH_CHANGE_TYPE  how,
void data = 0 
)
overridevirtual

Reimplemented from CH_Collection.

void OP_Channels::setNode ( OP_Node new_owner)
void OP_Channels::setTargetChannel ( const CH_Channel target) const

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