HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CH_Collection Class Referenceabstract

#include <CH_Collection.h>

+ Inheritance diagram for CH_Collection:

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_ManagergetManager () 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_ChannelgetChannel (const char *name) const
 
CH_ChannelgetChannel (const char *name)
 
const CH_ChannelgetChannel (int idx) const
 
CH_ChannelgetChannel (int idx)
 
const CH_ChannelgetChannel (const UT_String &name) const
 
CH_ChannelgetChannel (const UT_String &name)
 
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_CollectionfindCollection (const char *path) const =0
 
CH_ChannelfindChannel (const char *path) const
 
CH_ChannelfindOrCreateChannel (const char *path)
 
CH_ChanneladdChannel (const char *name)
 
CH_ChanneladdChannel (CH_Channel *chp)
 
CH_ChanneldupChannel (const char *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)
 
virtual void getFullPath (UT_String &path) const =0
 
void getFullPath (const CH_Channel *chp, UT_String &p, bool use_alias=false) const
 
void channelFind (const char *path, CHfindCallBack callback, void *data=0) const
 
void findString (const char *word, bool fullword, bool usewildcards, CHfindCallBack callback, void *data=0)
 
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_StringgetName () const =0
 
virtual int getUniqueId () const
 
virtual CH_CollectionlookupCollection (int id) const
 
virtual const CH_CollectiongetParent () const =0
 
virtual CH_CollectiongetParent ()=0
 
virtual const CH_CollectiongetChild (const char *name) const =0
 
virtual CH_CollectiongetChild (const char *name)=0
 
virtual const voidgetOwner () const =0
 
virtual voidgetOwner ()=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_LocalVariableresolveVariable (const char *name, int &tab)
 
int save (std::ostream &os, int binary, bool compiled, int scope, const CH_ChannelList *channels=NULL) 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=0, CH_ChannelList *loadedChannels=0, 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
 
int getChanged () const
 
virtual void setChanged (CH_CHANGE_TYPE how, void *data=0)
 
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 ()
 
virtual void getXformOrder (UT_XformOrder &xord, const CH_Channel *chp) const
 
bool setChannelAlias (CH_Channel &chp, const char *alias)
 
virtual OP_ChannelscastToOPChannels ()
 
virtual const OP_ChannelscastToOPChannels () 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_CollectiongetRoot () const
 
const CH_ChannelListgetChannels () const
 
virtual void notifyChannelRenameDependents (const char *old_name, const char *new_name)
 

Friends

class CH_Manager
 

Detailed Description

Definition at line 82 of file CH_Collection.h.

Constructor & Destructor Documentation

CH_Collection::CH_Collection ( CH_Manager manager)
CH_Collection::CH_Collection ( CH_Manager manager,
const CH_Collection from 
)
virtual CH_Collection::~CH_Collection ( )
virtual

Member Function Documentation

CH_Channel* CH_Collection::addChannel ( const char *  name)
CH_Channel* CH_Collection::addChannel ( CH_Channel chp)
void CH_Collection::addDynamicVariables ( CH_LocalVariable table)
inline

Definition at line 285 of file CH_Collection.h.

void CH_Collection::addedParamDependency ( )
virtual void CH_Collection::addLocalVarDependency ( int  table,
int  index,
void ref_id 
)
virtual

Reimplemented in OP_Channels.

void CH_Collection::addLocalVariables ( CH_LocalVariable table)
inlineprotected

Definition at line 344 of file CH_Collection.h.

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

Reimplemented in OP_Channels.

virtual OP_Channels* CH_Collection::castToOPChannels ( )
inlinevirtual

Reimplemented in OP_Channels.

Definition at line 319 of file CH_Collection.h.

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

Reimplemented in OP_Channels.

Definition at line 320 of file CH_Collection.h.

int CH_Collection::changeString ( const char *  from,
const char *  to,
bool  fullword,
int  thread 
)
void CH_Collection::channelFind ( const char *  path,
CHfindCallBack  callback,
void data = 0 
) const
SYS_FORCE_INLINE void CH_Collection::checkEvaluationError ( const CH_Channel chp,
int  thread 
) const
inlineprotected

Definition at line 337 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 char *  name)
virtual CH_Channel* CH_Collection::dupChannel ( const CH_Channel from)
virtual
exint CH_Collection::entries ( ) const
inline

Definition at line 99 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
virtual CH_Collection* CH_Collection::findCollection ( const char *  path) const
pure virtual

Implemented in OP_Channels.

fpreal CH_Collection::findKey ( fpreal  gtime,
int  dir 
) const
CH_Channel* CH_Collection::findOrCreateChannel ( const char *  path)
void CH_Collection::findString ( const char *  word,
bool  fullword,
bool  usewildcards,
CHfindCallBack  callback,
void data = 0 
)
int CH_Collection::findString ( const char *  word,
bool  fullword,
bool  usewildcards 
) const
int CH_Collection::getChanged ( ) const
inline

Definition at line 259 of file CH_Collection.h.

const CH_Channel* CH_Collection::getChannel ( const char *  name) const
Examples:
CHOP/CHOP_Stair.C.
CH_Channel* CH_Collection::getChannel ( const char *  name)
const CH_Channel* CH_Collection::getChannel ( int  idx) const
inline

