#include <xsi_nurbssample.h>
An array of NurbsSample objects representing the sample points on a NurbsSurface.
using namespace XSI; Application app; Model root = app.GetActiveSceneRoot(); X3DObject mySphere; root.AddGeometry( L"Sphere", L"NurbsSurface", L"", mySphere ); NurbsSurfaceMesh mySurfaceMesh(mySphere.GetActivePrimitive().GetGeometry()); CNurbsSurfaceRefArray surfaces = mySurfaceMesh.GetSurfaces(); NurbsSurface mySurface = surfaces.GetItem(0); CNurbsSampleRefArray mySamples = mySurface.GetNurbsSamples();
Public Member Functions |
|
CNurbsSampleRefArray () | |
CNurbsSampleRefArray (const CNurbsSampleRefArray &in_array) | |
CRef | GetItem (LONG in_index) const |
CRef | GetItem (const CString &in_name) const |
LONG | GetCount () const |
bool | IsValid () const |
CStatus | GetUSamplingCount (LONG &out_lUSamplingCount) const |
CStatus | GetVSamplingCount (LONG &out_lVSamplingCount) const |
CStatus | GetIndexFromUVSamplingCoordinate (LONG in_lUSamplingCoordinate, LONG in_lVSamplingCoordinate, LONG &out_lIndex) const |
CStatus | GetIndexArrayFromUVSamplingCoordinateArray (CLongArray &in_aUVSamplingCoordinate, CLongArray &out_aIndices) const |
CStatus | GetUVSamplingCoordinateArray (CLongArray &in_aIndices, CLongArray &out_aUVSamplingCoordinate) const |
Default constructor.
CNurbsSampleRefArray | ( | const CNurbsSampleRefArray & | in_array | ) |
Copy constructor.
in_array | constant CNurbsSurfaceRefArray reference object. |
CRef GetItem | ( | LONG | in_index | ) | const [virtual] |
Returns a NurbsSample object at a specified index in the array.
in_index | The index of the NurbsSurface. |
Reimplemented from CSampleRefArray.
Returns the NurbsSample object in the array matching the specified name.
in_name | The name of the NurbsSurface. |
Reimplemented from CSampleRefArray.
LONG GetCount | ( | ) | const [virtual] |
Returns the number of NurbsSample objects in the array.
Reimplemented from CSampleRefArray.
bool IsValid | ( | ) | const [virtual] |
Returns true if this array is a valid object or false otherwise.
Reimplemented from CSampleRefArray.
CStatus GetUSamplingCount | ( | LONG & | out_lUSamplingCount | ) | const |
Returns the number of USampling coordinate valid indices.
out_lUSamplingCount | number of USampling coordinate valid indices. |
CStatus GetVSamplingCount | ( | LONG & | out_lVSamplingCount | ) | const |
Returns the number of VSampling coordinate valid indices.
out_lVSamplingCount | number of VSampling coordinate valid indices. |
CStatus GetIndexFromUVSamplingCoordinate | ( | LONG | in_lUSamplingCoordinate, |
LONG | in_lVSamplingCoordinate, | ||
LONG & | out_lIndex | ||
) | const |
Returns the index of the sample point at given a UV sampling coordinate value.
in_lUSamplingCoordinate | USamplingCoordinate. |
in_lVSamplingCoordinate | VSamplingCoordinate. |
out_lIndex | Returned index |
out_lIndex | NurbsSample global index. |
CStatus GetIndexArrayFromUVSamplingCoordinateArray | ( | CLongArray & | in_aUVSamplingCoordinate, |
CLongArray & | out_aIndices | ||
) | const |
Returns an array of Sample indices corresponding to UV sampling coordinate values.
in_aUVSamplingCoordinate | Array of UV sampling coordinates. |
out_aIndices | Array of indices. |
CStatus GetUVSamplingCoordinateArray | ( | CLongArray & | in_aIndices, |
CLongArray & | out_aUVSamplingCoordinate | ||
) | const |
Returns an array of UVSamplingCoordinate values for all Sample index.
in_aIndices | Array of sample indices. |
out_aUVSamplingCoordinate | Array of UV sampling coordinates. |