HDK
|
Parameter definition for arguments to RAY_Procedural. More...
#include <RAY_Procedural.h>
Public Member Functions | |
RAY_ProceduralArg (const char *name=0, const char *type=0, const char *value=0) | |
~RAY_ProceduralArg () | |
const char * | getName () const |
Return the name of the argument. More... | |
const char * | getType () const |
Return the storage type of the argument. More... | |
const char * | getValue () const |
Return the default value. More... | |
Parameter definition for arguments to RAY_Procedural.
Each RAY_Procedural has its arguments defined by a table of RAY_ProceduralArg objects. The procedural can query the value of these parameters using RAY_Procedural::import() at run time (without having to parse argument lists). The list of arguments should be terminated by an entry constructed with default arguments. For example:
Definition at line 109 of file RAY_Procedural.h.
|
inline |
name | The name of the parameter (must be unique) |
type | The storage type of the parameter. This should be one of
|
value | A string representing the default values for the argument. For int and real types, the string is tokenized and the number of tokens in the trin determines the vector/tuple size of the argument. For exampleFor string types, the vector size is always 1, and the string is used as the default value. |
const char *
passed in. Definition at line 131 of file RAY_Procedural.h.
|
inline |
Definition at line 138 of file RAY_Procedural.h.
|
inline |
Return the name of the argument.
Definition at line 143 of file RAY_Procedural.h.
|
inline |
Return the storage type of the argument.
Definition at line 145 of file RAY_Procedural.h.
|
inline |
Return the default value.
Definition at line 147 of file RAY_Procedural.h.