BALL::VIEW::Mesh Class Reference
[Geometric Objects]

Mesh class. More...

#include <mesh.h>

Inheritance diagram for BALL::VIEW::Mesh:
Inheritance graph
[legend]

List of all members.


Public Member Functions

Constructors
Mesh ()
Default Constructor.
Mesh (const Mesh &mesh)
Copy constructor.
Destructors
virtual ~Mesh ()
Destructor.
virtual void clear ()
Explicit default initialization.
Assignment methods
void set (const Mesh &mesh)
Assignment.
const Mesh & operator= (const Mesh &mesh)
Assignment operator.
void swap (Mesh &mesh)
Swapping of mesh's.
debuggers and diagnostics
virtual bool isValid () const
Internal state and consistency self-validation.
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
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.

Member Function Documentation

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

Explicit default initialization.

Calls GeometricObject::clear

Reimplemented from BALL::VIEW::MultiColorExtension.

virtual void BALL::VIEW::Mesh::dump ( std::ostream & s = std::cout,
Size depth = 0
) const [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 BALL::VIEW::MultiColorExtension.

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

Internal state and consistency self-validation.

Calls GeometricObject::isValid.

Reimplemented from BALL::VIEW::GeometricObject.

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

Assignment operator.

Calls set.

void BALL::VIEW::Mesh::swap ( Mesh & mesh )

Swapping of mesh's.

Swap the value of this mesh with the mesh mesh.

Parameters:
mesh the mesh being swapped with this mesh

Generated on Thu Aug 6 18:30:58 2009 for BALL by doxygen 1.5.8