106 MeshComponent(vtkSmartPointer<vtkPointSet> aPointSet,
const QString& name);
122 void pointPicked(vtkIdType pointId,
bool)
override;
125 void cellPicked(vtkIdType cellId,
bool)
override;
128 vtkIdType getPickedPointId();
131 vtkIdType getPickedCellId();
137 unsigned int getNumberOfPropertyWidget()
override;
140 QWidget* getPropertyWidgetAt(
unsigned int i = 0)
override;
143 QPixmap getIcon()
override;
170 QList< vtkSmartPointer<vtkSelectionNode> >& getSelections();
177 unsigned int getNumberOfSelections()
const;
184 vtkSmartPointer<vtkSelection> getActiveSelection()
const;
194 vtkSmartPointer<vtkSelectionNode> getSelection(
const QString& name)
const;
204 vtkSmartPointer<vtkSelectionNode> getSelectionAt(
unsigned int index)
const;
212 int getSelectionIndex(
const QString& name)
const;
227 virtual int addSelection(
const QString& name,
int fieldType,
int contentType, vtkSmartPointer< vtkAbstractArray > array,
MeshSelectionModel::InsertionPolicy policy = MeshSelectionModel::REPLACE);
240 virtual int addToSelectedSelection(
int fieldType,
int contentType, vtkSmartPointer< vtkAbstractArray > array,
MeshSelectionModel::InsertionPolicy policy = MeshSelectionModel::REPLACE);
260 int getNumberOfDataArray(
int fieldFlag = POINTS | CELLS);
270 vtkSmartPointer<vtkDataArray> getDataArray(FieldType fieldType,
const QString& arrayName);
280 vtkSmartPointer<vtkDataArray> getDataArray(FieldType fieldType,
int index);
289 void addDataArray(FieldType fieldType,
const QString& name, vtkSmartPointer<vtkDataArray> data);
297 void removeDataArray(FieldType fieldType,
const QString& name);
305 void addPointData(
const QString& name, vtkSmartPointer<vtkDataArray> data);
313 void addCellData(
const QString& name, vtkSmartPointer<vtkDataArray> data);
319 vtkSmartPointer<vtkFieldData> getFieldData(FieldType);
322 bool getDataRepresentationVisibility(FieldType,
const QString&) ;
325 void setDataRepresentationVisibility(FieldType,
const QString&,
bool);
328 void setDataRepresentationOff(
int dataType = SCALARS | VECTORS | TENSORS);
338 static const QMap< int, QString >& getFieldNames();
341 static const QString getFieldName(
const FieldType);
344 static const QMap< int, QString >& getDataTypeNames();
347 static const QString getDataTypeName(
const DataType);
350 static const DataType getDataType(vtkSmartPointer<vtkDataArray>);
356 static const QString getDataTypeName(vtkSmartPointer<vtkDataArray>);
368 void initRepresentation(vtkSmartPointer<vtkPointSet>);
371 void initSelection();
377 void initDynamicProperties();
382 void changeSelectedSelection(
const QItemSelection& selected,
const QItemSelection& deselected);
385 void removeSelectedSelections();
388 void removeSelectedData();
391 void displayTypePolicyChanged(
int);
394 void vectorRepresentationPolicyChanged(
int);
399 void initRepresentation() override final {}
405 vtkIdType pickedPointId;
408 vtkIdType pickedCellId;
411 vtkSmartPointer<vtkSelection> currentSelection;
414 QList< vtkSmartPointer<vtkSelectionNode> > selectionList;
423 QWidget* selectionWidget;
426 QAction* removeSelections;
429 QAction* mergeSelection;
432 QAction* inspectSelection;
435 QComboBox* insertionPolicyBox;
447 QComboBox* displayTypePolicyBox;
450 QComboBox* vectorRepresentationPolicyBox;
455 QMap<QString, vtkSmartPointer<vtkDataArray> > specific3DDataRepresentation;
458 unsigned int numberOfCellDataSpecificRepresentation;
461 QMap<vtkSmartPointer<vtkDataArray>,
bool> dataRepresentationVisibility;
464 QStringList vectorActors;
467 void createDataRepresentation(FieldType,
const QString&, SpecificRepresentation representation = VECTOR_3D) ;
470 const QString getDataPropName(FieldType,
const QString&);
473 void setScalarDataRepresentationOn(vtkSmartPointer<vtkDataArray>);
476 static QMap< int, QString > initFieldNames();
479 static QMap< int, QString > initDataNames();
485 QAction* inspectData;