![]() |
OpenVDB 13.0.1
|
Base class from which to derive OpenVDB-related Houdini SOPs. More...
#include <openvdb_houdini/SOP_NodeVDB.h>
Public Member Functions | |
| SOP_NodeVDB (OP_Network *, const char *, OP_Operator *) | |
| ~SOP_NodeVDB () override=default | |
| void | fillInfoTreeNodeSpecific (UT_InfoTree &, const OP_NodeInfoTreeParms &) override |
| void | getNodeSpecificInfoText (OP_Context &, OP_NodeInfoParms &) override |
| const SOP_NodeVerb * | cookVerb () const override |
| Return this node's registered verb. | |
| const GA_PrimitiveGroup * | matchGroup (GU_Detail &, const std::string &pattern) |
| Retrieve a group from a geometry detail by parsing a pattern (typically, the value of a Group parameter belonging to this node). | |
| const GA_PrimitiveGroup * | matchGroup (const GU_Detail &, const std::string &pattern) |
| Retrieve a group from a geometry detail by parsing a pattern (typically, the value of a Group parameter belonging to this node). | |
Parameter evaluation | |
| openvdb::Vec3f | evalVec3f (const char *name, fpreal time) const |
| Evaluate a vector-valued parameter. | |
| openvdb::Vec3R | evalVec3R (const char *name, fpreal time) const |
| Evaluate a vector-valued parameter. | |
| openvdb::Vec3i | evalVec3i (const char *name, fpreal time) const |
| Evaluate a vector-valued parameter. | |
| openvdb::Vec2R | evalVec2R (const char *name, fpreal time) const |
| Evaluate a vector-valued parameter. | |
| openvdb::Vec2i | evalVec2i (const char *name, fpreal time) const |
| Evaluate a vector-valued parameter. | |
| std::string | evalStdString (const char *name, fpreal time, int index=0) const |
| Evaluate a string-valued parameter as an STL string. | |
Protected Member Functions | |
| OP_ERROR | cookMyGuide1 (OP_Context &) override |
| void | resolveRenamedParm (PRM_ParmList &obsoleteParms, const char *oldName, const char *newName) |
| Transfer the value of an obsolete parameter that was renamed to the parameter with the new name. | |
| OP_ERROR | cookMySop (OP_Context &) override final |
| To facilitate compilable SOPs, cookMySop() is now final. Instead, either override SOP_NodeVDB::cookVDBSop() (for a non-compilable SOP) or override SOP_VDBCacheOptions::cookVDBSop() (for a compilable SOP). | |
| virtual OP_ERROR | cookVDBSop (OP_Context &) |
| To facilitate compilable SOPs, cookMySop() is now final. Instead, either override SOP_NodeVDB::cookVDBSop() (for a non-compilable SOP) or override SOP_VDBCacheOptions::cookVDBSop() (for a compilable SOP). | |
Base class from which to derive OpenVDB-related Houdini SOPs.
| SOP_NodeVDB | ( | OP_Network * | , |
| const char * | , | ||
| OP_Operator * | ) |
|
overridedefault |
|
overrideprotected |
|
finaloverrideprotected |
To facilitate compilable SOPs, cookMySop() is now final. Instead, either override SOP_NodeVDB::cookVDBSop() (for a non-compilable SOP) or override SOP_VDBCacheOptions::cookVDBSop() (for a compilable SOP).
|
inlineprotectedvirtual |
To facilitate compilable SOPs, cookMySop() is now final. Instead, either override SOP_NodeVDB::cookVDBSop() (for a non-compilable SOP) or override SOP_VDBCacheOptions::cookVDBSop() (for a compilable SOP).
|
override |
Return this node's registered verb.
| std::string evalStdString | ( | const char * | name, |
| fpreal | time, | ||
| int | index = 0 ) const |
Evaluate a string-valued parameter as an STL string.
This method facilitates string parameter evaluation in expressions. For example,
| openvdb::Vec2i evalVec2i | ( | const char * | name, |
| fpreal | time ) const |
Evaluate a vector-valued parameter.
| openvdb::Vec2R evalVec2R | ( | const char * | name, |
| fpreal | time ) const |
Evaluate a vector-valued parameter.
| openvdb::Vec3f evalVec3f | ( | const char * | name, |
| fpreal | time ) const |
Evaluate a vector-valued parameter.
| openvdb::Vec3i evalVec3i | ( | const char * | name, |
| fpreal | time ) const |
Evaluate a vector-valued parameter.
| openvdb::Vec3R evalVec3R | ( | const char * | name, |
| fpreal | time ) const |
Evaluate a vector-valued parameter.
|
override |
|
override |
| const GA_PrimitiveGroup * matchGroup | ( | const GU_Detail & | , |
| const std::string & | pattern ) |
Retrieve a group from a geometry detail by parsing a pattern (typically, the value of a Group parameter belonging to this node).
| std::runtime_error | if the pattern is nonempty but doesn't match any group. |
| const GA_PrimitiveGroup * matchGroup | ( | GU_Detail & | , |
| const std::string & | pattern ) |
Retrieve a group from a geometry detail by parsing a pattern (typically, the value of a Group parameter belonging to this node).
| std::runtime_error | if the pattern is nonempty but doesn't match any group. |
|
protected |
Transfer the value of an obsolete parameter that was renamed to the parameter with the new name.
This convenience method is intended to be called from resolveObsoleteParms(), when that function is implemented.