Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
pqSelectionManager Class Reference

pqSelectionManager is the nexus for introspective surface selection in paraview. More...

#include <pqSelectionManager.h>

Inherits QObject.

Public Slots

void clearSelection (pqOutputPort *outputPort=NULL)
 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)
 Expand/contract selection to include additional layers. More...
 

Signals

void selectionChanged (pqOutputPort *)
 Fired when the selection changes. More...
 

Public Member Functions

 pqSelectionManager (QObject *parent=NULL)
 
 ~pqSelectionManager () override
 
pqOutputPortgetSelectedPort () 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)
 

Detailed Description

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 68 of file pqSelectionManager.h.

Constructor & Destructor Documentation

◆ pqSelectionManager()

pqSelectionManager::pqSelectionManager ( QObject *  parent = NULL)

◆ ~pqSelectionManager()

pqSelectionManager::~pqSelectionManager ( )
override

Member Function Documentation

◆ getSelectedPort()

pqOutputPort* pqSelectionManager::getSelectedPort ( ) const

Returns the first currently selected pqOutputPort, if any.

◆ getSelectedPorts()

const QSet<pqOutputPort*>& pqSelectionManager::getSelectedPorts ( ) const

Return all currently selected pqOutputPort as a QSet, or an empty QSet if there aren't any.

◆ hasActiveSelection()

bool pqSelectionManager::hasActiveSelection ( ) const

Return true if there is at least one currently selected pqOutputPort false otherwise.

◆ selectedDataBounds()

vtkBoundingBox pqSelectionManager::selectedDataBounds ( ) const

Returns the bounding box for all the selected data.

◆ selectionChanged

void pqSelectionManager::selectionChanged ( pqOutputPort )
signal

Fired when the selection changes.

Argument is the pqOutputPort (if any) that was selected. If selection was cleared then the argument is NULL.

◆ clearSelection

void pqSelectionManager::clearSelection ( pqOutputPort outputPort = NULL)
slot

Clear selection on a pqOutputPort.

Calling the method without arguments or with null will clear all selection

◆ setActiveView

void pqSelectionManager::setActiveView ( pqView )
slot

Used to keep track of active render module.

◆ select

void pqSelectionManager::select ( pqOutputPort )
slot

Updates the selected port.

◆ onSourceAdded

void pqSelectionManager::onSourceAdded ( pqPipelineSource )
slot

Set up signal/slot from the pipeline source to the selection manager.

◆ onSourceRemoved

void pqSelectionManager::onSourceRemoved ( pqPipelineSource )
slot

Disconnect signal/slot from the pipeline source to the selection manager.

◆ expandSelection

void pqSelectionManager::expandSelection ( int  layers)
slot

Expand/contract selection to include additional layers.

◆ onSelect()

void pqSelectionManager::onSelect ( pqOutputPort ,
bool  forceGlobalIds 
)
protected

The documentation for this class was generated from the following file: