#include <xsi_dataarray.h>
Public Types |
|
| typedef T | TData |
| TData is the underlying data type of a CDataArray instance. Possible values are:. |
|
Public Member Functions |
|
| SICPPSDK_INLINE | CDataArray (ICENodeContext &in_ctxt, ULONG in_nInputPortID, ULONG in_nInstanceIndex=0) |
| SICPPSDK_INLINE | CDataArray (ICENodeContext &in_ctxt) |
| SICPPSDK_INLINE | ~CDataArray () |
| SICPPSDK_INLINE const TData & | operator[] (ULONG in_index) const |
| SICPPSDK_INLINE TData & | operator[] (ULONG in_index) |
| SICPPSDK_INLINE ULONG | GetCount () const |
| SICPPSDK_INLINE bool | IsConstant () const |
using namespace XSI; CDataArrayVector3f outData( in_ctxt ); CDataArrayVector3f inData( in_ctxt, ID_IN_vector3 ); CDataArrayFloat scalarData( in_ctxt, ID_IN_factor ); CIndexSet indexSet( in_ctxt ); for(CIndexSet::Iterator it = indexSet.Begin(); it.HasNext(); it.Next()) { outData[it] = inData[it]; outData[it].ScaleInPlace( scalarData[it] ); }
| T TData |
TData is the underlying data type of a CDataArray instance. Possible values are:.
| SICPPSDK_INLINE CDataArray | ( | ICENodeContext & | in_ctxt, | |
| ULONG | in_nInputPortID, | |||
| ULONG | in_nInstanceIndex = 0 |
|||
| ) |
Constructor for data types bound to input ports.
| in_ctxt | ICENode evaluation context. | |
| in_nInputPortID | Input port identifier. | |
| in_nInstanceIndex | The group instance of the port. |
| SICPPSDK_INLINE CDataArray | ( | ICENodeContext & | in_ctxt | ) |
Constructor for data types bound to output ports.
| in_ctxt | ICENode evaluation context. |
| SICPPSDK_INLINE ~CDataArray | ( | ) |
Destructor.
| SICPPSDK_INLINE const T & operator[] | ( | ULONG | in_index | ) | const |
Accessor to the encapsulated array. This operator is called when reading the data so the return value is read-only.
| in_index | Index in the array. The index must be smaller than the number of elements in the array, otherwise the results are unpredicted. |
| SICPPSDK_INLINE T & operator[] | ( | ULONG | in_index | ) |
Accessor to elements at a given index.
| in_index | Index in this zero based array. The index must be smaller than the number of elements in the array, otherwise the results are unpredicted. |
| SICPPSDK_INLINE ULONG GetCount | ( | ) | const |
Returns the number of elements in the array.
| SICPPSDK_INLINE bool IsConstant | ( | ) | const |
Returns true if the array is constant or false otherwise. A constant array has only one value.