AbstractPolyhedron< T > Class Template Reference

#include <TAPsAbstractPolyhedron.hpp>

Inheritance diagram for AbstractPolyhedron< T >:

Inheritance graph
[legend]

List of all members.

Protected Member Functions

 AbstractPolyhedron (int iNumVertices, int iNumFaces)
virtual void CalNormals ()=0
virtual void Setup ()=0
virtual ~AbstractPolyhedron ()

Protected Attributes

std::vector< Vector3< T > > m_vFaceNormal
std::vector< Vector3< T > > m_vVertex
std::vector< Vector3< T > > m_vVertexNormal

Friends

std::ostream & operator<< (std::ostream &output, AbstractPolyhedron< T > const &obj)


Detailed Description

template<typename T>
class AbstractPolyhedron< T >

Definition at line 19 of file TAPsAbstractPolyhedron.hpp.


Constructor & Destructor Documentation

template<typename T>
BEGIN_NAMESPACE_TAPs AbstractPolyhedron< T >::AbstractPolyhedron ( int  iNumVertices,
int  iNumFaces 
) [inline, protected]

Definition at line 35 of file TAPsAbstractPolyhedron.cpp.

00036 {
00037     m_vVertex.resize( iNumVertices );
00038     m_vVertexNormal.resize( iNumVertices );
00039     m_vFaceNormal.resize( iNumFaces );
00040 }

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

Definition at line 43 of file TAPsAbstractPolyhedron.cpp.

00044 {}


Member Function Documentation

template<typename T>
virtual void AbstractPolyhedron< T >::CalNormals (  )  [protected, pure virtual]

Implemented in HexahedronCube< T >, and Tetrahedron< T >.

template<typename T>
virtual void AbstractPolyhedron< T >::Setup (  )  [protected, pure virtual]

Implemented in HexahedronCube< T >, and Tetrahedron< T >.


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  output,
AbstractPolyhedron< T > const &  obj 
) [friend]

Definition at line 39 of file TAPsAbstractPolyhedron.hpp.

00040     {
00041         output  << "AbstractPolyhedron<" << typeid(T).name()
00042         //  << "> with " << static_cast<int>(obj.m_vVertices.size()) << " nodes:"
00043         //  << "\n";
00044         //for ( int i = 0; i < static_cast<int>(obj.m_vVertices.size()); ++i ) {
00045         //  output << "  Node#" << i << ": " << obj.m_vVertices[i];
00046         //}
00047         return output;
00048     }


Member Data Documentation

template<typename T>
std::vector< Vector3<T> > AbstractPolyhedron< T >::m_vFaceNormal [protected]

Definition at line 25 of file TAPsAbstractPolyhedron.hpp.

template<typename T>
std::vector< Vector3<T> > AbstractPolyhedron< T >::m_vVertex [protected]

Definition at line 23 of file TAPsAbstractPolyhedron.hpp.

template<typename T>
std::vector< Vector3<T> > AbstractPolyhedron< T >::m_vVertexNormal [protected]

Definition at line 24 of file TAPsAbstractPolyhedron.hpp.


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

Generated on Mon Oct 13 11:43:58 2008 for TAPs by  doxygen 1.5.6