SegmentationNS::Segmentation Class Reference

The base class for segmentation. More...

#include <segment.h>

Inheritance diagram for SegmentationNS::Segmentation:

Inheritance graph
[legend]
Collaboration diagram for SegmentationNS::Segmentation:

Collaboration graph
[legend]

Public Types

enum  SegType { TIME, GEOMETRIC, STABLE }

Public Member Functions

 Segmentation (const std::string &name="", SegType segtype=STABLE, MeshNS::MeshSequencePtr mesh=MeshNS::MeshSequencePtr(), int nbCluster=-1)
void draw (MeshNS::RenderMode _renderMode, int frame) const
void setNbCluster (int nbClusters)
virtual void addCluster (const Cluster &cluster)
virtual void push_back (const Cluster &cluster)
virtual void segment ()
int getNbCluster () const
int getNbRequestedCluster () const
int getClusterType () const
MeshNS::MeshSequencePtr getMeshSequence ()
const MeshNS::MeshSequencePtr getMeshSequence () const
Cluster & getCluster (int index)
const Cluster & getCluster (int index) const
std::vector< Cluster > & getClusters ()
const std::vector< Cluster > & getClusters () const
void setMesh (MeshNS::MeshSequencePtr m)
std::string getName () const
bool operator== (const Segmentation::Segmentation &seg)
SegType getSegmentationType () const

Protected Attributes

std::string _name
SegType _segType
MeshNS::MeshSequencePtr _dmesh
int _nbClusters
int _nbRequestedClusters
std::vector< Cluster > _clusters

Detailed Description

The base class for segmentation.

All segmentation should inherits this class and implements the segment method It should also set the nbClusters and the nbRequestedClusters variable. Different Segmentation viewer (Time, Stable and later Geometric) are available. They only display and do not segment.

Todo:
Treat nbRequested && nbcluster
Todo:
add details
Note:
Derivered class for different segmentation type exists and should be used
See also:
TimeSegmentation

GeometricSegmentation

StableSegmentation


Member Function Documentation

virtual void SegmentationNS::Segmentation::addCluster ( const Cluster &  cluster  )  [inline, virtual]

Todo:
sould be made virtual to be inherited (same for other getter)

virtual void SegmentationNS::Segmentation::segment (  )  [inline, virtual]

Todo:
add pre and post function

Reimplemented in SegmentationNS::StableSegmentationViewer.

bool SegmentationNS::Segmentation::operator== ( const Segmentation::Segmentation &  seg  )  [inline]

Todo:
simplified operator==, for Now. improve it


The documentation for this class was generated from the following files:

Generated on Fri Jan 16 13:05:56 2009 by  doxygen 1.5.5