artec::sdk::base::ICompositeMesh Class Referenceabstract

#include <artec/sdk/base/ICompositeMesh.h>

+ Inheritance diagram for artec::sdk::base::ICompositeMesh:

Public Member Functions

virtual bool isTextured () const =0
 
virtual int getTexturesCount () const =0
 
virtual void addTexture (ITexture *texture)=0
 
virtual ITexturegetTexture (int index) const =0
 
virtual bool isTriangleTextured (int i) const =0
 
virtual const ITexturegetTriangleTexture (int i) const =0
 
virtual TriangleUV getTriangleUV (int i) const =0
 Return triple texture coordinates for i'th triangle of the texture. More...
 
virtual void getTexturedTriangles (const IArrayInt **triangleIndices, const IArrayInt **textureIndices) const =0
 Access other data. More...
 
virtual const IArrayIntgetUntexturedTriangles () const =0
 
virtual ErrorCode validateTextures (bool clearEmpty=true)=0
 
- Public Member Functions inherited from artec::sdk::base::IMesh
virtual IArrayPoint3FgetPoints () const =0
 Data access functions. More...
 
virtual void setPoints (IArrayPoint3F *points)=0
 
virtual IArrayIndexTripletgetTriangles () const =0
 
virtual void setTriangles (IArrayIndexTriplet *triangles)=0
 
virtual IArrayPoint3FgetPointsNormals () const =0
 
virtual void setPointsNormals (IArrayPoint3F *normals)=0
 
virtual IArrayPoint3FgetTrianglesNormals () const =0
 
virtual void setTrianglesNormals (IArrayPoint3F *normals)=0
 
virtual Triangle getTriangle (int i) const =0
 Return points coordinates for i'th triangle. More...
 
virtual unsigned int calculate (unsigned int requested_mode, unsigned int recreate_mode=CM_None)=0
 Create calculated data. More...
 
virtual unsigned int getCalculated ()=0
 
virtual void clear (int requested_mode=CM_ClearEverything)=0
 
virtual void transform (const Matrix4x4D &matrix)=0
 Full transformation (motion - scale) More...
 
virtual void translate (const Point3F &direction)=0
 Translation. More...
 
virtual void rotate (const Matrix4x4D &matrix)=0
 Rotation. More...
 
virtual void scale (float factor)=0
 Scale. More...
 
virtual void scale (float factor, const Point3F &center)=0
 
virtual const IArrayPoint3FgetTrianglesCenters () const =0
 Calculated data access functions. More...
 
virtual const IArrayPoint3FgetTrianglesAngles () const =0
 
virtual const IArrayFloatgetTrianglesAreas () const =0
 
virtual const IArrayPoint3FgetEdgeLengths () const =0
 
virtual bool isEmpty () const =0
 Check if mesh empty. More...
 
virtual void setInternalData (void *p)=0
 set/get some internal data for compatibility with existing code More...
 
virtual void * getInternalData () const =0
 
virtual bool hasNormals () const =0
 
virtual bool hasPointsNormals () const =0
 
virtual bool hasTrianglesNormals () const =0
 
virtual bool hasTrianglesCenters () const =0
 
virtual bool hasTrianglesAngles () const =0
 
virtual bool hasTrianglesAreas () const =0
 
virtual bool hasEdgeLengths () const =0
 
- Public Member Functions inherited from artec::sdk::base::IRevision
virtual bool wasChanged (unsigned int rev) const =0
 Check object changed (true if changed) More...
 
virtual unsigned int incRevision ()=0
 Increment object revision. More...
 
virtual unsigned int getRevision () const =0
 Get object revision. More...
 
- Public Member Functions inherited from artec::sdk::base::IRef
virtual int addRef () const =0
 
virtual int release () const =0
 

Detailed Description

Definition at line 31 of file ICompositeMesh.h.

Member Function Documentation

virtual void artec::sdk::base::ICompositeMesh::addTexture ( ITexture texture)
pure virtual
virtual ITexture* artec::sdk::base::ICompositeMesh::getTexture ( int  index) const
pure virtual
virtual void artec::sdk::base::ICompositeMesh::getTexturedTriangles ( const IArrayInt **  triangleIndices,
const IArrayInt **  textureIndices 
) const
pure virtual

Access other data.

virtual int artec::sdk::base::ICompositeMesh::getTexturesCount ( ) const
pure virtual
virtual const ITexture* artec::sdk::base::ICompositeMesh::getTriangleTexture ( int  i) const
pure virtual

Return texture for i'th triangle of the mesh.

Returns
For untextured triangles return empty ITexture object without IImage and UV coordinates
virtual TriangleUV artec::sdk::base::ICompositeMesh::getTriangleUV ( int  i) const
pure virtual

Return triple texture coordinates for i'th triangle of the texture.

virtual const IArrayInt* artec::sdk::base::ICompositeMesh::getUntexturedTriangles ( ) const
pure virtual
virtual bool artec::sdk::base::ICompositeMesh::isTextured ( ) const
pure virtual

Textures access

virtual bool artec::sdk::base::ICompositeMesh::isTriangleTextured ( int  i) const
pure virtual

Texture index related functions Return texture status for i'th triangle of the mesh

virtual ErrorCode artec::sdk::base::ICompositeMesh::validateTextures ( bool  clearEmpty = true)
pure virtual

Collect textured triangles indices.

Parameters
clearEmpty- delete texture if UV coordinates or texture image empty.

The documentation for this class was generated from the following file: