#include <RslPlugin.h>
Public Member Functions | |
virtual | ~RslArg () |
Virtual destructor. | |
virtual bool | IsFloat () const =0 |
Returns true if this argument is a float. | |
virtual bool | IsPoint () const =0 |
Returns true if this argument is a point. | |
virtual bool | IsVector () const =0 |
Returns true if this argument is a vector. | |
virtual bool | IsColor () const =0 |
Returns true if this argument is a color. | |
virtual bool | IsString () const =0 |
Returns true if this argument is a string. | |
virtual bool | IsMatrix () const =0 |
Returns true if this argument is a matrix. | |
virtual bool | IsArray () const =0 |
Returns true if this argument is an array. | |
virtual bool | IsVarying () const =0 |
Returns true if this argument is varying. | |
virtual int | GetArrayLength () const =0 |
Get the length of an array argument. | |
virtual unsigned int | NumValues () const =0 |
Get the number of values for this argument. | |
virtual void | GetData (float **data, int *stride) const =0 |
Get the raw data pointer for this argument from the given context, along with the stride, which specifies how much to increment the pointer on each iteration. | |
Static Public Member Functions | |
static unsigned int | NumValues (int argc, const RslArg **argv) |
Get the maximum number of values for the given arguments. | |
Friends | |
class | RslIter |
class | RslArrayIter |
The result parameter is always the first argument.
|
Virtual destructor.
|
|
Get the length of an array argument. The result is undefined if this argument is not an array (call IsArray first). |
|
Get the raw data pointer for this argument from the given context, along with the stride, which specifies how much to increment the pointer on each iteration. (The stride is zero if the argument is uniform.) Use with caution! Do not read or modify values for inactive points. Use RslContext::GetRunflags to determine which points are active. |
|
Returns true if this argument is an array.
|
|
Returns true if this argument is a color.
|
|
Returns true if this argument is a float.
|
|
Returns true if this argument is a matrix.
|
|
Returns true if this argument is a point.
|
|
Returns true if this argument is a string.
|
|
Returns true if this argument is varying.
|
|
Returns true if this argument is a vector.
|
|
Get the maximum number of values for the given arguments. This method should be used to determine the number of iterations when a plugin function returns values via output arguments. |
|
Get the number of values for this argument. Returns 1 if the argument is uniform. Otherwise it returns the number of points in the context. |