ViewerNS::SegmentViewer Class Reference

Display a Segmented Mesh Sequence. More...

#include <segment_viewer.h>

Inheritance diagram for ViewerNS::SegmentViewer:

Inheritance graph
[legend]
Collaboration diagram for ViewerNS::SegmentViewer:

Collaboration graph
[legend]

Public Slots

void load (const QString &basename M_UNUSED)
void changeSegmentation (SegmentationNS::SegmentationPtr seg, bool update=true)
 Set the Segmentation currently displayed.
void changeCluster (int nb, bool update=true)
 Change the number of clusters for the current segmentation.
void shouldUpdate ()
SegmentationNS::SegmentationPtr getSegmentation ()

Public Member Functions

 SegmentViewer (MeshNS::MeshSequencePtr *mesh, QWidget *parent=0)
 Constructor. param mesh : pointer to the mesh rendered by the GLViewer.

Protected Member Functions

void draw ()
void animate ()

Detailed Description

Display a Segmented Mesh Sequence.

Todo:
clear segmentations, clear mesh, see update things...
Todo:
add method to force recomputation

Constructor & Destructor Documentation

ViewerNS::SegmentViewer::SegmentViewer ( MeshNS::MeshSequencePtr *  mesh,
QWidget *  parent = 0 
)

Constructor. param mesh : pointer to the mesh rendered by the GLViewer.

Todo:
base class


Member Function Documentation

void ViewerNS::SegmentViewer::load ( const QString &basename  M_UNUSED  )  [inline, slot]

Todo:
Is this still necessary

void ViewerNS::SegmentViewer::changeSegmentation ( SegmentationNS::SegmentationPtr  seg,
bool  update = true 
) [inline, slot]

Set the Segmentation currently displayed.

Parameters:
seg : the new segmentation
update : should the segmentation be updqted (ie recomputed)

void ViewerNS::SegmentViewer::changeCluster ( int  nb,
bool  update = true 
) [inline, slot]

Change the number of clusters for the current segmentation.

Parameters:
nb : new number of cluster.
update :should the segmentation be updqted (ie recomputed)

SegmentationNS::SegmentationPtr ViewerNS::SegmentViewer::getSegmentation (  )  [inline, slot]

Get the current Segmentation.

Returns:
the segmentation


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

Generated on Fri Jan 16 13:06:00 2009 by  doxygen 1.5.5