3ds Max C++ API Reference
INodePropertyValue Class Referenceabstract

The INodePropertyValue class handles object properties as used by OSL. More...

#include <MaxOSLInterface.h>

Public Types

enum class  Type : std::uint8_t { Int , Float , Color , String }
 Enum for the only four datatypes we support: Int, Float, Color (or any other three-valued OSL type like point/vector/normal) and String. More...
 

Public Member Functions

virtual Type GetType () const =0
 Get the type of the parameter. More...
 
virtual void GetInt (int &val) const =0
 Get the value, if the type is TypeInt. More...
 
virtual void GetFloat (float &val) const =0
 Get the value, if the type is TypeFloat. More...
 
virtual void GetColor (float val[3]) const =0
 Get the value, if the type is TypeColor. More...
 
virtual void GetString (const char *&val) const =0
 Get the value, if the type is TypeString. More...
 

Protected Member Functions

 ~INodePropertyValue ()=default
 

Detailed Description

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

Member Enumeration Documentation

◆ Type

enum Type : std::uint8_t
strong

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 
69  : std::uint8_t {
70  Int,
71  Float,
72  Color,
73  String
74  };
Definition: color.h:74
Definition: strings.h:20
@ Float
Definition: MouseCursors.h:125

Constructor & Destructor Documentation

◆ ~INodePropertyValue()

~INodePropertyValue ( )
protecteddefault

Member Function Documentation

◆ 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.