Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ClusterMesh Class Reference

#include <ClusterMesh.h>

Inheritance diagram for ClusterMesh:

Inheritance graph
[legend]
Collaboration diagram for ClusterMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClusterMesh ()
 default constructor

bool readFile (const char *filename)
 open a file and precomputer all attributes

void assignRandomCluster (int n)
void removeCluster ()
void computeBoundingBox ()
void computeFaceCenter ()
void computeDualEdgeLength ()
void computeEdgeAngle ()
void computeEdgeCost ()
virtual const std::string name ()
 Return the name of this Surface.

virtual void resetObjectName ()
 Sets the name of the object to a unique 'default' name.


Public Attributes

ClusterOpenMesh mesh
ClusterOpenMesh::Point bbox_min
 bounding box corners

ClusterOpenMesh::Point bbox_max
 bounding box corners


Static Public Attributes

std::string registry_name = "ClusterMesh"
 naming convention


Constructor & Destructor Documentation

ClusterMesh::ClusterMesh  ) 
 

default constructor

Definition at line 14 of file ClusterMesh.cpp.


Member Function Documentation

void ClusterMesh::assignRandomCluster int  n  ) 
 

Definition at line 43 of file ClusterMesh.cpp.

References mesh.

void ClusterMesh::computeBoundingBox  ) 
 

Definition at line 62 of file ClusterMesh.cpp.

References bbox_max, bbox_min, and mesh.

Referenced by readFile().

void ClusterMesh::computeDualEdgeLength  ) 
 

Definition at line 96 of file ClusterMesh.cpp.

References mesh.

Referenced by readFile().

void ClusterMesh::computeEdgeAngle  ) 
 

Definition at line 115 of file ClusterMesh.cpp.

References mesh.

Referenced by readFile().

void ClusterMesh::computeEdgeCost  ) 
 

Definition at line 133 of file ClusterMesh.cpp.

References mesh.

Referenced by readFile().

void ClusterMesh::computeFaceCenter  ) 
 

Definition at line 83 of file ClusterMesh.cpp.

References mesh.

Referenced by readFile().

virtual const std::string ClusterMesh::name  )  [inline, virtual]
 

Return the name of this Surface.

Since Surface does not define registry_name in Surface.cpp, it returns NULL. This should be the case for all abstract classes.

Returns:
registry_name The name of the Surface class.

Todo:
Make sure that NULL is the default value of registry_name in Unix/Linux.

Reimplemented from Surface.

Definition at line 46 of file ClusterMesh.h.

References registry_name.

Referenced by resetObjectName().

bool ClusterMesh::readFile const char *  filename  ) 
 

open a file and precomputer all attributes

Definition at line 19 of file ClusterMesh.cpp.

References computeBoundingBox(), computeDualEdgeLength(), computeEdgeAngle(), computeEdgeCost(), computeFaceCenter(), mesh, and removeCluster().

void ClusterMesh::removeCluster  ) 
 

Definition at line 53 of file ClusterMesh.cpp.

References mesh.

Referenced by ClusterMeshInterrogator::cleanup(), and readFile().

virtual void ClusterMesh::resetObjectName  )  [inline, virtual]
 

Sets the name of the object to a unique 'default' name.

Reimplemented from Surface.

Definition at line 50 of file ClusterMesh.h.

References name(), Surface::objectName, and Surface::objectNumber.


Member Data Documentation

ClusterOpenMesh::Point ClusterMesh::bbox_max
 

bounding box corners

Definition at line 21 of file ClusterMesh.h.

Referenced by computeBoundingBox().

ClusterOpenMesh::Point ClusterMesh::bbox_min
 

bounding box corners

Definition at line 21 of file ClusterMesh.h.

Referenced by computeBoundingBox().

ClusterOpenMesh ClusterMesh::mesh
 

Definition at line 18 of file ClusterMesh.h.

Referenced by assignRandomCluster(), ClusterMeshInterrogator::cleanup(), computeBoundingBox(), computeDualEdgeLength(), computeEdgeAngle(), computeEdgeCost(), computeFaceCenter(), ParticleShaderCluster::draw(), readFile(), and removeCluster().

std::string ClusterMesh::registry_name = "ClusterMesh" [static]
 

naming convention

Reimplemented from Surface.

Definition at line 12 of file ClusterMesh.cpp.

Referenced by name().


The documentation for this class was generated from the following files:
Generated on Mon Jun 28 15:02:06 2004 for Advanced Surface Library by doxygen 1.3.4