pqSelectionManager is the nexus for introspective surface selection in paraview. More...
#include <pqSelectionManager.h>
Inherits QObject.
Public Slots | |
void | clearSelection (pqOutputPort *outputPort=nullptr) |
Clear selection on a pqOutputPort. More... | |
void | setActiveView (pqView *) |
Used to keep track of active render module. More... | |
void | select (pqOutputPort *) |
Updates the selected port. More... | |
void | onSourceAdded (pqPipelineSource *) |
Set up signal/slot from the pipeline source to the selection manager. More... | |
void | onSourceRemoved (pqPipelineSource *) |
Disconnect signal/slot from the pipeline source to the selection manager. More... | |
void | expandSelection (int layers, bool removeSeed=false, bool removeIntermediateLayers=false) |
Expand/contract the selection to include additional layers. More... | |
Signals | |
void | selectionChanged (pqOutputPort *) |
Fired when the selection changes. More... | |
Public Member Functions | |
pqSelectionManager (QObject *parent=nullptr) | |
~pqSelectionManager () override | |
pqOutputPort * | getSelectedPort () const |
Returns the first currently selected pqOutputPort, if any. More... | |
const QSet< pqOutputPort * > & | getSelectedPorts () const |
Return all currently selected pqOutputPort as a QSet, or an empty QSet if there aren't any. More... | |
bool | hasActiveSelection () const |
Return true if there is at least one currently selected pqOutputPort false otherwise. More... | |
vtkBoundingBox | selectedDataBounds () const |
Returns the bounding box for all the selected data. More... | |
Protected Member Functions | |
void | onSelect (pqOutputPort *, bool forceGlobalIds) |
pqSelectionManager is the nexus for introspective surface selection in paraview.
It responds to UI events to tell the servermanager to setup for making selections. It watches the servermanager's state to see if the selection parameters are changed (either from the UI or from playback) and tells the servermanager to perform the requested selection. It is also the link between the server manager level selection and the GUI, converting servermanager selection result datastructures into pq/Qt level selection datastructures so that all views can be synchronized and show the same selection in their own manner.
Definition at line 39 of file pqSelectionManager.h.
pqSelectionManager::pqSelectionManager | ( | QObject * | parent = nullptr | ) |
|
override |
pqOutputPort* pqSelectionManager::getSelectedPort | ( | ) | const |
Returns the first currently selected pqOutputPort, if any.
const QSet<pqOutputPort*>& pqSelectionManager::getSelectedPorts | ( | ) | const |
Return all currently selected pqOutputPort as a QSet, or an empty QSet if there aren't any.
bool pqSelectionManager::hasActiveSelection | ( | ) | const |
Return true if there is at least one currently selected pqOutputPort false otherwise.
vtkBoundingBox pqSelectionManager::selectedDataBounds | ( | ) | const |
Returns the bounding box for all the selected data.
|
signal |
Fired when the selection changes.
Argument is the pqOutputPort (if any) that was selected. If selection was cleared then the argument is nullptr.
|
slot |
Clear selection on a pqOutputPort.
Calling the method without arguments or with nullptr will clear all selection
|
slot |
Used to keep track of active render module.
|
slot |
Updates the selected port.
|
slot |
Set up signal/slot from the pipeline source to the selection manager.
|
slot |
Disconnect signal/slot from the pipeline source to the selection manager.
|
slot |
Expand/contract the selection to include additional layers.
This cannot shrink the initial selection seed. Set layers to control the number of layers to expand/contract from current selection Set removeSeed to remove the initial selection seed Set removeIntermediateLayers to remove intermediate expand layers
|
protected |