26 #ifndef MESHCOMPONENT_H
27 #define MESHCOMPONENT_H
29 #include "Component.h"
36 class vtkSelectionNode;
84 void pointPicked( vtkIdType pointId,
bool );
87 void cellPicked( vtkIdType cellId,
bool );
90 vtkIdType getPickedPointId();
93 vtkIdType getPickedCellId();
99 virtual unsigned int getNumberOfPropertyWidget();
102 virtual QWidget * getPropertyWidgetAt(
unsigned int i, QWidget* parent = 0 );
112 void addSelection(
const QString& name,
int fieldType,
int contentType );
117 void removeSelection(
const QString& name );
122 int getNumberOfSelections()
const;
127 vtkSmartPointer<vtkSelectionNode> getSelection(
const QString& name )
const;
132 vtkSmartPointer<vtkSelectionNode> getSelectionAt(
int i )
const;
137 const QMap< QString, vtkSmartPointer<vtkSelectionNode> >& getSelectionList()
const;
142 void addToSelection(
const QString& name, vtkSmartPointer<vtkAbstractArray> array );
155 void addDataArray(
const QString& name, vtkSmartPointer<vtkDataArray> data );
160 void removeDataArray(
const QString& name );
165 void linkDataToPoints(
const QString& name );
170 void linkDataToCells(
const QString& name );
175 void addPointData(
const QString& name,
int dataType, vtkSmartPointer<vtkDataArray> data );
180 void addCellData(
const QString& name,
int dataType, vtkSmartPointer<vtkDataArray> data );
192 virtual void initRepresentation( vtkSmartPointer<vtkPointSet> );
195 virtual void initDynamicProperties();
200 void changeSelectedSelection(
const QModelIndex& current,
const QModelIndex& previous );
223 QMap< QString, vtkSmartPointer<vtkDataArray> >
dataList;
241 #endif // MESHCOMPONENT_H
void init()
Definition: obj2pml.cpp:213
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:43
Qt model for mesh selection This class use the Qt model/view design.
Definition: MeshSelectionModel.h:40
Qt model for mesh data.
Definition: MeshDataModel.h:39
string name
Definition: select.cpp:111
Definition: Action.cpp:40
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:48
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
QTableView * selectionView
selection GUI View (view as the V in Qt MVC design pattern)
Definition: MeshComponent.h:226
#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:205
QTableView * dataView
data GUI View (view as the V in Qt MVC design pattern)
Definition: MeshComponent.h:229
MeshDataModel * dataModel
data model (model as the M in Qt MVC design pattern)
Definition: MeshComponent.h:235
void updateProperty(QString, QVariant)
update property: no specific properties to manage, this is needed to avoid console warnings...
Definition: MeshComponent.h:96
MeshSelectionModel * selectionModel
selection model (model as the M in Qt MVC design pattern)
Definition: MeshComponent.h:232
vtkIdType pickedPointId
the last picked point
Definition: MeshComponent.h:211
vtkSmartPointer< vtkSelection > currentSelection
manages current selection using vtk
Definition: MeshComponent.h:217
vtkIdType pickedCellId
the last picked cell
Definition: MeshComponent.h:214
QMap< QString, vtkSmartPointer< vtkDataArray > > dataList
maps a name with a data array
Definition: MeshComponent.h:223
MeshDataModel * getDataModel()
get the current data view model (model as the M in Qt MVC design pattern)
Definition: MeshComponent.h:183
QMap< QString, vtkSmartPointer< vtkSelectionNode > > selectionList
maps a name with a type of selection
Definition: MeshComponent.h:220