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

#include <PI_ResourceManager.h>

+ Inheritance diagram for PI_ResourceManager:

Classes

struct  OpPISettingInfo
 
class  PI_OpPIKey
 

Public Member Functions

 PI_ResourceManager ()
 
 ~PI_ResourceManager () override
 
virtual int registerState (PI_StateTemplate *type)
 
virtual int registerHandle (PI_HandleTemplate *type)
 
virtual int registerOpHandleLink (PI_PITemplate *type)
 
virtual int registerSelector (PI_SelectorTemplate *type)
 
bool containsState (const char *name, PI_ViewerType viewer_type, unsigned netmask) const
 
bool containsHandle (const char *name) const
 
bool containsOpHandleLink (const char *name) const
 
bool containsSelector (const char *name) const
 
const PI_BindingHandleArraygetBindingHandles (OP_Operator *op) const
 
const PI_BindingSelectorArraygetBindingSelectors (OP_Operator *op) const
 
const UT_ValArray
< PI_StateTemplate * > & 
stateList (PI_ViewerType viewer_type, const char *network_type) const
 
const UT_ValArray
< PI_StateTemplate * > & 
stateList (PI_ViewerType viewer_type, PI_NetworkType net_type) const
 
PI_StateTemplategetStateTemplate (const char *name, PI_ViewerType viewer_type, const char *type) const
 
PI_StateTemplategetStateTemplate (OP_Operator *op, PI_ViewerType viewer_type, const char *type) const
 
void rebuildVolatileKeys ()
 
virtual
PI_PythonResource::RegisterStatus 
getViewerStateRegisterStatus (const char *state_name, PI_ViewerType viewer_type, const char *type) const
 
virtual void fireResourceEvent (PI_PythonResource::ResourceType res_type, PI_PythonResource::EventMessage::Type event_type, PI_PythonResource::EventMessage::Data const &event_data)
 
bool validStateTemplateName (const char *name) const
 
virtual PI_PythonResource::Status unregisterViewerState (const char *name)
 
virtual bool isRegisteredViewerState (const char *name) const
 
virtual
PI_PythonState::Template const * 
viewerStateTemplate (const char *state_name) const
 
virtual PI_PythonState::Template * viewerStateTemplate (const char *state_name)
 
virtual PI_PythonResource::Status unbindVolatileViewerHandles (const char *state_name)
 
virtual PI_PythonResource::Status unregisterViewerHandle (const char *name)
 
virtual bool isRegisteredViewerHandle (const char *name) const
 
virtual
PI_PythonHandle::Template
const * 
viewerHandleTemplate (const char *handle_name) const
 
virtual UT_StringArray const & getViewerHandleTypeNames () const
 
int unbind (OP_Operator *op, const char *pidescription, const UT_String &opparm)
 
int bind (OP_Operator *op, const char *piname, const char *pidescription, const UT_String &opparm, const UT_String &piparm, const char *default_settings)
 
int bind (OP_Operator *op, const char *piname, const char *pidescription, const char *default_settings)
 
int bindScriptOp (OP_Operator *op, const char *piname, const char *pidescription, const UT_String &opparm, const UT_String &piparm, const char *default_settings)
 
virtual bool bindOperatorToViewerState (const char *state_name, OP_Operator *op)
 
bool operatorStateMandatory (const char *op_name, const char *op_type) const
 
int unbindSelector (OP_Operator *op, const char *seldescription)
 
int bindSelector (OP_Operator *op, const char *sname, const char *seldescription, const char *prompt, const char *opparm, int opinput, int opinputreq, const char *primmask, int allowdrag, const char *menu, int astselall, const char *extrainfo, bool fromScriptOp)
 
PRM_TemplategetTemplateAndVecId (const UT_String &, OP_Operator *, int &) const
 
void getChannelNameFromParmAndVec (UT_String &chan, OP_Operator *op, const char *parmname, int vecidx)
 
int checkForPIName (const char *pi_name, const char *pi_parm) const
 
