# xsi_geometryaccessor.h

Go to the documentation of this file.

    00001 //*****************************************************************************
    00011 //*****************************************************************************
    00012
    00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
    00014 #pragma once
    00015 #endif
    00016
    00017 #ifndef __XSIGEOMACCESSOR_H__
    00018 #define __XSIGEOMACCESSOR_H__
    00019
    00020 #include <xsi_siobject.h>
    00021 #include <xsi_value.h>
    00022 #include <xsi_status.h>
    00023 #include <xsi_transformation.h>
    00024
    00025 #pragma warning(disable:4251)
    00026
    00027 namespace XSI {
    00028
    00029 class CBitArray;
    00030 class CLongArray;
    00031 class CDoubleArray;
    00032 class CFloatArray;
    00033 class CRefArray;
    00034
    00035 //*****************************************************************************
    00211 //*****************************************************************************
    00212
    00213 class SICPPSDKDECL CGeometryAccessor : public CBase
    00214 {
    00215 public:
    00217     CGeometryAccessor();
    00218
    00220     ~CGeometryAccessor();
    00221
    00225     CGeometryAccessor(const CRef& in_ref);
    00226
    00230     CGeometryAccessor(const CGeometryAccessor& in_obj);
    00231
    00236     bool IsA( siClassID in_ClassID) const;
    00237
    00241     siClassID GetClassID() const;
    00242
    00248     CGeometryAccessor& operator=(const CGeometryAccessor& in_obj);
    00249
    00255     CGeometryAccessor& operator=(const CRef& in_ref);
    00256
    00260     MATH::CTransformation GetTransform() const;
    00261
    00265     LONG GetPolygonCount() const;
    00266
    00271     CStatus GetPolygonVerticesCount(CLongArray& out_array) const;
    00272
    00323     CStatus GetPolygonMaterialIndices(CLongArray& out_matIndices) const;
    00324
    00391     CStatus GetPolygonMaterialIndicesByMaterial(const CRef& in_refMat,
    00392         CBitArray& out_polyIndices) const;
    00393
    00397     LONG GetVertexCount() const;
    00398
    00407     CStatus GetVertexIndices(CLongArray& out_array) const;
    00408
    00418     CStatus GetVertexPositions(CDoubleArray& out_array) const;
    00419
    00424     CStatus GetVertexCreaseValues(CFloatArray& out_array) const;
    00425
    00429     LONG GetEdgeCount() const;
    00430
    00439     CStatus GetEdgeIndices(CLongArray& out_array) const;
    00440
    00445     CStatus GetEdgeCreaseValues(CFloatArray& out_array) const;
    00446
    00451     CStatus GetHardEdges(CBitArray& out_array) const;
    00452
    00456     LONG GetNodeCount() const;
    00457
    00466     CStatus GetNodeIndices(CLongArray& out_array) const;
    00467
    00506     CStatus GetNodeNormals(CFloatArray& out_array) const;
    00507
    00511     LONG GetTriangleCount() const;
    00512
    00521     CStatus GetTriangleVertexIndices(CLongArray& out_array) const;
    00522
    00531     CStatus GetTriangleNodeIndices(CLongArray& out_array) const;
    00532
    00545     CStatus GetPolygonTriangleIndex( LONG in_tindex, LONG& out_pindex ) const;
    00546
    00561     CStatus GetPolygonTriangleIndices( CLongArray& out_array) const;
    00562
    00568     CRefArray GetClusterProperties( siClusterPropertyType in_type ) const;
    00569
    00576     CRef GetClusterProperty( siClusterPropertyType in_type, const CString& in_nName ) const;
    00577
    00583     CRefArray GetUVs() const;
    00584
    00591     CRef GetUV( const CString& in_nName ) const;
    00592
    00598     CRefArray GetVertexColors() const;
    00599
    00606     CRef GetVertexColor( const CString& in_nName ) const;
    00607
    00613     CRefArray GetUserNormals() const;
    00614
    00621     CRef GetUserNormal( const CString& in_nName ) const;
    00622
    00628     CRefArray GetEnvelopeWeights() const;
    00629
    00636     CRef GetEnvelopeWeight( const CString& in_nName ) const;
    00637
    00643     CRefArray GetShapeKeys() const;
    00644
    00651     CRef GetShapeKey( const CString& in_nName ) const;
    00652
    00658     CRefArray GetWeightMaps() const;
    00659
    00666     CRef GetWeightMap( const CString& in_nName ) const;
    00667
    00673     CRefArray GetUserDataMaps( siClusterType in_type ) const;
    00674
    00718     CRefArray GetMaterials() const;
    00719
    00725     CRefArray GetClusters( siClusterType in_clsType ) const;
    00726
    00731     CRefArray GetClusters() const;
    00732
    00733     private:
    00734     CGeometryAccessor * operator&() const;
    00735     CGeometryAccessor * operator&();
    00736 };
    00737
    00738 };
    00739 #endif // __XSIGEOMACCESSOR_H__