Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::Mesh Class Reference
[Geometric Objects]

Mesh class. More...

#include <mesh.h>

Inheritance diagram for VIEW::Mesh:

VIEW::GeometricObject TSurface< T > VIEW::MultiColorExtension List of all members.

Public Member Functions

Constructors
 Mesh () throw ()
 Default Constructor.
 Mesh (const Mesh &mesh) throw ()
 Copy constructor.
Destructors
virtual ~Mesh () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Assignment methods
void set (const Mesh &mesh) throw ()
 Assignment.
const Meshoperator= (const Mesh &mesh) throw ()
 Assignment operator.
void swap (Mesh &mesh) throw ()
 Swapping of mesh's.
debuggers and diagnostics
virtual bool isValid () const throw ()
 Internal state and consistency self-validation.
virtual void dump (std::ostream &s=std::cout, Size depth=0) const throw ()
 Internal value dump.
bool binaryWrite (const String &filename)
bool binaryRead (const String &filename)
virtual void getVertices (vector< Vector3 > &vertices) const

Detailed Description

Mesh class.

An instance of Mesh represents an instance of the geometric representation "mesh".

The class Mesh is derived from the classes GeometricObject and Surface. The data structures defining the mesh are implemented in the class Surface. Therefore one can use this mesh in the same fashion as Surface.
The colors belonging to each vertex. If this list has *less* entries than there are vertices in this mesh, we take the first element to color the whole mesh. If it is *empty*, we use the color white.


Constructor & Destructor Documentation

VIEW::Mesh::Mesh  )  throw ()
 

Default Constructor.

virtual VIEW::Mesh::~Mesh  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual void VIEW::Mesh::clear  )  throw () [virtual]
 

Explicit default initialization.

Calls GeometricObject::clear

Reimplemented from TSurface< T >.

virtual void VIEW::Mesh::dump std::ostream &  s = std::cout,
Size  depth = 0
const throw () [virtual]
 

Internal value dump.

Dump the current value of this mesh to the output ostream s with dumping depth depth. Calls GeometricObject::dump.

Parameters:
s output stream where to output the value of this mesh
depth the dumping depth

Reimplemented from VIEW::MultiColorExtension.

virtual bool VIEW::Mesh::isValid  )  const throw () [virtual]
 

Internal state and consistency self-validation.

Calls GeometricObject::isValid.

Reimplemented from VIEW::GeometricObject.

const Mesh& VIEW::Mesh::operator= const Mesh mesh  )  throw ()
 

Assignment operator.

Calls set.

void VIEW::Mesh::set const Mesh mesh  )  throw ()
 

Assignment.

void VIEW::Mesh::swap Mesh mesh  )  throw ()
 

Swapping of mesh's.

Swap the value of this mesh with the mesh mesh.

Parameters:
mesh the mesh being swapped with this mesh