OP_OperatorfindOperator (PI_NetworkType net_type, const char *op_name, bool display_warning=true) const
 
OP_OperatorfindOperator (const char *opbindname, UT_String *optype=0) const
 
virtual void findVolatileKeys (const char *volatile_hotkey_name, UT_Array< int > &volatile_keys, UT_Array< int > &keys_modifiers) const
 
virtual void updateViewports (int id, const char *opname, bool open_only=false) const
 
const PI_OpHandleLinkMapgetOpHandleLinks () const
 
PI_PITemplategetOpHandleLinkTemplate (const char *pi_name) const
 
const PI_SelectorTemplateMapgetSelectors () const
 
PI_SelectorTemplategetSelectorTemplate (const char *selector_name) const
 
const UT_StringArraygetBuiltinOpHandleNames ()
 
const PI_HandleTemplateMapgetHandles () const
 
bool isPIEthereal (const char *piname, bool *isfloat=0) const
 
void ensureStatesExistForAllOperators (const char *net_type_name)
 
virtual void ensureStatesExistForAllOperators (PI_NetworkType net_type)
 
int writeBindingsFile (const char *fname) const
 
void loadPISettingsFromTables (PI_OpHandleLink &pi, bool okay_to_use_last_settings) const
 
void savePISettingsToTables (PI_OpHandleLink &pi)
 
virtual void removePISettingsFromTables (OP_Operator &op_type)
 
void removePISettingsFromTables (const PI_OpHandleLink &pi)
 
void recordPISettings (const char *pi_description, const char *pi_type, const OP_Node &op_node, const char *settings)
 
void addSaveCallback (PI_SaveCallback callback, void *data)
 
void removeSaveCallback (PI_SaveCallback callback, void *data)
 
void registerOpHandleBindings ()
 
virtual void removeAllBindings (OP_Operator *op)
 
char const * stateToCreate () const
 
void setPythonResourceSupport (void *res_support)
 
voidgetPythonResourceSupport ()
 
- Public Member Functions inherited from OP_UpdateTableSink
 OP_UpdateTableSink ()
 
virtual ~OP_UpdateTableSink ()
 
- Public Member Functions inherited from OP_UpdateTemplatesSink
 OP_UpdateTemplatesSink ()
 
virtual ~OP_UpdateTemplatesSink ()
 

Static Public Member Functions

static bool getViewerType (const char *viewer_type_token, PI_ViewerType &type)
 
static void getViewerTypeToken (PI_ViewerType type, UT_String &viewer_type_token)
 
static bool getNetworkType (const char *network_type_name, PI_NetworkType &type)
 
static const UT_StringHoldergetNetworkTypeName (PI_NetworkType type)
 
static OP_OperatorTablegetOpTableFromOperator (const OP_Operator *op)
 
static PI_NetworkType getFirstNetworkType (unsigned int network_mask)
 
static PRM_TemplatefindParmTemplate (OP_Operator &op, const char *op_Parm_name, int vec_idx, int *parm_idx)
 
static int cacheParms ()
 
static void appendToParmsCache (OP_Node *op, PRM_Parm *parm, int vi)
 
static void setParmsCacheBehaviour (bool set_keys, bool do_scope, bool append_scope)
 
static bool getHideLockedHandleParts ()
 
static void setHideLockedHandleParts (bool hide)
 
static bool getScopeChannelsOnKey ()
 
static void setScopeChannelsOnKey (bool scope)
 
static bool getAddScopedChannels ()
 
static void setAddScopedChannels (bool add)
 
static bool getOpenChannelEditorOnScope ()
 
static void setOpenChannelEditorOnScope (bool do_open)
 
static void getChannelScopeCommandPrefix (UT_String &str)
 

Protected Types

using PI_SaveCallbackInfo = std::pair< PI_SaveCallback, void * >
 

Protected Member Functions

void saveStateToCreate (char const *state)
 
void installCommands ()
 
void registerOpHandleLinks ()
 
void registerCop2HandleLinks ()
 
void registerOpHandleConstructors ()
 
void registerSelectors ()
 
void registerSelectorConstructors ()
 
bool isValidPiParmName (const UT_String &pi_name, const UT_String &pi_parm)
 
void loadHandle (CPP_Manager &cppman, OP_Operator *op, pi_OpHandleBinding *binding)
 
void loadSelector (CPP_Manager &cppman, const UT_String &selname, const UT_String &seldescription, pi_OpSelectorBinding *binding)
 
void loadOperator (CPP_Manager &cppman, const UT_String &oppath)
 
void loadOperator (CPP_Manager &cppman, const UT_String &optype, OP_Operator *op, pi_OpHandleBinding *hbinding, pi_OpSelectorBinding *sbinding)
 
virtual void addAutomaticStates (PI_NetworkType net_type)
 
void tableUpdated (OP_OperatorTable *table) override
 
void tableDeleted (OP_OperatorTable *table) override
 
void templatesUpdated (OP_Operator *op) override
 
void operatorDeleted (OP_Operator *op) override
 
void ensureTableInterestExists (PI_NetworkType net_type, OP_OperatorTable *table)
 
PI_HandleTemplategetHandleTemplate (const char *handle_name) const
 
OP_ERROR saveSettings (std::ostream &os) const
 
OP_ERROR save (std::ostream &os) const
 
const PI_SettingListgetDefaultPISettings (OP_Operator &op_type, const char *type_name, const char *description) const
 
PI_SettingListgetDefaultPISettings (OP_Operator &op_type, const char *type_name, const char *description)
 
virtual PI_SettingList const * onUpdatePISettings (PI_SettingList const &pi_settings, OP_Operator &op, char const *pi_type, char const *pi_name) const
 
- Protected Member Functions inherited from OP_UpdateTableSink
void addUpdateTableSink (OP_OperatorTable *table)
 
void removeUpdateTableSink (OP_OperatorTable *table)
 
void removeAllTableSinks ()
 
- Protected Member Functions inherited from OP_UpdateTemplatesSink
void addUpdateTemplatesSink (OP_Operator *op)
 
bool hasTemplatesSink (OP_Operator *op)
 
void removeUpdateTemplatesSink (OP_Operator *op)
 
void removeAllTemplatesSinks ()
 

Static Protected Member Functions

static void startParmsCache ()
 
static void stopParmsCache ()
 
static void getParmsCache (UT_ValArray< OP_Node * > *&ops, UT_ValArray< PRM_Parm * > *&parms, UT_IntArray *&vec_indices)
 
static void getParmsCacheBehaviour (bool &set_keys, bool &do_scope, bool &append_scope)
 
static OP_ERROR savePIResourceManagerCallback (std::ostream &os, void *data)
 

Protected Attributes

UT_StringArray myBuiltinOpHandleNames
 
UT_StringHolder myStateBeingCreated
 
UT_StringSet myStates
 
PI_HandleTemplateMap myHandles
 
PI_OpHandleLinkMap myOpHandleLinks
 
PI_SelectorTemplateMap mySelectors
 
UT_SymbolMap
< pi_OpHandleBinding * > 
myOpHandleBindings
 
UT_SymbolMap
< pi_OpSelectorBinding * > 
myOpSelectorBindings
 
UT_Map< PI_OpPIKey,
OpPISettingInfo,
PI_OpPIKey::Hasher
myPISettingsForOps
 
UT_StringMap< PI_SettingList * > myLastPISettings
 
UT_ValArray< PI_StateTemplate * > myStateLists [PI_NUM_VIEWER_TYPES][PI_NUM_NETWORK_TYPES]
 
UT_SymbolMap< PI_NetworkTypemyNetworkTypeTable
 
UT_Array< PI_SaveCallbackInfomySaveCallbacks
 
voidmyCurrentPythonSupport = nullptr
 

Static Protected Attributes

static bool ourSetKeyOnParms
 
static bool ourScopeParmChannels
 
static bool ourAppendToScope
 
static int ourCacheParms
 
static UT_ValArray< OP_Node * > ourParmNodes
 
