OpenVDB  11.0.0
Classes | Public Types | Public Member Functions | List of all members
ParmList Class Reference

Parameter template list that is always terminated. More...

#include <openvdb_houdini/ParmFactory.h>

Public Types

using PrmTemplateVec = std::vector< PRM_Template >
 

Public Member Functions

 ParmList ()
 
bool empty () const
 Return true if this list contains no parameters. More...
 
size_t size () const
 Return the number of parameters in this list. More...
 
void clear ()
 Remove all parameters from this list. More...
 
ParmListbeginSwitcher (const std::string &token, const std::string &label="")
 Begin a collection of tabs. More...
 
ParmListbeginExclusiveSwitcher (const std::string &token, const std::string &label="")
 Begin an exclusive collection of tabs. Only one tab is "active" at a time. More...
 
ParmListendSwitcher ()
 End a collection of tabs. More...
 
ParmListaddFolder (const std::string &label)
 Add a tab with the given label to the current tab collection. More...
 
PRM_Template * get () const
 Return a heap-allocated copy of this list's array of parameters. More...
 
ParmListadd (const PRM_Template &)
 Add a parameter to this list. More...
 
ParmListadd (const ParmFactory &)
 Add a parameter to this list. More...
 

Detailed Description

Parameter template list that is always terminated.

Member Typedef Documentation

using PrmTemplateVec = std::vector<PRM_Template>

Constructor & Destructor Documentation

ParmList ( )
inline

Member Function Documentation

ParmList& add ( const PRM_Template &  )

Add a parameter to this list.

ParmList& add ( const ParmFactory )

Add a parameter to this list.

ParmList& addFolder ( const std::string &  label)

Add a tab with the given label to the current tab collection.

Parameters subsequently added to this ParmList until the next addFolder() or endSwitcher() call will be displayed on the tab.

Exceptions
std::runtime_errorif not inside a switcher
ParmList& beginExclusiveSwitcher ( const std::string &  token,
const std::string &  label = "" 
)

Begin an exclusive collection of tabs. Only one tab is "active" at a time.

Tabs may be nested.

ParmList& beginSwitcher ( const std::string &  token,
const std::string &  label = "" 
)

Begin a collection of tabs.

Tabs may be nested.

void clear ( )
inline

Remove all parameters from this list.

bool empty ( ) const
inline

Return true if this list contains no parameters.

ParmList& endSwitcher ( )

End a collection of tabs.

Exceptions
std::runtime_errorif not inside a switcher or if no tabs were added to the switcher
PRM_Template* get ( ) const

Return a heap-allocated copy of this list's array of parameters.

size_t size ( ) const
inline

Return the number of parameters in this list.

Note
Some parameter types have parameter lists of their own. Those nested lists are not included in this count.