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

#include <BALL/VIEW/PRIMITIVES/mesh.h>

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

List of all members.

Public Member Functions

Constructors

 Mesh ()
 Mesh (const Mesh &mesh)
Destructors

virtual ~Mesh ()
virtual void clear ()
Assignment methods

void set (const Mesh &mesh)
const Meshoperator= (const Mesh &mesh)
void swap (Mesh &mesh)
debuggers and diagnostics

virtual bool isValid () const
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
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.

Definition at line 38 of file mesh.h.


Constructor & Destructor Documentation

BALL::VIEW::Mesh::Mesh (  ) 

Default Constructor.

BALL::VIEW::Mesh::Mesh ( const Mesh mesh  ) 

Copy constructor

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

Destructor.


Member Function Documentation

bool BALL::VIEW::Mesh::binaryRead ( const String filename  ) 
bool BALL::VIEW::Mesh::binaryWrite ( const String filename  ) 
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 void BALL::VIEW::Mesh::getVertices ( vector< Vector3 > &  vertices  )  const [virtual]

Reimplemented from BALL::VIEW::GeometricObject.

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::set ( const Mesh mesh  ) 

Assignment.

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 by  doxygen 1.6.3