pqRenderViewSelectionReaction handles various selection modes available on RenderViews.
More...
#include <pqRenderViewSelectionReaction.h>
|
enum | SelectionMode {
SELECT_SURFACE_CELLS,
SELECT_SURFACE_POINTS,
SELECT_FRUSTUM_CELLS,
SELECT_FRUSTUM_POINTS,
SELECT_SURFACE_CELLS_POLYGON,
SELECT_SURFACE_POINTS_POLYGON,
SELECT_BLOCKS,
SELECT_FRUSTUM_BLOCKS,
SELECT_CUSTOM_BOX,
SELECT_CUSTOM_POLYGON,
ZOOM_TO_BOX,
CLEAR_SELECTION,
GROW_SELECTION,
SHRINK_SELECTION,
SELECT_SURFACE_POINTDATA_INTERACTIVELY,
SELECT_SURFACE_CELLDATA_INTERACTIVELY,
SELECT_SURFACE_CELLS_INTERACTIVELY,
SELECT_SURFACE_POINTS_INTERACTIVELY,
SELECT_SURFACE_POINTS_TOOLTIP,
SELECT_SURFACE_CELLS_TOOLTIP
} |
|
pqRenderViewSelectionReaction handles various selection modes available on RenderViews.
Simply create multiple instances of pqRenderViewSelectionReaction to handle selection modes for that RenderView. pqRenderViewSelectionReaction uses internal static members to ensure that at most 1 view (and 1 type of selection) is in selection-mode at any given time.
Definition at line 30 of file pqRenderViewSelectionReaction.h.
◆ SelectionMode
Enumerator |
---|
SELECT_SURFACE_CELLS | |
SELECT_SURFACE_POINTS | |
SELECT_FRUSTUM_CELLS | |
SELECT_FRUSTUM_POINTS | |
SELECT_SURFACE_CELLS_POLYGON | |
SELECT_SURFACE_POINTS_POLYGON | |
SELECT_BLOCKS | |
SELECT_FRUSTUM_BLOCKS | |
SELECT_CUSTOM_BOX | |
SELECT_CUSTOM_POLYGON | |
ZOOM_TO_BOX | |
CLEAR_SELECTION | |
GROW_SELECTION | |
SHRINK_SELECTION | |
SELECT_SURFACE_POINTDATA_INTERACTIVELY | |
SELECT_SURFACE_CELLDATA_INTERACTIVELY | |
SELECT_SURFACE_CELLS_INTERACTIVELY | |
SELECT_SURFACE_POINTS_INTERACTIVELY | |
SELECT_SURFACE_POINTS_TOOLTIP | |
SELECT_SURFACE_CELLS_TOOLTIP | |
Definition at line 36 of file pqRenderViewSelectionReaction.h.
◆ pqRenderViewSelectionReaction()
pqRenderViewSelectionReaction::pqRenderViewSelectionReaction |
( |
QAction * |
parentAction, |
|
|
pqRenderView * |
view, |
|
|
SelectionMode |
mode, |
|
|
QActionGroup * |
modifierGroup = nullptr |
|
) |
| |
If view
is nullptr, this reaction will track the active-view maintained by pqActiveObjects.
◆ ~pqRenderViewSelectionReaction()
pqRenderViewSelectionReaction::~pqRenderViewSelectionReaction |
( |
| ) |
|
|
override |
Call CleanupObservers on destruction.
◆ selectedCustomBox [1/2]
void pqRenderViewSelectionReaction::selectedCustomBox |
( |
int |
xmin, |
|
|
int |
ymin, |
|
|
int |
xmax, |
|
|
int |
ymax |
|
) |
| |
|
signal |
Signals emitted when the event happens.
◆ selectedCustomBox [2/2]
void pqRenderViewSelectionReaction::selectedCustomBox |
( |
const int |
region[4] | ) |
|
|
signal |
Signals emitted when the event happens.
◆ selectedCustomPolygon
void pqRenderViewSelectionReaction::selectedCustomPolygon |
( |
vtkIntArray * |
polygon | ) |
|
|
signal |
Signals emitted when the event happens.
◆ actionTriggered
virtual void pqRenderViewSelectionReaction::actionTriggered |
( |
bool |
val | ) |
|
|
protectedvirtualslot |
◆ updateEnableState
void pqRenderViewSelectionReaction::updateEnableState |
( |
| ) |
|
|
overrideprotectedslot |
Handles enable state for the CLEAR_SELECTION
, GROW_SELECTION
, and SHRINK_SELECTION
modes.
◆ setView
virtual void pqRenderViewSelectionReaction::setView |
( |
pqView * |
view | ) |
|
|
protectedvirtualslot |
Called when this object was created with nullptr as the view and the active view changes.
Please note that this method will cast the pqView to a pqRenderView.
◆ setRepresentation
Called when the active representation changes.
◆ beginSelection
virtual void pqRenderViewSelectionReaction::beginSelection |
( |
| ) |
|
|
protectedvirtualslot |
starts the selection i.e.
setup render view in selection mode.
◆ endSelection
virtual void pqRenderViewSelectionReaction::endSelection |
( |
| ) |
|
|
protectedvirtualslot |
finishes the selection.
Doesn't cause the selection, just returns the render view to previous interaction mode.
◆ preSelection
virtual void pqRenderViewSelectionReaction::preSelection |
( |
| ) |
|
|
protectedvirtualslot |
◆ fastPreSelection
virtual void pqRenderViewSelectionReaction::fastPreSelection |
( |
| ) |
|
|
protectedvirtualslot |
makes fast pre-selection.
◆ onMouseStop
virtual void pqRenderViewSelectionReaction::onMouseStop |
( |
| ) |
|
|
protectedvirtualslot |
callback called for mouse stop events when in 'interactive selection' modes.
◆ clearSelectionCache
virtual void pqRenderViewSelectionReaction::clearSelectionCache |
( |
| ) |
|
|
protectedvirtualslot |
clears the selection cache.
◆ selectionChanged()
virtual void pqRenderViewSelectionReaction::selectionChanged |
( |
vtkObject * |
, |
|
|
unsigned |
long, |
|
|
void * |
calldata |
|
) |
| |
|
protectedvirtual |
◆ onMouseMove()
virtual void pqRenderViewSelectionReaction::onMouseMove |
( |
| ) |
|
|
protectedvirtual |
callback called for mouse move events when in 'interactive selection' modes.
◆ onLeftButtonRelease()
virtual void pqRenderViewSelectionReaction::onLeftButtonRelease |
( |
| ) |
|
|
protectedvirtual |
callback called for click events when in 'interactive selection' modes.
◆ onWheelRotate()
virtual void pqRenderViewSelectionReaction::onWheelRotate |
( |
| ) |
|
|
protectedvirtual |
callback called for click events when in 'interactive selection' modes.
◆ onRightButtonPressed()
virtual void pqRenderViewSelectionReaction::onRightButtonPressed |
( |
| ) |
|
|
protectedvirtual |
callback called for click events when in 'interactive selection' modes.
◆ onRightButtonRelease()
virtual void pqRenderViewSelectionReaction::onRightButtonRelease |
( |
| ) |
|
|
protectedvirtual |
callback called for click events when in 'interactive selection' modes.
◆ getSelectionModifier()
int pqRenderViewSelectionReaction::getSelectionModifier |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ isCompatible()
virtual bool pqRenderViewSelectionReaction::isCompatible |
( |
SelectionMode |
mode | ) |
|
|
protectedvirtual |
Check this selection is compatible with another type of selection.
◆ UpdateTooltip()
virtual void pqRenderViewSelectionReaction::UpdateTooltip |
( |
| ) |
|
|
protectedvirtual |
Display/hide the tooltip of the selected point in mode SELECT_SURFACE_POINTS_TOOLTIP.
◆ cleanupObservers()
virtual void pqRenderViewSelectionReaction::cleanupObservers |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following file: