Namespace to hold functionality for registering info text callbacks. Whenever getNodeSpecificInfoText() is called, the default info text is added to MMB output unless a valid callback has been registered for the grid type. More...
| Typedefs | |
| using | ApplyGridSpecificInfoText = void (*)(std::ostream&, const openvdb::GridBase&) | 
| Functions | |
| void | registerGridSpecificInfoText (const std::string &gridType, ApplyGridSpecificInfoText callback) | 
| Register an info text callback to a specific grid type. | |
| template<typename GridType> | |
| void | registerGridSpecificInfoText (ApplyGridSpecificInfoText callback) | 
| Register an info text callback to a templated grid type. | |
Namespace to hold functionality for registering info text callbacks. Whenever getNodeSpecificInfoText() is called, the default info text is added to MMB output unless a valid callback has been registered for the grid type.
Use node_info_text::registerGridSpecificInfoText<> to register a grid type to a function pointer which matches the ApplyGridSpecificInfoText signature.
void floatGridText(std::ostream&, const openvdb::GridBase&);
node_info_text::registerGridSpecificInfoText<openvdb::FloatGrid>(&floatGridText);
| using ApplyGridSpecificInfoText = void (*)(std::ostream&, const openvdb::GridBase&) | 
| 
 | inline | 
Register an info text callback to a templated grid type.
| callback | a pointer to the callback function to execute | 
| void registerGridSpecificInfoText | ( | const std::string & | gridType, | 
| ApplyGridSpecificInfoText | callback ) | 
Register an info text callback to a specific grid type.
| gridType | the grid type as a unique string (see templated registerGridSpecificInfoText<>) | 
| callback | a pointer to the callback function to execute |