MeshModel< T > Class Template Reference

#include <TAPsMeshModel.hpp>

Inheritance diagram for MeshModel< T >:

Inheritance graph
[legend]
Collaboration diagram for MeshModel< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int GetNoFaces () const
int GetNoTexCoords () const
int GetNoVertices () const
int GetNumFaces () const
int GetNumTexCoords () const
int GetNumVertices () const
 MeshModel ()
virtual void SetNoFaces (int n)
virtual void SetNoTexCoords (int n)
virtual void SetNoVertices (int n)
virtual void SetNumFaces (int n)
virtual void SetNumTexCoords (int n)
virtual void SetNumVertices (int n)
virtual ~MeshModel ()

Protected Member Functions

void Init ()
 Initialization.

Protected Attributes

int m_iNoFaces
 # of faces
int m_iNoTexCoords
 # of texture coordinates
int m_iNoVertices
 # of vertices

Friends

class ReadTAPsFile


Detailed Description

template<typename T>
class MeshModel< T >

Definition at line 26 of file TAPsMeshModel.hpp.


Constructor & Destructor Documentation

template<typename T>
BEGIN_NAMESPACE_TAPs__OpenGL MeshModel< T >::MeshModel (  )  [inline]

Definition at line 20 of file TAPsCheckerPlane.cpp.

00021     : OpenGLModel<T>(), 
00022       m_iNoVertices( 0 ), 
00023       m_iNoFaces( 0 ), 
00024       m_iNoTexCoords( 0 )
00025 {
00026     #ifdef  TAPs_DEBUG_MODE
00027     std::cout << "MeshModel<" << typeid(T).name() << "> constructor\n";
00028     #endif//TAPs_DEBUG_MODE
00029 }

template<typename T>
MeshModel< T >::~MeshModel (  )  [inline, virtual]

Definition at line 33 of file TAPsCheckerPlane.cpp.

00034 {
00035     #ifdef  TAPs_DEBUG_MODE
00036     std::cout << "MeshModel<" << typeid(T).name() << "> destructor\n";
00037     #endif//TAPs_DEBUG_MODE
00038 }


Member Function Documentation

template<typename T>
int MeshModel< T >::GetNoFaces (  )  const [inline]

Definition at line 43 of file TAPsMeshModel.hpp.

00043 { return GetNumFaces(); }

template<typename T>
int MeshModel< T >::GetNoTexCoords (  )  const [inline]

Definition at line 44 of file TAPsMeshModel.hpp.

00044 { return GetNumTexCoords(); }

template<typename T>
int MeshModel< T >::GetNoVertices (  )  const [inline]

Definition at line 42 of file TAPsMeshModel.hpp.

00042 { return GetNumVertices(); }

template<typename T>
int MeshModel< T >::GetNumFaces (  )  const [inline]

Definition at line 46 of file TAPsMeshModel.cpp.

00046 { return m_iNoFaces; }

template<typename T>
int MeshModel< T >::GetNumTexCoords (  )  const [inline]

Definition at line 48 of file TAPsMeshModel.cpp.

00048 { return m_iNoTexCoords; }

template<typename T>
int MeshModel< T >::GetNumVertices (  )  const [inline]

Definition at line 44 of file TAPsMeshModel.cpp.

00044 { return m_iNoVertices; }

template<typename T>
void MeshModel< T >::Init (  )  [inline, protected]

Initialization.

Definition at line 267 of file TAPsMeshModel.cpp.

00268 {
00269     #ifdef  TAPs_ENABLE_FACE_VERTEX_COLOR
00270         m_bEnableVertexColor = false;
00271         m_ucDimOfVertexColor = 3;
00272     #endif//TAPs_ENABLE_FACE_VERTEX_COLOR
00273 
00274     #ifdef  TAPs_ENABLE_FACE_VERTEX_TEXTURE_COORDINATES
00275         m_bEnableVertexTexture = false;
00276         m_ucDimOfVertexTexture = 1;
00277     #endif//TAPs_ENABLE_FACE_VERTEX_TEXTURE_COORDINATES
00278 
00279     #if ( defined TAPs_ENABLE_FACE_VERTEX_TEXTURE_COORDINATES || defined TAPs_ENABLE_VERTEX_TEXTURE_COORDINATES )
00280     #endif
00281 }

template<typename T>
virtual void MeshModel< T >::SetNoFaces ( int  n  )  [inline, virtual]

Definition at line 50 of file TAPsMeshModel.hpp.

00050 { SetNumFaces( n ); }

template<typename T>
virtual void MeshModel< T >::SetNoTexCoords ( int  n  )  [inline, virtual]

Definition at line 51 of file TAPsMeshModel.hpp.

00051 { SetNumTexCoords(n ); }

template<typename T>
virtual void MeshModel< T >::SetNoVertices ( int  n  )  [inline, virtual]

Definition at line 49 of file TAPsMeshModel.hpp.

00049 { SetNumVertices( n ); }

template<typename T>
void MeshModel< T >::SetNumFaces ( int  n  )  [inline, virtual]

Definition at line 53 of file TAPsMeshModel.cpp.

00053 { m_iNoFaces = n; }

template<typename T>
void MeshModel< T >::SetNumTexCoords ( int  n  )  [inline, virtual]

Definition at line 55 of file TAPsMeshModel.cpp.

00055 { m_iNoTexCoords = n; }

template<typename T>
void MeshModel< T >::SetNumVertices ( int  n  )  [inline, virtual]

Definition at line 51 of file TAPsMeshModel.cpp.

00051 { m_iNoVertices = n; }


Friends And Related Function Documentation

template<typename T>
friend class ReadTAPsFile [friend]

Definition at line 27 of file TAPsMeshModel.hpp.


Member Data Documentation

template<typename T>
int MeshModel< T >::m_iNoFaces [protected]

# of faces

Definition at line 148 of file TAPsMeshModel.hpp.

template<typename T>
int MeshModel< T >::m_iNoTexCoords [protected]

# of texture coordinates

Definition at line 149 of file TAPsMeshModel.hpp.

template<typename T>
int MeshModel< T >::m_iNoVertices [protected]

# of vertices

Definition at line 147 of file TAPsMeshModel.hpp.


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

Generated on Mon Oct 13 11:45:12 2008 for TAPs by  doxygen 1.5.6