ParaView
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 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...
 

Signals

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

Public Member Functions

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

Protected Member Functions

void onSelect (pqOutputPort *, bool forceGlobalIds)
 

Detailed Description

pqSelectionManager is the nexus for introspective surface selection in

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()

virtual pqSelectionManager::~pqSelectionManager ( )
virtual

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.

◆ 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.

◆ onSelect()

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

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