This class is a specialization of CICEAttributeDataArray to give access to the ICEAttribute data as a 2D array of type siICENodeDataCustomType. CICEAttributeDataArray2DCustomType objects are read-only and can be filled with the methods supplied with the ICEAttribute class.
using namespace XSI; Application app; X3DObject x3dObj = app.GetSelection().GetItem(0); ICEAttribute attr = x3dObj.GetActivePrimitive().GetGeometry().GetICEAttributeFromName( L"SomeCustomDataType2DAttribute" ); // Log the data pointer address and size of data. CICEAttributeDataArray2DCustomType customData2D; attr.GetDataArray2D( customData2D ); for( ULONG i=0; i<customData2D.GetCount( ); i++ ) { CICEAttributeDataArrayCustomType customData; customData2D.GetSubArray( i, customData ); for( ULONG j=0; j<customData.GetCount( ); j++ ) { ULONG nSize; const CICEAttributeDataArrayCustomType::TData* pBuffer; customData.GetData( j, &pBuffer, nSize ); app.LogMessage( CString( (void*)pBuffer ) + L":" + CString( nSize ) ); } }
#include <xsi_iceattributedataarray2D.h>
Public Member Functions | |
CICEAttributeDataArray2DCustomType () | |
~CICEAttributeDataArray2DCustomType () | |
CStatus | GetSubArray (ULONG in_index, CBaseICEAttributeDataArray &out_dataArray) const |
CICEAttributeDataArray2DCustomType | ( | ) | [inline] |
Constructor.
~CICEAttributeDataArray2DCustomType | ( | ) | [inline] |
Destructor.
CStatus GetSubArray | ( | ULONG | in_index, |
CBaseICEAttributeDataArray & | out_dataArray | ||
) | const [inline] |
Returns the sub-array containing the custom type data at a given index.
in_index | Index in the array. The index must be smaller than the number of elements in the array, otherwise the results are unpredictable. |
out_dataArray | A read-only reference to a CICEAttributeDataArrayCustomType object at a specific index. |
in_index
or out_dataArray
is invalid.