OpenVDB
9.0.1
|
Use this class to register a new OpenVDB operator (SOP, POP, etc.) More...
#include <openvdb_houdini/SOP_NodeVDB.h>
Inherits OpFactory.
Public Types | |
enum | OpFlavor { SOP, POP, ROP, VOP, HDA } |
using | CacheAllocFunc = std::function< SOP_NodeCache *(void)> |
Functor that returns newly-allocated node caches for instances of this operator. More... | |
Public Member Functions | |
OpenVDBOpFactory (const std::string &english, OP_Constructor, houdini_utils::ParmList &, OP_OperatorTable &, houdini_utils::OpFactory::OpFlavor=SOP) | |
Construct an OpFactory that on destruction registers a new OpenVDB operator type. More... | |
OpenVDBOpFactory & | setNativeName (const std::string &name) |
Set the name of the equivalent native operator as shipped with Houdini. More... | |
OpFlavor | flavor () const |
Return the new operator's flavor (SOP, POP, etc.). More... | |
std::string | flavorString () const |
Return the new operator's flavor as a string ("SOP", "POP", etc.). More... | |
const std::string & | name () const |
Return the new operator's type name. More... | |
const std::string & | english () const |
Return the new operator's UI name. More... | |
const std::string & | iconName () const |
Return the new operator's icon name. More... | |
const std::string & | helpURL () const |
Return the new operator's help URL. More... | |
const std::string & | documentation () const |
Return the new operator's documentation. More... | |
const OP_OperatorTable & | table () const |
Return the operator table with which this factory is associated. More... | |
OpFactory & | addAlias (const std::string &english) |
Construct a type name for this operator from the given English name and add it as an alias. More... | |
OpFactory & | addAliasVerbatim (const std::string &name) |
Add an alias for this operator. More... | |
OpFactory & | setDocumentation (const std::string &) |
Add documentation for this operator. More... | |
OpFactory & | addInput (const std::string &name) |
Add a required input with the given name. More... | |
OpFactory & | addOptionalInput (const std::string &name) |
Add an optional input with the given name. More... | |
OpFactory & | setMaxInputs (unsigned=9999) |
Set the maximum number of inputs allowed by this operator. More... | |
OpFactory & | setObsoleteParms (const ParmList &) |
Specify obsolete parameters to this operator. More... | |
OpFactory & | setLocalVariables (CH_LocalVariable *) |
Add one or more local variables to this operator. More... | |
OpFactory & | setFlags (unsigned) |
OpFactory & | setInternalName (const std::string &name) |
OpFactory & | setOperatorTable (const std::string &name) |
OpFactory & | setVerb (SOP_NodeVerb::CookMode cookMode, const CacheAllocFunc &allocator) |
Register this operator as a compilable SOP. More... | |
OpFactory & | setInvisible () |
Mark this node as hidden from the UI tab menu. More... | |
OpFactory & | addSpareData (const SpareDataMap &) |
Specify (key, value) pairs of spare data for this operator. More... | |
Static Public Member Functions | |
static std::string | flavorToString (OpFlavor) |
Return "SOP" for the SOP flavor, "POP" for the POP flavor, etc. More... | |
Protected Member Functions | |
OP_OperatorTable & | table () |
Return the operator table with which this factory is associated. More... | |
Use this class to register a new OpenVDB operator (SOP, POP, etc.)
This class ensures that the operator uses the appropriate OpPolicy.
|
inherited |
Functor that returns newly-allocated node caches for instances of this operator.
A node cache encapsulates a SOP's cooking logic for thread safety. Input geometry and parameter values are baked into the cache.
|
inherited |
OpenVDBOpFactory | ( | const std::string & | english, |
OP_Constructor | , | ||
houdini_utils::ParmList & | , | ||
OP_OperatorTable & | , | ||
houdini_utils::OpFactory::OpFlavor | = SOP |
||
) |
Construct an OpFactory that on destruction registers a new OpenVDB operator type.
|
inherited |
Construct a type name for this operator from the given English name and add it as an alias.
For backward compatibility when an operator needs to be renamed, add the old name as an alias.
|
inherited |
Add an alias for this operator.
For backward compatibility when an operator needs to be renamed, add the old name as an alias.
|
inherited |
Add a required input with the given name.
|
inherited |
Add an optional input with the given name.
|
inherited |
Specify (key, value) pairs of spare data for this operator.
If a key already exists, its corresponding value will be overwritten with the new value.
|
inherited |
Return the new operator's documentation.
|
inherited |
Return the new operator's UI name.
This accessor is mainly for use by OpPolicy objects.
|
inherited |
Return the new operator's flavor (SOP, POP, etc.).
This accessor is mainly for use by OpPolicy objects.
|
inherited |
Return the new operator's flavor as a string ("SOP", "POP", etc.).
This accessor is mainly for use by OpPolicy objects.
|
staticinherited |
Return "SOP" for the SOP flavor, "POP" for the POP flavor, etc.
Useful in OpPolicy classes for constructing type and icon names.
|
inherited |
Return the new operator's help URL.
This accessor is mainly for use by OpPolicy objects.
|
inherited |
Return the new operator's icon name.
This accessor is mainly for use by OpPolicy objects.
|
inherited |
Return the new operator's type name.
This accessor is mainly for use by OpPolicy objects.
|
inherited |
Add documentation for this operator.
The text is parsed as wiki markup.
|
inherited |
|
inherited |
|
inherited |
Mark this node as hidden from the UI tab menu.
This is equivalent to using the hscript ophide method.
|
inherited |
Add one or more local variables to this operator.
|
inherited |
Set the maximum number of inputs allowed by this operator.
OpenVDBOpFactory& setNativeName | ( | const std::string & | name | ) |
Set the name of the equivalent native operator as shipped with Houdini.
This is only needed where the native name policy doesn't provide the correct name. Pass an empty string to indicate that there is no equivalent native operator.
Specify obsolete parameters to this operator.
|
inherited |
|
inherited |
Register this operator as a compilable SOP.
"Verbifying" a SOP separates its input and parameter management from its cooking logic so that cooking can be safely threaded.
cookMode | how to initialize the output detail |
allocator | a node cache allocator for instances of this operator |
std::runtime_error | if this operator is not a SOP |
std::invalid_argument | if allocator is empty |
|
inherited |
Return the operator table with which this factory is associated.
This accessor is mainly for use by OpPolicy objects.
|
protectedinherited |
Return the operator table with which this factory is associated.
This accessor is mainly for use by derived OpFactory classes.