mds::seg::CWriteTetraInfo Class Reference

#include <mdsTetraInfo.h>

List of all members.


Detailed Description

Function object that writes information about tetrahedron to a given stream.


Public Types

enum  EFlags {
  INFO = 1, NEIGHBOURS = 2, FEATURES = 4, CHECK_EDGE_FACES = 8,
  DEFAULT_FLAGS = INFO | NEIGHBOURS | FEATURES
}
 Helper flags. More...

Public Member Functions

bool checkFlag (int Flag)
 Returns true if a given flag is present.
 CWriteTetraInfo (std::ostream &Stream, int Flags=DEFAULT_FLAGS)
 Constructor.
void operator() (vctl::MCTetra &Tetrahedron)
 Writes info about a specified tetrahedron.
void setMesh (CTetraMesh *pMesh)
 Sets internal pointer to the mesh.
void writeHeading ()
 Writes heading to the stream.

Protected Attributes

int m_Flags
 Internal flags.
CTetraMesh::tSmartPtr m_spMesh
 Pointer to the mesh.
std::ostream & m_Stream
 Output stream.


Member Enumeration Documentation

enum mds::seg::CWriteTetraInfo::EFlags
 

Helper flags.

Enumerator:
INFO 
NEIGHBOURS 
FEATURES 
CHECK_EDGE_FACES 
DEFAULT_FLAGS 


Constructor & Destructor Documentation

mds::seg::CWriteTetraInfo::CWriteTetraInfo std::ostream &  Stream,
int  Flags = DEFAULT_FLAGS
[inline]
 

Constructor.


Member Function Documentation

bool mds::seg::CWriteTetraInfo::checkFlag int  Flag  )  [inline]
 

Returns true if a given flag is present.

void mds::seg::CWriteTetraInfo::operator() vctl::MCTetra &  Tetrahedron  )  [inline]
 

Writes info about a specified tetrahedron.

void mds::seg::CWriteTetraInfo::setMesh CTetraMesh pMesh  )  [inline]
 

Sets internal pointer to the mesh.

  • Pointer to the mesh must be valid if you've specified the CHECK_EDGE_FACES flag in the constructor!

void mds::seg::CWriteTetraInfo::writeHeading  )  [inline]
 

Writes heading to the stream.


Member Data Documentation

int mds::seg::CWriteTetraInfo::m_Flags [protected]
 

Internal flags.

CTetraMesh::tSmartPtr mds::seg::CWriteTetraInfo::m_spMesh [protected]
 

Pointer to the mesh.

std::ostream& mds::seg::CWriteTetraInfo::m_Stream [protected]
 

Output stream.


The documentation for this class was generated from the following file:
Generated on Thu Mar 11 10:36:37 2010 for MDSTk Extension Libraries by  doxygen 1.4.6-NO