XTrigonalModel< T > Class Template Reference

#include <TAPsXTrigonalModel.hpp>

Inheritance diagram for XTrigonalModel< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 XTrigonalModel ()
virtual ~XTrigonalModel ()

Friends

std::ostream & operator<< (std::ostream &output, XTrigonalModel< T > const &o)


Detailed Description

template<typename T>
class XTrigonalModel< T >

Definition at line 32 of file TAPsXTrigonalModel.hpp.


Constructor & Destructor Documentation

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

Definition at line 21 of file TAPsXTrigonalModel.cpp.

00022     : XPolygonalModel<T>()
00023 {
00024     std::cout << "XTrigonalModel<" << typeid(T).name() << "> Constructor\n";
00025 }

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

Definition at line 29 of file TAPsXTrigonalModel.cpp.

00030 {
00031     std::cout << "XTrigonalModel<" << typeid(T).name() << "> Destructor\n";
00032 }


Friends And Related Function Documentation

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

Definition at line 35 of file TAPsXTrigonalModel.hpp.

00036     {
00037         output  << "\n======================\n"
00038                 <<   "TAPs::XTrigonalModel<"
00039                 << typeid(T).name() << "> Class:\n"
00040                 <<   "======================\n";
00041         //----------------------------------------------------------------
00042         // Vertices Node
00043         output  << "\n\nVertices " << o.m_iNoVertices << "\n{";
00044         for ( int i = 0; i < o.m_iNoVertices; ++i ) {
00045             output << "\n  #" << i << "\t" << o.m_prXVertex[i];
00046         }
00047         output  << "\n}";
00048         //----------------------------------------------------------------
00049         // Neighbor vertex ring#1
00050         if ( o.m_pviVertexRing1List ) {
00051             std::vector<int>::const_iterator iterator;
00052             output  << "\n\nVertexRing1 " << o.m_iNoVertices << "\n{";
00053             for ( int i = 0; i < o.m_iNoVertices; ++i ) {
00054                 output << "\n  #" << i;
00055                 for (   iterator = o.m_pviVertexRing1List[i].begin(); 
00056                         iterator != o.m_pviVertexRing1List[i].end();
00057                         ++iterator )
00058                 {
00059                     output << "\t" << *iterator;
00060                 }
00061             }
00062             output  << "\n}";
00063         }
00064         //----------------------------------------------------------------
00065         // Faces Node
00066         output  << "\n\nFaces " << o.m_iNoFaces  << "\n{";
00067         for ( int i = 0; i < o.m_iNoFaces; ++i ) {
00068             output << "\n  #" << i << "\t" << o.m_prFace[i];
00069         }
00070         output  << "\n}";
00071         return output;
00072     }


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

Generated on Mon Oct 13 11:46:15 2008 for TAPs by  doxygen 1.5.6