static UT_ValArray< PRM_Parm * > ourParms
 
static UT_IntArray ourParmVecIndices
 
static bool theHideLockedHandleParts
 
static bool theScopeChannelsOnKey
 
static bool theAddScopedChannels
 
static bool theOpenChannelEditorOnScope
 

Detailed Description

Definition at line 170 of file PI_ResourceManager.h.

Member Typedef Documentation

Definition at line 603 of file PI_ResourceManager.h.

Constructor & Destructor Documentation

PI_ResourceManager::PI_ResourceManager ( )
PI_ResourceManager::~PI_ResourceManager ( )
override

Member Function Documentation

virtual void PI_ResourceManager::addAutomaticStates ( PI_NetworkType  net_type)
protectedvirtual
void PI_ResourceManager::addSaveCallback ( PI_SaveCallback  callback,
void data 
)
static void PI_ResourceManager::appendToParmsCache ( OP_Node op,
PRM_Parm parm,
int  vi 
)
static
int PI_ResourceManager::bind ( OP_Operator op,
const char *  piname,
const char *  pidescription,
const UT_String opparm,
const UT_String piparm,
const char *  default_settings 
)
int PI_ResourceManager::bind ( OP_Operator op,
const char *  piname,
const char *  pidescription,
const char *  default_settings 
)
virtual bool PI_ResourceManager::bindOperatorToViewerState ( const char *  state_name,
OP_Operator op 
)
virtual
int PI_ResourceManager::bindScriptOp ( OP_Operator op,
const char *  piname,
const char *  pidescription,
const UT_String opparm,
const UT_String piparm,
const char *  default_settings 
)
int PI_ResourceManager::bindSelector ( OP_Operator op,
const char *  sname,
const char *  seldescription,
const char *  prompt,
const char *  opparm,
int  opinput,
int  opinputreq,
const char *  primmask,
int  allowdrag,
const char *  menu,
int  astselall,
const char *  extrainfo,
bool  fromScriptOp 
)

Dynamic binding of a selector to an operator

Parameters
opOperator type that we want to bind a selector to
snameSelector type
seldescriptionShort description that identifies this selector in the context of a one operator (used to unbind the selector).
promptText in the status area when the selector is active.
opparmOperator parameter where the selection string is put.
opinputWire input index where the op owning the selected geometry is attached to our op.
opinputreqIs an input is required?
primmaskMask of which primitive types can be in the selection. This uses the *_FILEID enum in GEO_PrimTypeCompat.h. A regular GEO_PrimTypeCompat mask can be used if you first convert it using GEO_PrimTypeCompat::convertToFileFromMask()
allowdragDetermines if click-and-drag operations are allowed.
menuOperator menu parameter where we choose the selection type.
astselallIf an asterisk is required in the selection string to indicate selecting all the input. Otherwise we assume an empty string indicates that the whole geometry is selected.
extrainfoString that is passed to the selector, particular selectors may need specific parameters that can be passed through this mechanism.
fromScriptOpUsed by our dialog script parser to avoid infinite recursion. Setting this flag decreases the error checking we do.
Returns
PI_BIND_OK upon success, else see of one of the other potential error codes at the top of PI_ResourceManager.h
Examples:
SOP/MSS_BrushHairLenSelector.C.
static int PI_ResourceManager::cacheParms ( )
static
int PI_ResourceManager::checkForPIName ( const char *  pi_name,
const char *  pi_parm 
) const
bool PI_ResourceManager::containsHandle ( const char *  name) const
bool PI_ResourceManager::containsOpHandleLink ( const char *  name) const
bool PI_ResourceManager::containsSelector ( const char *  name) const
bool PI_ResourceManager::containsState ( const char *  name,
PI_ViewerType  viewer_type,
unsigned  netmask 
) const
void PI_ResourceManager::ensureStatesExistForAllOperators ( const char *  net_type_name)
virtual void PI_ResourceManager::ensureStatesExistForAllOperators ( PI_NetworkType  net_type)
virtual
void PI_ResourceManager::ensureTableInterestExists ( PI_NetworkType  net_type,
OP_OperatorTable table 
)
protected
OP_Operator* PI_ResourceManager::findOperator ( PI_NetworkType  net_type,
const char *  op_name,
bool  display_warning = true 
) const
OP_Operator* PI_ResourceManager::findOperator ( const char *  opbindname,
UT_String optype = 0 
) const
static PRM_Template* PI_ResourceManager::findParmTemplate ( OP_Operator op,
const char *  op_Parm_name,
int  vec_idx,
int parm_idx 
)
static
virtual void PI_ResourceManager::findVolatileKeys ( const char *  volatile_hotkey_name,
UT_Array< int > &  volatile_keys,
UT_Array< int > &  keys_modifiers 
) const
virtual

