Developer Documentation
ACG::DrawMeshFaceInput< Mesh > Class Template Reference
Inheritance diagram for ACG::DrawMeshFaceInput< Mesh >:
ACG::MeshCompilerFaceInput

Public Member Functions

 DrawMeshFaceInput (Mesh &_mesh)
 
int getNumFaces () const
 
int getNumIndices () const
 
int getFaceSize (const int _faceID) const
 
int getSingleFaceAttr (const int _faceID, const int _faceCorner, const int _attrID) const
 
bool getFaceAttr (const int _faceID, const int _attrID, int *_out) const
 
int * getFaceAttr (const int _faceID, const int _attrID) const
 
int getVertexAdjCount (const int _vertexID) const
 
int getVertexAdjFace (const int _vertexID, const int _k) const
 

Public Attributes

std::vector< int > attributeStoredPerHalfedge_
 

Private Attributes

Meshmesh_
 

Detailed Description

template<class Mesh>
class ACG::DrawMeshFaceInput< Mesh >

Definition at line 249 of file DrawMeshT.cc.

Member Function Documentation

template<class Mesh>
bool ACG::DrawMeshFaceInput< Mesh >::getFaceAttr ( const int  _faceID,
const int  _attrID,
int *  _out 
) const
inlinevirtual

Get an index buffer of a face for a specific attribute channel.

Parameters
_faceIDface index
_attrIDattribute channel
_outpointer to output buffer, use getFaceSize(_faceID) to get the size needed to store face data
Returns
true if successful, false otherwise

Reimplemented from ACG::MeshCompilerFaceInput.

Definition at line 345 of file DrawMeshT.cc.

template<class Mesh>
int* ACG::DrawMeshFaceInput< Mesh >::getFaceAttr ( const int  _faceID,
const int  _attrID 
) const
inlinevirtual

Get an index buffer of a face for a specific attribute channel.

Parameters
_faceIDface index
_attrIDattribute channel
Returns
array data of size "getFaceSize(_faceID)", allowed to return 0 when array data not permanently available in memory

Reimplemented from ACG::MeshCompilerFaceInput.

Definition at line 366 of file DrawMeshT.cc.

template<class Mesh>
int ACG::DrawMeshFaceInput< Mesh >::getFaceSize ( const int  _faceID) const
inlinevirtual

Get number of vertices per face.

Parameters
_faceIDface index

Implements ACG::MeshCompilerFaceInput.

Definition at line 271 of file DrawMeshT.cc.

template<class Mesh>
int ACG::DrawMeshFaceInput< Mesh >::getNumIndices ( ) const
inlinevirtual

Get total number of indices in one attribute channel.

i.e. total number of position indices of the whole mesh

Implements ACG::MeshCompilerFaceInput.

Definition at line 266 of file DrawMeshT.cc.

template<class Mesh>
int ACG::DrawMeshFaceInput< Mesh >::getSingleFaceAttr ( const int  _faceID,
const int  _faceCorner,
const int  _attrID 
) const
inlinevirtual

Get a single vertex-index entry of a face.

Parameters
_faceIDface index
_faceCornervertex corner of the face
_attrIDattribute channel
Returns
index-data if successful, -1 otherwise

Reimplemented from ACG::MeshCompilerFaceInput.

Definition at line 283 of file DrawMeshT.cc.

template<class Mesh>
int ACG::DrawMeshFaceInput< Mesh >::getVertexAdjCount ( const int  _vertexID) const
inlinevirtual

Get the number of adjacent faces for a vertex.

Parameters
_vertexIDvertex index
Returns
number of adjacent faces, return -1 if adjacency information unavailable

Reimplemented from ACG::MeshCompilerFaceInput.

Definition at line 374 of file DrawMeshT.cc.

template<class Mesh>
int ACG::DrawMeshFaceInput< Mesh >::getVertexAdjFace ( const int  _vertexID,
const int  _k 
) const
inlinevirtual

Get the index of an adjacent face for a vertex.

Parameters
_vertexIDvertex index
_kadjacency list entry in range [0, .., adjCount - 1]
Returns
face id of adjacent face, return -1 if adjacency information is available

Reimplemented from ACG::MeshCompilerFaceInput.

Definition at line 388 of file DrawMeshT.cc.


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