ParaView
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions
pqSelectionInspectorPanel Class Reference

pqSelectionInspectorPanel is a panel that shows shows the active selection. More...

#include <pqSelectionInspectorPanel.h>

Inheritance diagram for pqSelectionInspectorPanel:
Inheritance graph
[legend]

List of all members.

Public Slots

void setServer (pqServer *server)
 Called when active server changes.
void updateEnabledState ()
 Update the enabled state of the panel depending upon the current state of application.

Public Member Functions

 pqSelectionInspectorPanel (QWidget *parent)
 ~pqSelectionInspectorPanel ()
void setSelectionManager (pqSelectionManager *)
 Set the selection manager.

Protected Slots

void select (pqOutputPort *opport, bool createNew=false)
 Called when the active selection changes.
void onSelectionTypeChanged (const QString &)
 Called when the "Selection Type" combo-box is changed.
void onSelectionManagerChanged (pqOutputPort *opport)
 Called when the SelectionManager is changed.
void onFieldTypeChanged (const QString &)
 Called when "Field Type" combo-box changes.
void createSelectionForCurrentObject ()
 Called when the user clicks "Create Selection" button.
void onActiveViewChanged (pqView *)
 Called when the active view changes.
void updatePointLabelMode (const QString &)
void updateCellLabelMode (const QString &)
void updateSelectionLabelEnableState ()
void updateSelectionPointLabelArrayName ()
void updateSelectionCellLabelArrayName ()
void newValue ()
 Called to update the IDs/GlobalIDs/Thresholds table.
void deleteValue ()
void deleteAllValues ()
void updateRepresentationViews ()
 Requests update on on the active view.
void updateAllSelectionViews ()
 Reqeusts render in all views the selection is shown.
void onTableGrown (QTreeWidgetItem *item)
 Called when user navigates beyond the end in the indices table widget.
void onCurrentIndexChanged (QTreeWidgetItem *item)
 Called when the current item in the "Indices" table changes.
void updateLocationWidgets ()
 Update positions of point-handle widgets based on the selection locations.
void updateLocationFromWidgets ()
 Update selection locations based on point-handle widget positions.
void updateFrustum ()
 Called when ShowFrustum checkbox is toggled.
void updateSelectionTypesAvailable ()
 Called to update the types of selections available.
void onSelectionColorChanged (const QColor &color)
 Called when selection color is changed, we save the selection color in settings so that it's preserved across sessions.
void forceLabelGlobalId (vtkObject *caller)

Protected Member Functions

void setupGUI ()
 Sets up the GUI by created default signal/slot bindings etc.
void setupIDSelectionGUI ()
 Sets up the links for the tab showing the details for an ID selection.
void setupGlobalIDSelectionGUI ()
 Sets up the links for the tab showing the defatils for a Global ID selection.
void setupLocationsSelectionGUI ()
 Sets up the GUI for the Locations selection.
void setupBlockSelectionGUI ()
 Sets up the GUI for the Blocks selection.
void setupSelectionLabelGUI ()
void updateSelectionGUI ()
 Sets up property links between the selection source proxy and the GUI.
void updateDisplayStyleGUI ()
 Sets up the property links between the "Display Style" group and the selection representation proxy.
void setupFrustumSelectionGUI ()
void setupThresholdSelectionGUI ()
void updateThreholdDataArrays ()
void createNewSelectionSourceIfNeeded ()
 Create a new selection source for the current output port if no selection source present selection source type is not same as the "Selection Type" combo.
int getContentType () const
 This returns the content type given the "Selection Type".
void removeWidgetsFromView ()
void addWidgetsToView ()
void allocateWidgets (unsigned int numWidgets)
void updateFrustumInternal (bool)
void updateSelectionTypesAvailable (pqOutputPort *opport)
 Called to update the types of selections available.
bool hasGlobalIDs (pqOutputPort *)
 Returns true if the port has GlobalIDs.
void selectGlobalIdsIfPossible (pqOutputPort *opport, bool forceGlobalIds, bool createNew)
void setGlobalIDs ()

Detailed Description

pqSelectionInspectorPanel is a panel that shows shows the active selection.

It makes is possible for the user to view/change the active selection.

Definition at line 55 of file pqSelectionInspectorPanel.h.


Constructor & Destructor Documentation

pqSelectionInspectorPanel::pqSelectionInspectorPanel ( QWidget *  parent)
pqSelectionInspectorPanel::~pqSelectionInspectorPanel ( )

Member Function Documentation

void pqSelectionInspectorPanel::setSelectionManager ( pqSelectionManager )

Set the selection manager.

void pqSelectionInspectorPanel::setServer ( pqServer server) [slot]

Called when active server changes.

We make the decision if process id needs to be shown for the server connection.

void pqSelectionInspectorPanel::updateEnabledState ( ) [slot]

Update the enabled state of the panel depending upon the current state of application.

void pqSelectionInspectorPanel::select ( pqOutputPort opport,
bool  createNew = false 
) [protected, slot]

Called when the active selection changes.

The panel we show the details of the selection source input going into the pqOutputPort passed as an argument. Typically, this is connected to the pqSelectionManager::selectionChanged(pqOutputPort*) signal.

void pqSelectionInspectorPanel::onSelectionTypeChanged ( const QString &  ) [protected, slot]

Called when the "Selection Type" combo-box is changed.

void pqSelectionInspectorPanel::onSelectionManagerChanged ( pqOutputPort opport) [protected, slot]

Called when the SelectionManager is changed.

void pqSelectionInspectorPanel::onFieldTypeChanged ( const QString &  ) [protected, slot]

Called when "Field Type" combo-box changes.

This updates the enabled state of the "Containing Cells" combo-box, since that combo-box only makes sense for point selections.

void pqSelectionInspectorPanel::createSelectionForCurrentObject ( ) [protected, slot]

Called when the user clicks "Create Selection" button.

void pqSelectionInspectorPanel::onActiveViewChanged ( pqView ) [protected, slot]

Called when the active view changes.

void pqSelectionInspectorPanel::updatePointLabelMode ( const QString &  ) [protected, slot]
void pqSelectionInspectorPanel::updateCellLabelMode ( const QString &  ) [protected, slot]
void pqSelectionInspectorPanel::updateSelectionLabelEnableState ( ) [protected, slot]
void pqSelectionInspectorPanel::updateSelectionPointLabelArrayName ( ) [protected, slot]
void pqSelectionInspectorPanel::updateSelectionCellLabelArrayName ( ) [protected, slot]
void pqSelectionInspectorPanel::newValue ( ) [protected, slot]

Called to update the IDs/GlobalIDs/Thresholds table.

void pqSelectionInspectorPanel::deleteValue ( ) [protected, slot]
void pqSelectionInspectorPanel::deleteAllValues ( ) [protected, slot]
void pqSelectionInspectorPanel::updateRepresentationViews ( ) [protected, slot]

Requests update on on the active view.

void pqSelectionInspectorPanel::updateAllSelectionViews ( ) [protected, slot]

Reqeusts render in all views the selection is shown.

void pqSelectionInspectorPanel::onTableGrown ( QTreeWidgetItem *  item) [protected, slot]

Called when user navigates beyond the end in the indices table widget.

We add a new row to simplify editing.

void pqSelectionInspectorPanel::onCurrentIndexChanged ( QTreeWidgetItem *  item) [protected, slot]

Called when the current item in the "Indices" table changes.

If composite tree is visible, we update the composite tree selection to match the current item.

void pqSelectionInspectorPanel::updateLocationWidgets ( ) [protected, slot]

Update positions of point-handle widgets based on the selection locations.

void pqSelectionInspectorPanel::updateLocationFromWidgets ( ) [protected, slot]

Update selection locations based on point-handle widget positions.

void pqSelectionInspectorPanel::updateFrustum ( ) [protected, slot]

Called when ShowFrustum checkbox is toggled.

void pqSelectionInspectorPanel::updateSelectionTypesAvailable ( ) [protected, slot]

Called to update the types of selections available.

void pqSelectionInspectorPanel::onSelectionColorChanged ( const QColor &  color) [protected, slot]

Called when selection color is changed, we save the selection color in settings so that it's preserved across sessions.

void pqSelectionInspectorPanel::forceLabelGlobalId ( vtkObject caller) [protected, slot]
void pqSelectionInspectorPanel::setupGUI ( ) [protected]

Sets up the GUI by created default signal/slot bindings etc.

void pqSelectionInspectorPanel::setupIDSelectionGUI ( ) [protected]

Sets up the links for the tab showing the details for an ID selection.

void pqSelectionInspectorPanel::setupGlobalIDSelectionGUI ( ) [protected]

Sets up the links for the tab showing the defatils for a Global ID selection.

void pqSelectionInspectorPanel::setupLocationsSelectionGUI ( ) [protected]

Sets up the GUI for the Locations selection.

void pqSelectionInspectorPanel::setupBlockSelectionGUI ( ) [protected]

Sets up the GUI for the Blocks selection.

void pqSelectionInspectorPanel::setupSelectionLabelGUI ( ) [protected]
void pqSelectionInspectorPanel::updateSelectionGUI ( ) [protected]

Sets up property links between the selection source proxy and the GUI.

void pqSelectionInspectorPanel::updateDisplayStyleGUI ( ) [protected]

Sets up the property links between the "Display Style" group and the selection representation proxy.

void pqSelectionInspectorPanel::setupFrustumSelectionGUI ( ) [protected]
void pqSelectionInspectorPanel::setupThresholdSelectionGUI ( ) [protected]
void pqSelectionInspectorPanel::updateThreholdDataArrays ( ) [protected]
void pqSelectionInspectorPanel::createNewSelectionSourceIfNeeded ( ) [protected]

Create a new selection source for the current output port if no selection source present selection source type is not same as the "Selection Type" combo.

int pqSelectionInspectorPanel::getContentType ( ) const [protected]

This returns the content type given the "Selection Type".

void pqSelectionInspectorPanel::removeWidgetsFromView ( ) [protected]
void pqSelectionInspectorPanel::addWidgetsToView ( ) [protected]
void pqSelectionInspectorPanel::allocateWidgets ( unsigned int  numWidgets) [protected]
void pqSelectionInspectorPanel::updateFrustumInternal ( bool  ) [protected]
void pqSelectionInspectorPanel::updateSelectionTypesAvailable ( pqOutputPort opport) [protected]

Called to update the types of selections available.

bool pqSelectionInspectorPanel::hasGlobalIDs ( pqOutputPort ) [protected]

Returns true if the port has GlobalIDs.

void pqSelectionInspectorPanel::selectGlobalIdsIfPossible ( pqOutputPort opport,
bool  forceGlobalIds,
bool  createNew 
) [protected]
void pqSelectionInspectorPanel::setGlobalIDs ( ) [protected]

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