|
HDK
|
#include <BRAY_ProceduralFactory.h>
Inheritance diagram for BRAY_ProceduralFactory:Public Types | |
| using | MapType = UT_StringMap< const BRAY_ProceduralFactory * > |
| The list of procedurals is stored in a map of {name, ProceduralFactory}. More... | |
| using | iterator = MapType::const_iterator |
Public Member Functions | |
| BRAY_ProceduralFactory (const UT_StringHolder &name) | |
| virtual | ~BRAY_ProceduralFactory () |
| const UT_StringHolder & | name () const |
| Return the name of the factory. More... | |
| BRAY_Procedural * | createProcedural () const |
| Create a procedural. More... | |
| virtual bool | acceptsExtraParameters () const |
| virtual bool | matchExtraParameter (const UT_StringHolder &attrib_name) const |
| virtual const BRAY_AttribList * | paramList () const =0 |
Static Public Member Functions | |
| static const MapType & | procedurals () |
| static iterator | begin () |
| static iterator | end () |
| static void | print () |
| static void | print (UT_JSONWriter &w) |
Protected Member Functions | |
| virtual BRAY_Procedural * | create () const =0 |
| Create a procedural. More... | |
| virtual const UT_StringHolder & | extraHelp () const |
| Provide some extra info for this procedural used when printing help. More... | |
Provides an interface to bind Hydra USD primitives to Karma primitives.
The constructor/destructor typically look like this:
Definition at line 37 of file BRAY_ProceduralFactory.h.
Definition at line 78 of file BRAY_ProceduralFactory.h.
| using BRAY_ProceduralFactory::MapType = UT_StringMap<const BRAY_ProceduralFactory *> |
The list of procedurals is stored in a map of {name, ProceduralFactory}.
Definition at line 77 of file BRAY_ProceduralFactory.h.
| BRAY_ProceduralFactory::BRAY_ProceduralFactory | ( | const UT_StringHolder & | name | ) |
When the factory is instantiated, it will be registered with the name given.
|
virtual |
|
inlinevirtual |
A flag to determine whether or not this procedural accepts parameters from outside it's parameter list. If this is enabled, not only will the parameters from paramList() be added, but also any parameters that match the matchExtraParam() method
Definition at line 65 of file BRAY_ProceduralFactory.h.
|
inlinestatic |
Access the list of all the registered procedurals
Definition at line 83 of file BRAY_ProceduralFactory.h.
|
protectedpure virtual |
Create a procedural.
| BRAY_Procedural* BRAY_ProceduralFactory::createProcedural | ( | ) | const |
Create a procedural.
|
inlinestatic |
Access the list of all the registered procedurals
Definition at line 84 of file BRAY_ProceduralFactory.h.
|
inlineprotectedvirtual |
Provide some extra info for this procedural used when printing help.
Definition at line 98 of file BRAY_ProceduralFactory.h.
|
inlinevirtual |
Determine whether this attribute should be added as an extra parameter. This will only be called if acceptsExtraParameters() returns true
Definition at line 70 of file BRAY_ProceduralFactory.h.
|
inline |
Return the name of the factory.
Definition at line 47 of file BRAY_ProceduralFactory.h.
|
pure virtual |
Get the static of supported parameters by the procedural Procedurals are also given an opportunity to construct on the fly tables after going through the list of attributes defined on points.
|
static |
Print list of procedural factory types
|
static |
Print list of procedural factory types
|
static |
Access the list of all the registered procedurals