Definition at line 107 of file CH_Collection.h.

CH_Channel* CH_Collection::getChannel ( int  idx)
inline

Definition at line 108 of file CH_Collection.h.

const CH_Channel* CH_Collection::getChannel ( const UT_String name) const
inline

Definition at line 109 of file CH_Collection.h.

CH_Channel* CH_Collection::getChannel ( const UT_String name)
inline

Definition at line 113 of file CH_Collection.h.

int CH_Collection::getChannelCount ( int  scoped = 0) const
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
const CH_ChannelList* CH_Collection::getChannels ( ) const
inlineprotected

Definition at line 350 of file CH_Collection.h.

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

Implemented in OP_Channels.

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

Implemented in OP_Channels.

virtual int CH_Collection::getChildren ( CH_NameList names) const
pure virtual

Implemented in OP_Channels.

virtual int CH_Collection::getChildren ( CH_CollectionList grps) const
pure virtual

Implemented in OP_Channels.

bool CH_Collection::getCollectionRange ( fpreal start,
fpreal end,
bool &  timedep,
int  thread 
)
bool CH_Collection::getExpose ( ) const
inline

Definition at line 263 of file CH_Collection.h.

CH_ExprLanguage CH_Collection::getExprLanguage ( ) const
bool CH_Collection::getExternal ( ) const
inline

Definition at line 304 of file CH_Collection.h.

virtual void CH_Collection::getFullPath ( UT_String path) const
pure virtual

Implemented in OP_Channels.

void CH_Collection::getFullPath ( const CH_Channel chp,
UT_String p,
bool  use_alias = false 
) const
fpreal CH_Collection::getGlobalEnd ( ) const
inline

Definition at line 274 of file CH_Collection.h.

fpreal CH_Collection::getGlobalStart ( ) const
inline

Definition at line 272 of file CH_Collection.h.

virtual void CH_Collection::getLocalVariables ( UT_StringArray out_vars)
virtual
CH_Manager* CH_Collection::getManager ( ) const
inline

Definition at line 93 of file CH_Collection.h.

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

Reimplemented in OP_Channels.

virtual const UT_String& CH_Collection::getName ( ) const
pure virtual

Implemented in OP_Channels.

virtual const void* CH_Collection::getOwner ( ) const
pure virtual

Implemented in OP_Channels.

virtual void* CH_Collection::getOwner ( )
pure virtual

Implemented in OP_Channels.

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

Implemented in OP_Channels.

virtual CH_Collection* CH_Collection::getParent ( )
pure virtual

Implemented in OP_Channels.

const CH_Collection* CH_Collection::getRoot ( ) const
protected
fpreal CH_Collection::getTolerance ( ) const
inline

Definition at line 94 of file CH_Collection.h.

virtual int CH_Collection::getUniqueId ( ) const
virtual

Reimplemented in OP_Channels.

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

Reimplemented in OP_Channels.

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

Reimplemented in OP_Channels.

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

Reimplemented in OP_Channels.

void CH_Collection::initManager ( CH_Manager manager)
static bool CH_Collection::isValidChannelName ( const char *  s)
static
template<typename FPREAL_TYPE >
bool CH_Collection::load ( UT_IStream is,
const char *  path = 0,
const CH_LoadInfo load_info = 0,
CH_ChannelList loadedChannels = 0,
bool  delete_keys = false 
)
int CH_Collection::loadFromFile ( const char *  nm)
virtual CH_Collection* CH_Collection::lookupCollection ( int  id) const
virtual

Reimplemented in OP_Channels.

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

Reimplemented in OP_Channels.

void CH_Collection::removeParamDependency ( )
virtual int CH_Collection::rename ( const char *  from_name,
const char *  to_name,
const char *  to_alias 
)
virtual
virtual int CH_Collection::rename ( CH_Channel from,
const char *  to_name,
const char *  to_alias 
)
virtual
virtual const CH_LocalVariable* CH_Collection::resolveVariable ( const char *  name,
int tab 
)
virtual

Reimplemented in OP_Channels.

int CH_Collection::save ( std::ostream &  os,
int  binary,
bool  compiled,
int  scope,
const CH_ChannelList channels = NULL 
) const
virtual void CH_Collection::saveKeyFrameForUndo ( CH_Channel chp,
fpreal  gtime 
)
pure virtual

Implemented in OP_Channels.

int CH_Collection::saveToFile ( const char *  nm) const
virtual void CH_Collection::setChanged ( CH_CHANGE_TYPE  how,
void data = 0 
)
virtual

Reimplemented in OP_Channels.

bool CH_Collection::setChannelAlias ( CH_Channel chp,
const char *  alias 
)
void CH_Collection::setExpose ( bool  onoff)
void CH_Collection::setExprLanguage ( CH_ExprLanguage  language)
void CH_Collection::setExternal ( bool  yesno)
inline

Definition at line 306 of file CH_Collection.h.

CH_Collection::SETUPCLASSPACKETID ( "CH_Collection"  )
void CH_Collection::unresolveLocalVars ( int  thread)

Friends And Related Function Documentation

friend class CH_Manager
friend

Definition at line 382 of file CH_Collection.h.


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