MultiMeshModelWithMBV< T > Class Template Reference

#include <TAPsMultiMeshModelWithMBV.hpp>

List of all members.

Public Member Functions

virtual void ApplyAndResetTransform ()
virtual void DisplayGL (OpenGL::Enum::DrawMode=OpenGL::Enum::POLYGON)
virtual void DisplayGLUsingColorMaterial (OpenGL::Enum::DrawMode=OpenGL::Enum::POLYGON, OpenGL::Enum::Face=OpenGL::Enum::FRONT)
int GetID () const
MultiBoundingVolume< T > * GetMultiBoundingVolume ()
MultiBoundingVolume< T > const * GetMultiBoundingVolume () const
MultiMeshModel< T > * GetMultiMeshModel ()
MultiMeshModel< T > const * GetMultiMeshModel () const
char const *const GetName () const
TransformationSupport< T > & GetTransform ()
TransformationSupport< T > const & GetTransform () const
virtual void Initialize ()
 MultiMeshModelWithMBV (char *name)
 MultiMeshModelWithMBV ()
void SetID (int id)
void SetName (char *name)
virtual ~MultiMeshModelWithMBV ()

Protected Attributes

int m_iId
MultiBoundingVolume< T > * m_MultiBoundingVolume
MultiMeshModel< T > * m_MultiMeshModel
char * m_pcName

Static Protected Attributes

static int m_iTotal = 0


Detailed Description

template<typename T>
class MultiMeshModelWithMBV< T >

Definition at line 29 of file TAPsMultiMeshModelWithMBV.hpp.


Constructor & Destructor Documentation

template<typename T>
MultiMeshModelWithMBV< T >::MultiMeshModelWithMBV (  )  [inline]

Definition at line 24 of file TAPsMultiMeshModelWithMBV.cpp.

00025     : m_iId( m_iTotal++ ), m_pcName( NULL )
00026 {
00027     m_MultiMeshModel        = new MultiMeshModel<T>();
00028     m_MultiBoundingVolume   = new MultiBoundingVolume<T>();
00029 
00030     #ifdef  TAPs_DEBUG_MODE
00031     std::cout << "MultiMeshModelWithMBV<" << typeid(T).name() << "> #" << m_iId << " constructor\n";
00032     #endif//TAPs_DEBUG_MODE
00033 }

template<typename T>
MultiMeshModelWithMBV< T >::MultiMeshModelWithMBV ( char *  name  )  [inline]

Definition at line 37 of file TAPsMultiMeshModelWithMBV.cpp.

00038     : m_iId( m_iTotal++ ), m_pcName( NULL )
00039 {
00040     SetName( name );
00041 
00042     #ifdef  TAPs_DEBUG_MODE
00043     std::cout << "MultiMeshModelWithMBV<" << typeid(T).name() << "> #" << m_iId << " constructor\n";
00044     #endif//TAPs_DEBUG_MODE
00045 
00046     if ( m_MultiMeshModel ) {
00047         delete m_MultiMeshModel;
00048         m_MultiMeshModel = NULL;
00049     }
00050     if ( m_MultiBoundingVolume ) {
00051         delete m_MultiBoundingVolume;
00052         m_MultiBoundingVolume = NULL;
00053     }
00054 }

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

Definition at line 58 of file TAPsMultiMeshModelWithMBV.cpp.

00059 {
00060     if ( m_pcName ) {
00061         delete [] m_pcName;
00062         m_pcName = NULL;
00063     }
00064     --m_iTotal;
00065 
00066     #ifdef  TAPs_DEBUG_MODE
00067     std::cout << "MultiMeshModelWithMBV<" << typeid(T).name() << "> #"<< m_iId << " destructor\n";
00068     #endif//TAPs_DEBUG_MODE
00069 }


Member Function Documentation

template<typename T>
virtual void MultiMeshModelWithMBV< T >::ApplyAndResetTransform (  )  [inline, virtual]

Definition at line 71 of file TAPsMultiMeshModelWithMBV.hpp.

00072         { m_MultiMeshModel->ApplyAndResetTransform(); }

template<typename T>
void MultiMeshModelWithMBV< T >::DisplayGL ( OpenGL::Enum::DrawMode  DM = OpenGL::Enum::POLYGON  )  [inline, virtual]

Definition at line 110 of file TAPsMultiMeshModelWithMBV.cpp.

00111 {
00112     m_MultiMeshModel->DisplayGL( DM );
00113 }