Reimplemented in BM_ResourceManager.

virtual void PI_ResourceManager::fireResourceEvent ( PI_PythonResource::ResourceType  res_type,
PI_PythonResource::EventMessage::Type  event_type,
PI_PythonResource::EventMessage::Data const &  event_data 
)
virtual
static bool PI_ResourceManager::getAddScopedChannels ( )
inlinestatic

Definition at line 474 of file PI_ResourceManager.h.

const PI_BindingHandleArray* PI_ResourceManager::getBindingHandles ( OP_Operator op) const
const PI_BindingSelectorArray* PI_ResourceManager::getBindingSelectors ( OP_Operator op) const
const UT_StringArray& PI_ResourceManager::getBuiltinOpHandleNames ( )
void PI_ResourceManager::getChannelNameFromParmAndVec ( UT_String chan,
OP_Operator op,
const char *  parmname,
int  vecidx 
)
static void PI_ResourceManager::getChannelScopeCommandPrefix ( UT_String str)
static
const PI_SettingList* PI_ResourceManager::getDefaultPISettings ( OP_Operator op_type,
const char *  type_name,
const char *  description 
) const
protected
PI_SettingList* PI_ResourceManager::getDefaultPISettings ( OP_Operator op_type,
const char *  type_name,
const char *  description 
)
protected
static PI_NetworkType PI_ResourceManager::getFirstNetworkType ( unsigned int  network_mask)
static
const PI_HandleTemplateMap& PI_ResourceManager::getHandles ( ) const
inline

Definition at line 376 of file PI_ResourceManager.h.

PI_HandleTemplate* PI_ResourceManager::getHandleTemplate ( const char *  handle_name) const
protected
static bool PI_ResourceManager::getHideLockedHandleParts ( )
inlinestatic

Definition at line 466 of file PI_ResourceManager.h.

static bool PI_ResourceManager::getNetworkType ( const char *  network_type_name,
PI_NetworkType type 
)
static
static const UT_StringHolder& PI_ResourceManager::getNetworkTypeName ( PI_NetworkType  type)
static
static bool PI_ResourceManager::getOpenChannelEditorOnScope ( )
inlinestatic

Definition at line 478 of file PI_ResourceManager.h.

const PI_OpHandleLinkMap& PI_ResourceManager::getOpHandleLinks ( ) const
inline

Definition at line 367 of file PI_ResourceManager.h.

PI_PITemplate* PI_ResourceManager::getOpHandleLinkTemplate ( const char *  pi_name) const
static OP_OperatorTable* PI_ResourceManager::getOpTableFromOperator ( const OP_Operator op)
static
static void PI_ResourceManager::getParmsCache ( UT_ValArray< OP_Node * > *&  ops,
UT_ValArray< PRM_Parm * > *&  parms,
UT_IntArray *&  vec_indices 
)
staticprotected
static void PI_ResourceManager::getParmsCacheBehaviour ( bool &  set_keys,
bool &  do_scope,
bool &  append_scope 
)
staticprotected
void* PI_ResourceManager::getPythonResourceSupport ( )
static bool PI_ResourceManager::getScopeChannelsOnKey ( )
inlinestatic

Definition at line 470 of file PI_ResourceManager.h.

