26 #ifndef MESHCOMPONENT_H 27 #define MESHCOMPONENT_H 29 #include "Component.h" 38 class vtkSelectionNode;
71 MeshComponent ( vtkSmartPointer<vtkPointSet> aPointSet,
const QString &name );
87 void pointPicked ( vtkIdType pointId,
bool );
90 void cellPicked ( vtkIdType cellId,
bool );
93 vtkIdType getPickedPointId();
96 vtkIdType getPickedCellId();
102 virtual unsigned int getNumberOfPropertyWidget();
105 virtual QWidget * getPropertyWidgetAt (
unsigned int i, QWidget* parent = 0 );
108 virtual QPixmap getIcon();
135 QList< vtkSmartPointer<vtkSelectionNode> >& getSelections();
142 unsigned int getNumberOfSelections()
const;
149 vtkSmartPointer<vtkSelection> getActiveSelection()
const;
159 vtkSmartPointer<vtkSelectionNode> getSelection (
const QString& name )
const;
169 vtkSmartPointer<vtkSelectionNode> getSelectionAt (
unsigned int index )
const;
177 int getSelectionIndex (
const QString& name )
const;
214 const QMap< QString, vtkSmartPointer<vtkSelectionNode> >& getSelectionList()
const;
271 void addPointData (
const QString& name, vtkSmartPointer<vtkDataArray> data );
279 void addCellData (
const QString& name, vtkSmartPointer<vtkDataArray> data );
315 virtual void initRepresentation ( vtkSmartPointer<vtkPointSet> );
318 virtual void initSelection();
321 virtual void initData();
324 virtual void initDynamicProperties();
329 void changeSelectedSelection (
const QItemSelection &selected,
const QItemSelection &deselected );
332 void removeSelectedSelections();
335 void removeSelectedData();
362 QMap< QString, vtkSmartPointer<vtkSelectionNode> > selectionMap;
405 #endif // MESHCOMPONENT_H QAction * inspectData
action to inspect data
Definition: MeshComponent.h:399
QWidget * dataWidget
selection widget
Definition: MeshComponent.h:393
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:43
QComboBox * policyBox
combo box to select the selection insertion policy
Definition: MeshComponent.h:384
Qt model for mesh selection This class use the Qt model/view design.
Definition: MeshSelectionModel.h:44
Qt model for mesh data.
Definition: MeshDataModel.h:40
QWidget * selectionWidget
selection widget
Definition: MeshComponent.h:372
QAction * mergeSelection
action to merge selections
Definition: MeshComponent.h:378
QAction * inspectSelection
action to inspect selection
Definition: MeshComponent.h:381
Qt view for mesh selection This class use the Qt model/view design.
Definition: MeshSelectionView.h:40
Qt view for mesh selection This class use the Qt model/view design.
Definition: MeshDataView.h:40
Definition: Action.cpp:40
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:51
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
#define CAMITK_API
Definition: CamiTKAPI.h:49
virtual void initRepresentation()
the concrete building of the 3D objects (Slice/Geometry): none in this case, everything is done by in...
Definition: MeshComponent.h:340
Definition: MeshSelectionModel.h:51
MeshDataModel * dataModel
data model (model as the M in Qt MVC design pattern)
Definition: MeshComponent.h:387
void updateProperty(QString, QVariant)
update property: no specific properties to manage, this is needed to avoid console warnings...
Definition: MeshComponent.h:99
QList< vtkSmartPointer< vtkSelectionNode > > selectionList
list of selections
Definition: MeshComponent.h:355
MeshSelectionModel * selectionModel
selection model (model as the M in Qt MVC design pattern)
Definition: MeshComponent.h:366
vtkIdType pickedPointId
the last picked point
Definition: MeshComponent.h:346
InsertionPolicy
Definition: MeshSelectionModel.h:50
vtkSmartPointer< vtkSelection > currentSelection
manages current selection using vtk
Definition: MeshComponent.h:352
QAction * removeData
action to remove data
Definition: MeshComponent.h:396
vtkIdType pickedCellId
the last picked cell
Definition: MeshComponent.h:349
FieldType
Data fields can be applied to one of this.
Definition: MeshDataModel.h:47
MeshDataView * dataView
data GUI View (view as the V in Qt MVC design pattern)
Definition: MeshComponent.h:390
MeshSelectionView * selectionView
selection GUI View (view as the V in Qt MVC design pattern)
Definition: MeshComponent.h:369
QAction * removeSelections
action to remove selections
Definition: MeshComponent.h:375
MeshDataModel * getDataModel()
get the current data view model (model as the M in Qt MVC design pattern)
Definition: MeshComponent.h:305