The INodePropertyValue class handles object properties as used by OSL.
More...
#include <MaxOSLInterface.h>
The INodePropertyValue class handles object properties as used by OSL.
This is an Interface to a particular value held by the INodePropertyManager.
- See also
- Class INodePropertyManager
◆ Type
Enum for the only four datatypes we support: Int, Float, Color (or any other three-valued OSL type like point/vector/normal) and String.
Enumerator |
---|
Int | |
Float | |
Color | |
String | |
@ Float
Definition: MouseCursors.h:125
◆ ~INodePropertyValue()
◆ GetType()
virtual Type GetType |
( |
| ) |
const |
|
pure virtual |
Get the type of the parameter.
◆ GetInt()
virtual void GetInt |
( |
int & |
val | ) |
const |
|
pure virtual |
Get the value, if the type is TypeInt.
◆ GetFloat()
virtual void GetFloat |
( |
float & |
val | ) |
const |
|
pure virtual |
Get the value, if the type is TypeFloat.
◆ GetColor()
virtual void GetColor |
( |
float |
val[3] | ) |
const |
|
pure virtual |
Get the value, if the type is TypeColor.
Also used for points, vectors and normals
◆ GetString()
virtual void GetString |
( |
const char *& |
val | ) |
const |
|
pure virtual |
Get the value, if the type is TypeString.
The value will be an ustring pointer.