OGS
|
VtkVisPipelineView is a QTreeView and shows VtkVisPipelineItems and their relation to each other.
Definition at line 37 of file VtkVisPipelineView.h.
#include <VtkVisPipelineView.h>
Signals | |
void | requestViewUpdate () |
void | requestRemovePipelineItem (QModelIndex) |
void | requestAddPipelineFilterItem (QModelIndex) |
void | itemSelected (VtkVisPipelineItem *) |
void | actorSelected (vtkProp3D *) |
void | dataObjectSelected (vtkDataObject *) |
void | meshAdded (MeshLib::Mesh *) |
Public Member Functions | |
VtkVisPipelineView (QWidget *parent=nullptr) | |
Constructor. | |
void | setModel (QAbstractItemModel *model) override |
Overridden to set model specific header properties. | |
Protected Slots | |
void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
Emits itemSelected() signals when an items was selected. | |
void | selectItem (vtkProp3D *actor) |
void | selectItem (const QModelIndex &index) |
Private Slots | |
void | addColorTable () |
Adds a color lookup table to the current scalar array of the selected pipeline item. | |
void | exportSelectedPipelineItemAsVtk () |
Exports the currently selected item as a VTK file. | |
void | removeSelectedPipelineItem () |
void | addPipelineFilterItem () |
Sends a requestAddPipelineFilterItem() signal to add a filter. | |
void | showImageToMeshConversionDialog () |
Calls the dialog to. | |
void | convertVTKToOGSMesh () |
Calls the conversion method for making a vtk grid an ogs mesh. | |
void | writeRaster () |
Calls the conversion method for saving this as an *.asc-file. | |
Private Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) override |
Creates a menu on right-clicking on an item. | |
|
explicit |
Constructor.
Definition at line 52 of file VtkVisPipelineView.cpp.
|
signal |
Referenced by selectionChanged().
|
privateslot |
Adds a color lookup table to the current scalar array of the selected pipeline item.
Definition at line 295 of file VtkVisPipelineView.cpp.
References VtkVisPipelineItem::GetActiveAttribute(), requestViewUpdate(), VtkVisPipelineItem::SetActiveAttribute(), and VtkAlgorithmProperties::SetLookUpTable().
Referenced by contextMenuEvent().
|
privateslot |
Sends a requestAddPipelineFilterItem() signal to add a filter.
Definition at line 159 of file VtkVisPipelineView.cpp.
References requestAddPipelineFilterItem().
Referenced by contextMenuEvent().
|
overrideprivate |
Creates a menu on right-clicking on an item.
Definition at line 71 of file VtkVisPipelineView.cpp.
References addColorTable(), addPipelineFilterItem(), VtkVisPipelineItem::algorithm(), convertVTKToOGSMesh(), exportSelectedPipelineItemAsVtk(), TreeModel::getItem(), VtkVisPipelineItem::getVtkProperties(), VtkAlgorithmProperties::IsRemovable(), removeSelectedPipelineItem(), showImageToMeshConversionDialog(), and writeRaster().
|
privateslot |
Calls the conversion method for making a vtk grid an ogs mesh.
Definition at line 210 of file VtkVisPipelineView.cpp.
References VtkVisPipelineItem::algorithm(), MeshLib::VtkMeshConverter::convertUnstructuredGrid(), VtkVisPipelineItem::data(), TreeModel::getItem(), meshAdded(), and MeshLib::Mesh::setName().
Referenced by contextMenuEvent().
|
signal |
Referenced by selectionChanged().
|
privateslot |
Exports the currently selected item as a VTK file.
Definition at line 136 of file VtkVisPipelineView.cpp.
References TreeModel::getItem(), and VtkVisPipelineItem::writeToFile().
Referenced by contextMenuEvent().
|
signal |
Referenced by selectionChanged().
|
signal |
Referenced by convertVTKToOGSMesh(), and showImageToMeshConversionDialog().
|
privateslot |
Sends an requestRemovePipelineItem() signal to remove the currently selected item.
Definition at line 154 of file VtkVisPipelineView.cpp.
References requestRemovePipelineItem().
Referenced by contextMenuEvent().
|
signal |
Referenced by addPipelineFilterItem().
|
signal |
Referenced by removeSelectedPipelineItem().
|
signal |
Referenced by addColorTable().
|
overrideprotectedslot |
Emits itemSelected() signals when an items was selected.
Definition at line 247 of file VtkVisPipelineView.cpp.
References actorSelected(), dataObjectSelected(), and itemSelected().
|
protectedslot |
Definition at line 283 of file VtkVisPipelineView.cpp.
|
protectedslot |
Definition at line 277 of file VtkVisPipelineView.cpp.
References selectItem().
Referenced by selectItem().
|
override |
Overridden to set model specific header properties.
Definition at line 62 of file VtkVisPipelineView.cpp.
|
privateslot |
Calls the dialog to.
Definition at line 164 of file VtkVisPipelineView.cpp.
References VtkVisPipelineItem::algorithm(), OGSError::box(), MeshToolsLib::RasterToMesh::convert(), VtkGeoImageSource::convertToRaster(), MeshFromRasterDialog::getArrayName(), MeshFromRasterDialog::getElementSelection(), MeshFromRasterDialog::getIntensitySelection(), TreeModel::getItem(), MeshFromRasterDialog::getMeshName(), and meshAdded().
Referenced by contextMenuEvent().
|
privateslot |
Calls the conversion method for saving this as an *.asc-file.
Definition at line 202 of file VtkVisPipelineView.cpp.
References TreeModel::getItem(), and VtkVisImageItem::writeAsRaster().
Referenced by contextMenuEvent().