template<typename T>
void MultiMeshModelWithMBV< T >::DisplayGLUsingColorMaterial ( OpenGL::Enum::DrawMode  DM = OpenGL::Enum::POLYGON,
OpenGL::Enum::Face  F = OpenGL::Enum::FRONT 
) [inline, virtual]

Definition at line 117 of file TAPsMultiMeshModelWithMBV.cpp.

00120 {
00121     m_MultiMeshModel->DisplayGLUsingColorMaterial( DM, F );
00122 }

template<typename T>
int MultiMeshModelWithMBV< T >::GetID (  )  const [inline]

Definition at line 73 of file TAPsMultiMeshModelWithMBV.cpp.

00074 {
00075     return m_iId;
00076 }

template<typename T>
MultiBoundingVolume<T>* MultiMeshModelWithMBV< T >::GetMultiBoundingVolume (  )  [inline]

Definition at line 62 of file TAPsMultiMeshModelWithMBV.hpp.

00063         { return m_MultiBoundingVolume; }

template<typename T>
MultiBoundingVolume<T> const* MultiMeshModelWithMBV< T >::GetMultiBoundingVolume (  )  const [inline]

Definition at line 60 of file TAPsMultiMeshModelWithMBV.hpp.

00061         { return m_MultiBoundingVolume; }

template<typename T>
MultiMeshModel<T>* MultiMeshModelWithMBV< T >::GetMultiMeshModel (  )  [inline]

Definition at line 58 of file TAPsMultiMeshModelWithMBV.hpp.

00059         { return m_MultiMeshModel; }

template<typename T>
MultiMeshModel<T> const* MultiMeshModelWithMBV< T >::GetMultiMeshModel (  )  const [inline]

Definition at line 56 of file TAPsMultiMeshModelWithMBV.hpp.

00057         { return m_MultiMeshModel; }

template<typename T>
char const *const MultiMeshModelWithMBV< T >::GetName (  )  const [inline]

Definition at line 85 of file TAPsMultiMeshModelWithMBV.cpp.

00086 {
00087     return m_pcName;
00088 }

template<typename T>
TransformationSupport<T>& MultiMeshModelWithMBV< T >::GetTransform (  )  [inline]

Definition at line 53 of file TAPsMultiMeshModelWithMBV.hpp.

00054         { return m_MultiMeshModel->GetTransform(); }

template<typename T>
TransformationSupport<T> const& MultiMeshModelWithMBV< T >::GetTransform (  )  const [inline]

Definition at line 51 of file TAPsMultiMeshModelWithMBV.hpp.

00052         { return m_MultiMeshModel->GetTransform(); }

template<typename T>
void MultiMeshModelWithMBV< T >::Initialize (  )  [inline, virtual]

Definition at line 103 of file TAPsMultiMeshModelWithMBV.cpp.

00104 {
00105     m_MultiMeshModel->Initialize();
00106 }

template<typename T>
void MultiMeshModelWithMBV< T >::SetID ( int  id  )  [inline]

Definition at line 79 of file TAPsMultiMeshModelWithMBV.cpp.

00080 {
00081     m_iId = id;
00082 }

template<typename T>
void MultiMeshModelWithMBV< T >::SetName ( char *  name  )  [inline]

Definition at line 91 of file TAPsMultiMeshModelWithMBV.cpp.

00092 {
00093     if ( m_pcName ) {
00094         delete [] m_pcName;
00095         m_pcName = NULL;
00096     }
00097     m_pcName = new char[ strlen(name) + 1 ];
00098     strcpy( m_pcName, name );
00099 }


Member Data Documentation

template<typename T>
int MultiMeshModelWithMBV< T >::m_iId [protected]

Definition at line 88 of file TAPsMultiMeshModelWithMBV.hpp.

template<typename T>
BEGIN_NAMESPACE_TAPs__OpenGL int MultiMeshModelWithMBV< T >::m_iTotal = 0 [inline, static, protected]

Definition at line 87 of file TAPsMultiMeshModelWithMBV.hpp.

template<typename T>
MultiBoundingVolume<T>* MultiMeshModelWithMBV< T >::m_MultiBoundingVolume [protected]

Definition at line 93 of file TAPsMultiMeshModelWithMBV.hpp.

template<typename T>
MultiMeshModel<T>* MultiMeshModelWithMBV< T >::m_MultiMeshModel [protected]

Definition at line 92 of file TAPsMultiMeshModelWithMBV.hpp.

template<typename T>
char* MultiMeshModelWithMBV< T >::m_pcName [protected]

Definition at line 89 of file TAPsMultiMeshModelWithMBV.hpp.


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

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