#include <segment.h>
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 |
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.
GeometricSegmentation
StableSegmentation
virtual void SegmentationNS::Segmentation::addCluster | ( | const Cluster & | cluster | ) | [inline, virtual] |
virtual void SegmentationNS::Segmentation::segment | ( | ) | [inline, virtual] |
bool SegmentationNS::Segmentation::operator== | ( | const Segmentation::Segmentation & | seg | ) | [inline] |