const PI_SelectorTemplateMap& PI_ResourceManager::getSelectors ( ) const
inline

Definition at line 369 of file PI_ResourceManager.h.

PI_SelectorTemplate* PI_ResourceManager::getSelectorTemplate ( const char *  selector_name) const
PI_StateTemplate* PI_ResourceManager::getStateTemplate ( const char *  name,
PI_ViewerType  viewer_type,
const char *  type 
) const
PI_StateTemplate* PI_ResourceManager::getStateTemplate ( OP_Operator op,
PI_ViewerType  viewer_type,
const char *  type 
) const
PRM_Template* PI_ResourceManager::getTemplateAndVecId ( const UT_String ,
OP_Operator ,
int  
) const
virtual UT_StringArray const& PI_ResourceManager::getViewerHandleTypeNames ( ) const
virtual
virtual PI_PythonResource::RegisterStatus PI_ResourceManager::getViewerStateRegisterStatus ( const char *  state_name,
PI_ViewerType  viewer_type,
const char *  type 
) const
virtual
static bool PI_ResourceManager::getViewerType ( const char *  viewer_type_token,
PI_ViewerType type 
)
static
static void PI_ResourceManager::getViewerTypeToken ( PI_ViewerType  type,
UT_String viewer_type_token 
)
static
void PI_ResourceManager::installCommands ( )
protected
bool PI_ResourceManager::isPIEthereal ( const char *  piname,
bool *  isfloat = 0 
) const
virtual bool PI_ResourceManager::isRegisteredViewerHandle ( const char *  name) const
virtual
virtual bool PI_ResourceManager::isRegisteredViewerState ( const char *  name) const
virtual
bool PI_ResourceManager::isValidPiParmName ( const UT_String pi_name,
const UT_String pi_parm 
)
protected
void PI_ResourceManager::loadHandle ( CPP_Manager &  cppman,
OP_Operator op,
pi_OpHandleBinding *  binding 
)
protected
void PI_ResourceManager::loadOperator ( CPP_Manager &  cppman,
const UT_String oppath 
)
protected
void PI_ResourceManager::loadOperator ( CPP_Manager &  cppman,
const UT_String optype,
OP_Operator op,
pi_OpHandleBinding *  hbinding,
pi_OpSelectorBinding *  sbinding 
)
protected
void PI_ResourceManager::loadPISettingsFromTables ( PI_OpHandleLink pi,
bool  okay_to_use_last_settings 
) const
void PI_ResourceManager::loadSelector ( CPP_Manager &  cppman,
const UT_String selname,
const UT_String seldescription,
pi_OpSelectorBinding *  binding 
)
protected
virtual PI_SettingList const* PI_ResourceManager::onUpdatePISettings ( PI_SettingList const &  pi_settings,
OP_Operator op,
char const *  pi_type,
char const *  pi_name 
) const
protectedvirtual
void PI_ResourceManager::operatorDeleted ( OP_Operator op)
overrideprotectedvirtual

Reimplemented from OP_UpdateTemplatesSink.

bool PI_ResourceManager::operatorStateMandatory ( const char *  op_name,
const char *  op_type 
) const
void PI_ResourceManager::rebuildVolatileKeys ( )
void PI_ResourceManager::recordPISettings ( const char *  pi_description,
const char *  pi_type,
const OP_Node op_node,
const char *  settings 
)
void PI_ResourceManager::registerCop2HandleLinks ( )
protected
virtual int PI_ResourceManager::registerHandle ( PI_HandleTemplate type)
virtual
void PI_ResourceManager::registerOpHandleBindings ( )
void PI_ResourceManager::registerOpHandleConstructors ( )
protected
virtual int PI_ResourceManager::registerOpHandleLink ( PI_PITemplate type)
virtual
void PI_ResourceManager::registerOpHandleLinks ( )
protected
virtual int PI_ResourceManager::registerSelector ( PI_SelectorTemplate type)
virtual
void PI_ResourceManager::registerSelectorConstructors ( )
protected
void PI_ResourceManager::registerSelectors ( )
protected
virtual int PI_ResourceManager::registerState ( PI_StateTemplate type)
virtual
virtual void PI_ResourceManager::removeAllBindings ( OP_Operator op)
virtual
virtual void PI_ResourceManager::removePISettingsFromTables ( OP_Operator op_type)
virtual

