|
Lumiverse
2.5
A framework for creating lighting control applications
|
Defines a vector type for Arnold parameters, like color, vector etc. More...
#include <ArnoldParameterVector.h>
Public Member Functions | |
| ArnoldParameterVector (T *val=NULL) | |
| Constructs a vector with the values passed as an array. More... | |
| ArnoldParameterVector (ArnoldParameterVector *other) | |
| Constructs a vector with the contents of a different vector. More... | |
| ~ArnoldParameterVector () | |
| Destroys the vector. | |
| string | getTypeName () |
| Says that this object is a vector for a arnold parameter. More... | |
| void | operator= (ArnoldParameterVector val) |
| ArnoldParameterVector & | operator+= (ArnoldParameterVector val) |
| ArnoldParameterVector & | operator-= (ArnoldParameterVector val) |
| ArnoldParameterVector & | operator*= (float val) |
| ArnoldParameterVector & | operator*= (ArnoldParameterVector val) |
| ArnoldParameterVector & | operator/= (float val) |
| ArnoldParameterVector & | operator/= (ArnoldParameterVector val) |
| T & | operator[] (size_t i) |
| size_t | getDimension () |
| Returns the dimension of this vector. More... | |
| void | resize (size_t dim) |
| Resizes the vector to a specific dimension. More... | |
| T | getElement (size_t i) |
| Gets the nth element. More... | |
| T * | getElements () |
| Gets the pointer to corresponding array. More... | |
| void | setElement (size_t i, T val) |
| Sets the value of a element. More... | |
Private Attributes | |
| T | m_elements [D] |
| The actual array contains the elements. | |
| std::string | m_arnoldTypeName |
| The type name of arnold parameter. | |
Defines a vector type for Arnold parameters, like color, vector etc.
This class is used by ArnoldInterface to temporarily contain value and the corresponding arnold parameter name.
| D | Dimension |
| T | Value type |
| Lumiverse::ArnoldParameterVector< D, T >::ArnoldParameterVector | ( | T * | val = NULL | ) |
Constructs a vector with the values passed as an array.
If the pointer is NULL, uses 0 to fill the D-dimensional vector.
| val | A pointer to an array |
| Lumiverse::ArnoldParameterVector< D, T >::ArnoldParameterVector | ( | ArnoldParameterVector< D, T > * | other | ) |
Constructs a vector with the contents of a different vector.
If the other vector has a dimension less than D, then only part of this vector would get rewritten.
| other | The other object to copy from |
|
inline |
Returns the dimension of this vector.
|
inline |
Gets the nth element.
| i | The n |
|
inline |
Gets the pointer to corresponding array.
|
inline |
Says that this object is a vector for a arnold parameter.
"arnold type name" + "dimension"
|
inline |
Resizes the vector to a specific dimension.
| dim | The dimension |
|
inline |
Sets the value of a element.
| i | A specific dimension |
| val | New value |
1.8.10