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

ClusterMeshInterrogator Class Reference

#include <ClusterMeshInterrogator.h>

Inheritance diagram for ClusterMeshInterrogator:

Inheritance graph
[legend]
Collaboration diagram for ClusterMeshInterrogator:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ClusterPhase { INITIALIZE, ASSIGNNEWCENTERS, EXPANDCLUSTERS, FINDCLUSTERCENTERS }
 different phase of the algorithm More...


Public Member Functions

 MAKE_PARTICLESTUFF_NAME ()
 ClusterMeshInterrogator (Particles *ps=NULL)
 default constructor

virtual void cleanup ()
 cleanup does the clustering step

virtual void attachAttributes ()
 Attach all the attributes needed by the behavior.

int qlen ()
 parameters

void getq (double *q)
 Get the parameters.

void setq (double *q)
 Set particle stuff parameters.

void qname (char **qn)
 Get the names of the parameters.


Public Attributes

ClusterPhase phase
std::vector< ClusterOpenMesh::FaceHandle > clusterCenters
 the position is stored in particle position this stores the face handles.

std::vector< ClusterOpenMesh::FaceHandle > costHeap
 this vector will be used as a heap to do the Dijkstra walk

std::vector< ClusterOpenMesh::FaceHandle > lastFaceInCluster
 stores the last face that is added to this cluster

ClusterOpenMesh::FaceHandle lastFace
 last face that is added to the last iteration

unsigned int iteration
 parameters

unsigned int minClusters
unsigned int maxClusters
int restartAlgorithm
SurfaceInterrogatorsurInt
 pointer to the surface mesh


Member Enumeration Documentation

enum ClusterMeshInterrogator::ClusterPhase
 

different phase of the algorithm

Enumeration values:
INITIALIZE 
ASSIGNNEWCENTERS 
EXPANDCLUSTERS 
FINDCLUSTERCENTERS 

Definition at line 22 of file ClusterMeshInterrogator.h.


Constructor & Destructor Documentation

ClusterMeshInterrogator::ClusterMeshInterrogator Particles ps = NULL  ) 
 

default constructor

Definition at line 15 of file ClusterMeshInterrogator.cpp.

References INITIALIZE, iteration, maxClusters, minClusters, phase, and restartAlgorithm.


Member Function Documentation

void ClusterMeshInterrogator::attachAttributes  )  [virtual]
 

Attach all the attributes needed by the behavior.

Defaults to a nop.

Reimplemented from ParticleBehavior.

Definition at line 25 of file ClusterMeshInterrogator.cpp.

References ParticleStuff::attachAttribute(), ParticleBehavior::attachAttributes(), and surInt.

void ClusterMeshInterrogator::cleanup  )  [virtual]
 

cleanup does the clustering step

Reimplemented from ParticleBehavior.

Definition at line 33 of file ClusterMeshInterrogator.cpp.

References Particles::addParticle(), ASSIGNNEWCENTERS, Particles::clear(), clusterCenters, ClusterOpenMesh, costHeap, EXPANDCLUSTERS, FINDCLUSTERCENTERS, INITIALIZE, iteration, lastFace, lastFaceInCluster, maxClusters, ClusterMesh::mesh, minClusters, phase, ParticleBehavior::position, ParticleStuff::ps, ClusterMesh::removeCluster(), restartAlgorithm, ParticlePosition::setPosition(), Particles::size(), SurfaceInterrogator::surface, and surInt.

void ClusterMeshInterrogator::getq double *  q  )  [virtual]
 

Get the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 192 of file ClusterMeshInterrogator.cpp.

References iteration, maxClusters, minClusters, and restartAlgorithm.

ClusterMeshInterrogator::MAKE_PARTICLESTUFF_NAME  ) 
 

int ClusterMeshInterrogator::qlen  )  [virtual]
 

parameters

Reimplemented from ParticleStuff.

Definition at line 188 of file ClusterMeshInterrogator.cpp.

void ClusterMeshInterrogator::qname char **  qn  )  [virtual]
 

Get the names of the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 206 of file ClusterMeshInterrogator.cpp.

void ClusterMeshInterrogator::setq double *  q  )  [virtual]
 

Set particle stuff parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 199 of file ClusterMeshInterrogator.cpp.

References iteration, maxClusters, minClusters, and restartAlgorithm.


Member Data Documentation

std::vector<ClusterOpenMesh::FaceHandle> ClusterMeshInterrogator::clusterCenters
 

the position is stored in particle position this stores the face handles.

Definition at line 26 of file ClusterMeshInterrogator.h.

Referenced by cleanup().

std::vector<ClusterOpenMesh::FaceHandle> ClusterMeshInterrogator::costHeap
 

this vector will be used as a heap to do the Dijkstra walk

Definition at line 29 of file ClusterMeshInterrogator.h.

Referenced by cleanup().

unsigned int ClusterMeshInterrogator::iteration
 

parameters

Definition at line 38 of file ClusterMeshInterrogator.h.

Referenced by cleanup(), ClusterMeshInterrogator(), getq(), and setq().

ClusterOpenMesh::FaceHandle ClusterMeshInterrogator::lastFace
 

last face that is added to the last iteration

Definition at line 35 of file ClusterMeshInterrogator.h.

Referenced by cleanup().

std::vector<ClusterOpenMesh::FaceHandle> ClusterMeshInterrogator::lastFaceInCluster
 

stores the last face that is added to this cluster

Definition at line 32 of file ClusterMeshInterrogator.h.

Referenced by cleanup().

unsigned int ClusterMeshInterrogator::maxClusters
 

Definition at line 40 of file ClusterMeshInterrogator.h.

Referenced by cleanup(), ClusterMeshInterrogator(), getq(), and setq().

unsigned int ClusterMeshInterrogator::minClusters
 

Definition at line 39 of file ClusterMeshInterrogator.h.

Referenced by cleanup(), ClusterMeshInterrogator(), getq(), and setq().

ClusterPhase ClusterMeshInterrogator::phase
 

Definition at line 23 of file ClusterMeshInterrogator.h.

Referenced by cleanup(), and ClusterMeshInterrogator().

int ClusterMeshInterrogator::restartAlgorithm
 

Definition at line 41 of file ClusterMeshInterrogator.h.

Referenced by cleanup(), ClusterMeshInterrogator(), getq(), and setq().

SurfaceInterrogator* ClusterMeshInterrogator::surInt
 

pointer to the surface mesh

Definition at line 44 of file ClusterMeshInterrogator.h.

Referenced by attachAttributes(), and cleanup().


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