Reimplemented in BM_ResourceManager.

void PI_ResourceManager::removePISettingsFromTables ( const PI_OpHandleLink pi)
void PI_ResourceManager::removeSaveCallback ( PI_SaveCallback  callback,
void data 
)
OP_ERROR PI_ResourceManager::save ( std::ostream &  os) const
protected
static OP_ERROR PI_ResourceManager::savePIResourceManagerCallback ( std::ostream &  os,
void data 
)
staticprotected
void PI_ResourceManager::savePISettingsToTables ( PI_OpHandleLink pi)
OP_ERROR PI_ResourceManager::saveSettings ( std::ostream &  os) const
protected
void PI_ResourceManager::saveStateToCreate ( char const *  state)
protected
static void PI_ResourceManager::setAddScopedChannels ( bool  add)
inlinestatic

Definition at line 476 of file PI_ResourceManager.h.

static void PI_ResourceManager::setHideLockedHandleParts ( bool  hide)
inlinestatic

Definition at line 468 of file PI_ResourceManager.h.

static void PI_ResourceManager::setOpenChannelEditorOnScope ( bool  do_open)
inlinestatic

Definition at line 480 of file PI_ResourceManager.h.

static void PI_ResourceManager::setParmsCacheBehaviour ( bool  set_keys,
bool  do_scope,
bool  append_scope 
)
static
void PI_ResourceManager::setPythonResourceSupport ( void res_support)
static void PI_ResourceManager::setScopeChannelsOnKey ( bool  scope)
inlinestatic

Definition at line 472 of file PI_ResourceManager.h.

static void PI_ResourceManager::startParmsCache ( )
staticprotected
const UT_ValArray<PI_StateTemplate *>& PI_ResourceManager::stateList ( PI_ViewerType  viewer_type,
const char *  network_type 
) const
const UT_ValArray<PI_StateTemplate *>& PI_ResourceManager::stateList ( PI_ViewerType  viewer_type,
PI_NetworkType  net_type 
) const
char const* PI_ResourceManager::stateToCreate ( ) const
static void PI_ResourceManager::stopParmsCache ( )
staticprotected
void PI_ResourceManager::tableDeleted ( OP_OperatorTable table)
overrideprotectedvirtual

Reimplemented from OP_UpdateTableSink.

void PI_ResourceManager::tableUpdated ( OP_OperatorTable table)
overrideprotectedvirtual

Implements OP_UpdateTableSink.

void PI_ResourceManager::templatesUpdated ( OP_Operator op)
overrideprotectedvirtual
int PI_ResourceManager::unbind ( OP_Operator op,
const char *  pidescription,
const UT_String opparm 
)
int PI_ResourceManager::unbindSelector ( OP_Operator op,
const char *  seldescription 
)

Unbind the given selector from an operator. Uses the short description when bound using bindSelector()

virtual PI_PythonResource::Status PI_ResourceManager::unbindVolatileViewerHandles ( const char *  state_name)
virtual
virtual PI_PythonResource::Status PI_ResourceManager::unregisterViewerHandle ( const char *  name)
virtual
virtual PI_PythonResource::Status PI_ResourceManager::unregisterViewerState ( const char *  name)
virtual
virtual void PI_ResourceManager::updateViewports ( int  id,
const char *  opname,
bool  open_only = false 
) const
virtual

Reimplemented in BM_ResourceManager.

bool PI_ResourceManager::validStateTemplateName ( const char *  name) const
virtual PI_PythonHandle::Template const* PI_ResourceManager::viewerHandleTemplate ( const char *  handle_name) const
virtual
virtual PI_PythonState::Template const* PI_ResourceManager::viewerStateTemplate ( const char *  state_name) const
virtual
virtual PI_PythonState::Template* PI_ResourceManager::viewerStateTemplate ( const char *  state_name)
virtual
int PI_ResourceManager::writeBindingsFile ( const char *  fname) const

