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)
 
virtual ~OP_Channels ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 
virtual const UT_StringgetName () const
 
virtual int getUniqueId () const
 
virtual CH_CollectionlookupCollection (int id) const
 
virtual const CH_CollectiongetParent () const
 
virtual CH_CollectiongetParent ()
 
virtual const CH_CollectiongetChild (const char *name) const
 
virtual CH_CollectiongetChild (const char *name)
 
virtual const voidgetOwner () const
 
virtual voidgetOwner ()
 
virtual int getChildren (CH_NameList &names) const
 
virtual int getChildren (CH_CollectionList &grps) const
 
virtual UT_StringHolder getFullPath () const
 
virtual CH_CollectionfindCollection (const char *name) const
 
virtual void setChanged (CH_CHANGE_TYPE how, void *data=0)
 
OP_NodegetNode () const
 
void setNode (OP_Node *new_owner)
 
virtual bool getVariableValue (fpreal &val, int table, int index, int thread)
 
virtual bool getVariableValue (UT_String &str, int table, int index, int thread)
 
virtual const CH_LocalVariableresolveVariable (const char *name, int &tab)
 
const CH_LocalVariableresolveExtraVariableForSyntaxHighlight (const char *name)
 
virtual void getXformOrder (UT_XformOrder &xord, const CH_Channel *chp) const
 
void setTargetChannel (const CH_Channel *target) const
 
virtual int canAccess (unsigned mask) const
 
virtual int canAccessChannel (uint mask, const CH_Channel *chp) const
 
virtual void saveKeyFrameForUndo (CH_Channel *chp, fpreal gtime)
 
virtual void addLocalVarDependency (int table, int index, void *ref_id)
 
virtual OP_ChannelscastToOPChannels ()
 
virtual const OP_ChannelscastToOPChannels () const
 
- 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)
 
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

virtual void notifyChannelRenameDependents (const char *old_name, const char *new_name)
 
- 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 
)
virtual OP_Channels::~OP_Channels ( )
virtual

Member Function Documentation

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

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

virtual OP_Channels* OP_Channels::castToOPChannels ( )
inlinevirtual

Reimplemented from CH_Collection.

Definition at line 106 of file OP_Channels.h.

virtual const OP_Channels* OP_Channels::castToOPChannels ( ) const
inlinevirtual

Reimplemented from CH_Collection.

Definition at line 107 of file OP_Channels.h.

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

Implements CH_Collection.

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

Implements CH_Collection.

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

Implements CH_Collection.

virtual int OP_Channels::getChildren ( CH_NameList names) const
virtual

Implements CH_Collection.

virtual int OP_Channels::getChildren ( CH_CollectionList grps) const
virtual

Implements CH_Collection.

virtual UT_StringHolder OP_Channels::getFullPath ( ) const
virtual

Implements CH_Collection.

virtual int64 OP_Channels::getMemoryUsage ( bool  inclusive) const
virtual

Reimplemented from CH_Collection.

virtual const UT_String& OP_Channels::getName ( ) const
virtual

Implements CH_Collection.

OP_Node* OP_Channels::getNode ( void  ) const
inline

Definition at line 76 of file OP_Channels.h.

virtual const void* OP_Channels::getOwner ( ) const
virtual

Implements CH_Collection.

virtual void* OP_Channels::getOwner ( )
virtual

Implements CH_Collection.

virtual const CH_Collection* OP_Channels::getParent ( ) const
virtual

Implements CH_Collection.

virtual CH_Collection* OP_Channels::getParent ( )
virtual

Implements CH_Collection.

virtual int OP_Channels::getUniqueId ( ) const
virtual

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

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

Reimplemented from CH_Collection.

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

Implements CH_Collection.

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

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: