3ds Max C++ API Reference
|
The INodePropertyManager class manages properties that OSL is interested in. More...
#include <MaxOSLInterface.h>
Public Member Functions | |
virtual NodeProperties | GetProperties (INode *node) const =0 |
Get the properties for a particular INode. More... | |
virtual bool | IsEnabled () const =0 |
Check if the property manager is "enabled" from 3dsmax.ini. More... | |
virtual void | Invalidate (INode *node)=0 |
Invalidates the cache for a particular INode, or if NULL is passed, the cache for everything. More... | |
The INodePropertyManager class manages properties that OSL is interested in.
This class manages properties attached to INode's (also known as "object properties" although they are actually on the object instance - i.e. INode). This contains both the 'standard' properties like 'nodeHandle' and 'wireColor' but also any user-properties the user has added in the Object Property dialog. The latter has names prepended by the string "usr_".
Pass in an INode and get the NodeProperties class back, which contains the mapping of properties. There are two options:
The INodePropertyManager is retrieved from the IOSLGlobalInterface pointer, and the values are then directly looked up in the INodeProperty's value member (pseudocode, example lacks error checking):
A slightly more optimized version could do this:
|
pure virtual |
Get the properties for a particular INode.
|
pure virtual |
Check if the property manager is "enabled" from 3dsmax.ini.
This flag is informational, and might be deprecated.
For the Scanline renderer implementation this being false means that it will not use the property manager. It doesn't in any way deactivate the use of these classes.