Member Data Documentation

UT_StringArray PI_ResourceManager::myBuiltinOpHandleNames
protected

Definition at line 604 of file PI_ResourceManager.h.

void* PI_ResourceManager::myCurrentPythonSupport = nullptr
protected

Definition at line 622 of file PI_ResourceManager.h.

PI_HandleTemplateMap PI_ResourceManager::myHandles
protected

Definition at line 607 of file PI_ResourceManager.h.

UT_StringMap<PI_SettingList *> PI_ResourceManager::myLastPISettings
protected

Definition at line 615 of file PI_ResourceManager.h.

UT_SymbolMap<PI_NetworkType> PI_ResourceManager::myNetworkTypeTable
protected

Definition at line 619 of file PI_ResourceManager.h.

UT_SymbolMap<pi_OpHandleBinding *> PI_ResourceManager::myOpHandleBindings
protected

Definition at line 611 of file PI_ResourceManager.h.

PI_OpHandleLinkMap PI_ResourceManager::myOpHandleLinks
protected

Definition at line 608 of file PI_ResourceManager.h.

UT_SymbolMap<pi_OpSelectorBinding *> PI_ResourceManager::myOpSelectorBindings
protected

Definition at line 612 of file PI_ResourceManager.h.

UT_Map<PI_OpPIKey, OpPISettingInfo, PI_OpPIKey::Hasher> PI_ResourceManager::myPISettingsForOps
protected

Definition at line 614 of file PI_ResourceManager.h.

UT_Array<PI_SaveCallbackInfo> PI_ResourceManager::mySaveCallbacks
protected

Definition at line 621 of file PI_ResourceManager.h.

PI_SelectorTemplateMap PI_ResourceManager::mySelectors
protected

Definition at line 609 of file PI_ResourceManager.h.

UT_StringHolder PI_ResourceManager::myStateBeingCreated
protected

Definition at line 605 of file PI_ResourceManager.h.

UT_ValArray<PI_StateTemplate *> PI_ResourceManager::myStateLists[PI_NUM_VIEWER_TYPES][PI_NUM_NETWORK_TYPES]
protected

Definition at line 618 of file PI_ResourceManager.h.

UT_StringSet PI_ResourceManager::myStates
protected

Definition at line 606 of file PI_ResourceManager.h.

bool PI_ResourceManager::ourAppendToScope
staticprotected

Definition at line 626 of file PI_ResourceManager.h.

int PI_ResourceManager::ourCacheParms
staticprotected

Definition at line 627 of file PI_ResourceManager.h.

UT_ValArray<OP_Node *> PI_ResourceManager::ourParmNodes
staticprotected

Definition at line 628 of file PI_ResourceManager.h.

UT_ValArray<PRM_Parm *> PI_ResourceManager::ourParms
staticprotected

Definition at line 629 of file PI_ResourceManager.h.

UT_IntArray PI_ResourceManager::ourParmVecIndices
staticprotected

Definition at line 630 of file PI_ResourceManager.h.

bool PI_ResourceManager::ourScopeParmChannels
staticprotected

Definition at line 625 of file PI_ResourceManager.h.

bool PI_ResourceManager::ourSetKeyOnParms
staticprotected

Definition at line 624 of file PI_ResourceManager.h.

bool PI_ResourceManager::theAddScopedChannels
staticprotected

Definition at line 634 of file PI_ResourceManager.h.

bool PI_ResourceManager::theHideLockedHandleParts
staticprotected

Definition at line 632 of file PI_ResourceManager.h.

bool PI_ResourceManager::theOpenChannelEditorOnScope
staticprotected

Definition at line 635 of file PI_ResourceManager.h.

bool PI_ResourceManager::theScopeChannelsOnKey
staticprotected

Definition at line 633 of file PI_ResourceManager.h.


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