#include <TAPsMultiMeshModelWithMBV.hpp>
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 |
Definition at line 29 of file TAPsMultiMeshModelWithMBV.hpp.
| 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 }
| 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 }
| 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 }
| virtual void MultiMeshModelWithMBV< T >::ApplyAndResetTransform | ( | ) | [inline, virtual] |
Definition at line 71 of file TAPsMultiMeshModelWithMBV.hpp.
00072 { m_MultiMeshModel->ApplyAndResetTransform(); }
| 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 }
| 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 }
| int MultiMeshModelWithMBV< T >::GetID | ( | ) | const [inline] |
| MultiBoundingVolume<T>* MultiMeshModelWithMBV< T >::GetMultiBoundingVolume | ( | ) | [inline] |
Definition at line 62 of file TAPsMultiMeshModelWithMBV.hpp.
00063 { return m_MultiBoundingVolume; }
| MultiBoundingVolume<T> const* MultiMeshModelWithMBV< T >::GetMultiBoundingVolume | ( | ) | const [inline] |
Definition at line 60 of file TAPsMultiMeshModelWithMBV.hpp.
00061 { return m_MultiBoundingVolume; }
| MultiMeshModel<T>* MultiMeshModelWithMBV< T >::GetMultiMeshModel | ( | ) | [inline] |
| MultiMeshModel<T> const* MultiMeshModelWithMBV< T >::GetMultiMeshModel | ( | ) | const [inline] |
| char const *const MultiMeshModelWithMBV< T >::GetName | ( | ) | const [inline] |
| TransformationSupport<T>& MultiMeshModelWithMBV< T >::GetTransform | ( | ) | [inline] |
Definition at line 53 of file TAPsMultiMeshModelWithMBV.hpp.
00054 { return m_MultiMeshModel->GetTransform(); }
| TransformationSupport<T> const& MultiMeshModelWithMBV< T >::GetTransform | ( | ) | const [inline] |
Definition at line 51 of file TAPsMultiMeshModelWithMBV.hpp.
00052 { return m_MultiMeshModel->GetTransform(); }
| void MultiMeshModelWithMBV< T >::Initialize | ( | ) | [inline, virtual] |
Definition at line 103 of file TAPsMultiMeshModelWithMBV.cpp.
00104 { 00105 m_MultiMeshModel->Initialize(); 00106 }
| void MultiMeshModelWithMBV< T >::SetID | ( | int | id | ) | [inline] |
| void MultiMeshModelWithMBV< T >::SetName | ( | char * | name | ) | [inline] |
int MultiMeshModelWithMBV< T >::m_iId [protected] |
Definition at line 88 of file TAPsMultiMeshModelWithMBV.hpp.
BEGIN_NAMESPACE_TAPs__OpenGL int MultiMeshModelWithMBV< T >::m_iTotal = 0 [inline, static, protected] |
Definition at line 87 of file TAPsMultiMeshModelWithMBV.hpp.
MultiBoundingVolume<T>* MultiMeshModelWithMBV< T >::m_MultiBoundingVolume [protected] |
Definition at line 93 of file TAPsMultiMeshModelWithMBV.hpp.
MultiMeshModel<T>* MultiMeshModelWithMBV< T >::m_MultiMeshModel [protected] |
Definition at line 92 of file TAPsMultiMeshModelWithMBV.hpp.
char* MultiMeshModelWithMBV< T >::m_pcName [protected] |
Definition at line 89 of file TAPsMultiMeshModelWithMBV.hpp.
1.5.6