ParaView
|
pqActiveObjects is a singleton that keeps track of "active objects" including active view, active source, active representation etc. More...
#include <pqActiveObjects.h>
Inherits QObject.
Public Slots | |
void | setActiveView (pqView *view) |
void | setActiveSource (pqPipelineSource *source) |
void | setActivePort (pqOutputPort *port) |
void | setActiveServer (pqServer *) |
void | onActiveServerChanged () |
void | setSelection (const pqProxySelection &selection, pqServerManagerModelItem *current) |
Sets the selected set of proxies. More... | |
Signals | |
void | serverChanged (pqServer *) |
These signals are fired when any of the corresponding active items change. More... | |
void | viewChanged (pqView *view) |
void | sourceChanged (pqPipelineSource *) |
void | portChanged (pqOutputPort *) |
void | representationChanged (pqDataRepresentation *) |
void | representationChanged (pqRepresentation *) |
void | selectionChanged (const pqProxySelection &) |
void | dataUpdated () |
this signal is fired when the active source fires the dataUpdated() signal. More... | |
Public Member Functions | |
pqView * | activeView () const |
Returns the active view. More... | |
pqPipelineSource * | activeSource () const |
Returns the active source. More... | |
pqOutputPort * | activePort () const |
Returns the active port. More... | |
pqServer * | activeServer () const |
Returns the active server. More... | |
pqDataRepresentation * | activeRepresentation () const |
Returns the active representation. More... | |
vtkSMProxySelectionModel * | activeSourcesSelectionModel () const |
const pqProxySelection & | selection () const |
Returns the current source selection. More... | |
vtkSMSessionProxyManager * | proxyManager () const |
Returns the proxyManager() from the active server, if any. More... | |
Static Public Member Functions | |
static pqActiveObjects & | instance () |
Provides access to the singleton. More... | |
Protected Member Functions | |
pqActiveObjects () | |
~pqActiveObjects () | |
void | triggerSignals () |
single method that fires appropriate signals based on state changes. More... | |
pqActiveObjects is a singleton that keeps track of "active objects" including active view, active source, active representation etc.
pqActiveObjects also keeps track of selected sources (known as 'selection'). setActiveSource/setActivePort will affect the selection but not vice-versa (unless dealing with multiple server sessions).
Definition at line 60 of file pqActiveObjects.h.
|
protected |
|
protected |
|
static |
Provides access to the singleton.
|
inline |
Returns the active view.
Definition at line 74 of file pqActiveObjects.h.
|
inline |
Returns the active source.
Definition at line 79 of file pqActiveObjects.h.
|
inline |
Returns the active port.
Definition at line 84 of file pqActiveObjects.h.
|
inline |
Returns the active server.
Definition at line 89 of file pqActiveObjects.h.
|
inline |
Returns the active representation.
Definition at line 94 of file pqActiveObjects.h.
|
inline |
Definition at line 96 of file pqActiveObjects.h.
|
inline |
Returns the current source selection.
Definition at line 104 of file pqActiveObjects.h.
vtkSMSessionProxyManager* pqActiveObjects::proxyManager | ( | ) | const |
Returns the proxyManager() from the active server, if any.
Equivalent to calling this->activeServer()->proxyManager();
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Sets the selected set of proxies.
All proxies in the selection must be on the same server/session. This generally doesn't affect the activeSource etc. unless the server is different from the active server. In which case, the active server is changed before the selection is updated.
|
signal |
These signals are fired when any of the corresponding active items change.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
this signal is fired when the active source fires the dataUpdated() signal.
This is used by components in the GUI that need to be updated when the active source's pipeline updates.
|
protected |
single method that fires appropriate signals based on state changes.
This also ensures that the Cached* variables are updated correctly.