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

#include <OP_GeometryChannels.h>

+ Inheritance diagram for OP_GeometryChannels:

Public Member Functions

 OP_GeometryChannels (const UT_StringHolder &name, CH_Manager *chman, CH_LocalVariable *vars)
 
 ~OP_GeometryChannels () override
 
 UT_NON_COPYABLE (OP_GeometryChannels)
 
int64 getMemoryUsage (bool inclusive) const override
 
const UT_StringgetName () const override
 
UT_StringHolder getFullPath () const override
 
OP_ChannelscastToOPChannels () override
 
const OP_ChannelscastToOPChannels () const override
 
int addChannelsChangedCallback (OP_GeometryChannelsChangedCallback callback)
 
void removeChannelsChangedCallback (int id)
 
void setChanged (CH_CHANGE_TYPE how, void *data=nullptr) override
 
void notifyActiveChannelChanges ()
 
void notifyFinishedChannelChanges ()
 
void createParmList (void(*handler)(void *, CH_CHANGE_TYPE, int))
 
void destroyParmList ()
 
PRM_ParmListgetParmList () const
 
void saveKeyFrameForUndo (CH_Channel *chp, fpreal gtime) override
 
void saveForUndo (CH_Channel *chp)
 
void clearCallbacks ()
 
- Public Member Functions inherited from OP_Channels
 OP_Channels (OP_Node *owner, CH_Manager *chman, CH_LocalVariable *vars)
 
 ~OP_Channels () 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
 
CH_CollectionfindCollection (const char *name) const 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 saveChannelForUndo (CH_Channel *chp) override
 Save the entire channel for undo. More...
 
void addLocalVarDependency (int table, int index, void *ref_id) 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, 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
 
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)
 

Static Public Member Functions

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

Additional Inherited Members

- Public Types inherited from OP_Channels
enum  { OP_VARIABLE_TABLE_INDEX = 4 }
 
- Protected Member Functions inherited from OP_Channels
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
 

Detailed Description

Definition at line 47 of file OP_GeometryChannels.h.

Constructor & Destructor Documentation

OP_GeometryChannels::OP_GeometryChannels ( const UT_StringHolder name,
CH_Manager chman,
CH_LocalVariable vars 
)
OP_GeometryChannels::~OP_GeometryChannels ( )
override

Member Function Documentation

int OP_GeometryChannels::addChannelsChangedCallback ( OP_GeometryChannelsChangedCallback  callback)
OP_Channels* OP_GeometryChannels::castToOPChannels ( )
inlineoverridevirtual

Reimplemented from OP_Channels.

Definition at line 66 of file OP_GeometryChannels.h.

const OP_Channels* OP_GeometryChannels::castToOPChannels ( ) const
inlineoverridevirtual

Reimplemented from OP_Channels.

Definition at line 67 of file OP_GeometryChannels.h.

static void OP_GeometryChannels::clearAllPendingUndoFlags ( )
static
void OP_GeometryChannels::clearCallbacks ( )
inline

Definition at line 86 of file OP_GeometryChannels.h.

void OP_GeometryChannels::createParmList ( void(*)(void *, CH_CHANGE_TYPE, int handler)
void OP_GeometryChannels::destroyParmList ( )
UT_StringHolder OP_GeometryChannels::getFullPath ( ) const
inlineoverridevirtual

Reimplemented from OP_Channels.

Definition at line 64 of file OP_GeometryChannels.h.

int64 OP_GeometryChannels::getMemoryUsage ( bool  inclusive) const
overridevirtual

Reimplemented from OP_Channels.

const UT_String& OP_GeometryChannels::getName ( ) const
inlineoverridevirtual

Returns the name of this collection. OP_GeometryChannels stores its own name, which is returned here. This overrides the behaviour of OP_Channels, where the name of the collection is the name of the associated node.

Reimplemented from OP_Channels.

Definition at line 63 of file OP_GeometryChannels.h.

PRM_ParmList* OP_GeometryChannels::getParmList ( ) const
inline

Definition at line 79 of file OP_GeometryChannels.h.

void OP_GeometryChannels::notifyActiveChannelChanges ( )
void OP_GeometryChannels::notifyFinishedChannelChanges ( )
void OP_GeometryChannels::removeChannelsChangedCallback ( int  id)
void OP_GeometryChannels::saveForUndo ( CH_Channel chp)
void OP_GeometryChannels::saveKeyFrameForUndo ( CH_Channel chp,
fpreal  gtime 
)
overridevirtual

Reimplemented from OP_Channels.

void OP_GeometryChannels::setChanged ( CH_CHANGE_TYPE  how,
void data = nullptr 
)
overridevirtual

Reimplemented from OP_Channels.

OP_GeometryChannels::UT_NON_COPYABLE ( OP_GeometryChannels  )

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