An EventRouter subclass that handles the Contours tab in the GUI.
More...
#include <isolineeventrouter.h>
|
| IsolineEventRouter (QWidget *parent) |
|
virtual | ~IsolineEventRouter () |
|
virtual void | hookUpTab () |
| Required method: Connect signals and slots from tab. More...
|
|
virtual MappingFrame * | getMappingFrame () |
| The Isoline tab uses a mapping frame for iso selection. More...
|
|
virtual void | captureMouseDown (int button) |
|
virtual void | captureMouseUp () |
|
virtual void | updateMapBounds (RenderParams *rParams) |
|
void | sessionLoadTF (QString *name) |
|
bool | seedIsAttached () |
|
virtual void | StartCursorMove () |
| Respond to cursor start-change in the ImageFrame. More...
|
|
virtual void | EndCursorMove () |
| Respond to cursor end-change in ImageFrame. More...
|
|
void | CopyRegionToIsoline () |
| Copy the current image extents to the Contour extents. More...
|
|
virtual void | SetDimension (int dim) |
|
virtual void | variableChanged () |
| Override the default because isoControl must be updated. More...
|
|
| EventRouter () |
|
void | updateTab () |
|
virtual void | confirmText () |
|
void | reinitTab (bool doOverride) |
|
virtual void | updateUrgentTabState () |
|
void | SetTextChanged (bool on) |
|
string | getTag () |
|
virtual void | updateRenderer (RenderParams *rp, bool wasEnabled, int instance, bool newVis) |
|
virtual void | cleanParams (Params *rp) |
|
virtual void | sessionLoadTF (string name) |
|
virtual void | SetLocal (Params *p, bool lg) |
|
virtual void | SetEnabled (bool On, int instance) |
|
virtual void | setEditorDirty (RenderParams *) |
|
void | saveTF (RenderParams *rParams) |
|
void | fileSaveTF (RenderParams *rParams) |
|
void | loadInstalledTF (RenderParams *rParams, string varname) |
|
void | loadTF (RenderParams *rParams, string varname) |
|
void | fileLoadTF (RenderParams *rParams, string varname, const char *startPath, bool savePath) |
|
virtual Histo * | getHistogram (RenderParams *rParam, bool mustGet, bool isIsoWin=false) |
|
void | refresh2DHistogram (RenderParams *) |
|
void | calcSliceHistogram (RenderParams *rp, int ts, Histo *histo) |
|
virtual void | invalidateRenderer (RenderParams *rParams) |
|
An EventRouter subclass that handles the Contours tab in the GUI.
- Author
- Alan Norton
- Version
- 3.0
- Date
- May 2015 The IsolineEventRouter class manages the Contours gui. There are five sub-tabs, for variables, layout, appearance, image, and isovalues. A BoxSliderFrame is embedded in the layout tab. An ImageFrame displays a 2D image of the contours, with a cursor A MappingFrame displays the isovalues, as an IsoControl, with a color map.
Definition at line 60 of file isolineeventrouter.h.
VAPoR::IsolineEventRouter::IsolineEventRouter |
( |
QWidget * |
parent | ) |
|
virtual VAPoR::IsolineEventRouter::~IsolineEventRouter |
( |
| ) |
|
|
virtual |
virtual void VAPoR::IsolineEventRouter::captureMouseDown |
( |
int |
button | ) |
|
|
virtual |
Respond to mouse move in manipulator. Note: This will just ignore text changes on mouse press because users could have changed extents and this would confuse the manipulator.
- Parameters
-
[in] | button | is index of button pressed: 1,2, or 3. (left, right, middle) |
Reimplemented from VAPoR::EventRouter.
virtual void VAPoR::IsolineEventRouter::captureMouseUp |
( |
| ) |
|
|
virtual |
When the mouse is released, must force rerender, plus all elements of the Gui that changed (image, extents) must be updated
Reimplemented from VAPoR::EventRouter.
void VAPoR::IsolineEventRouter::CenterIsolines |
( |
| ) |
|
|
protectedslot |
Respond to user re-centerering the contour plane based on current selected point.
void VAPoR::IsolineEventRouter::changeExtents |
( |
| ) |
|
|
protectedslot |
void VAPoR::IsolineEventRouter::CopyRegionToIsoline |
( |
| ) |
|
Copy the current image extents to the Contour extents.
void VAPoR::IsolineEventRouter::copyToProbeOr2D |
( |
| ) |
|
|
protectedslot |
respond when User clicks "copy To" button, which is either for Probe or 2D Data.
static EventRouter* VAPoR::IsolineEventRouter::CreateTab |
( |
| ) |
|
|
inlinestatic |
void VAPoR::IsolineEventRouter::EditIsovalues |
( |
| ) |
|
|
protectedslot |
Bring up an editor listing the current isovalues.
void VAPoR::IsolineEventRouter::EnableText |
( |
bool |
val | ) |
|
|
protectedslot |
Respond when User turns on or off text annotation
- Parameters
-
[in] | val | set true if text is to be enabled. |
void VAPoR::IsolineEventRouter::EndChangeIsoSelection |
( |
| ) |
|
|
protectedslot |
Respond to completion of User dragging isovalue.
virtual void VAPoR::IsolineEventRouter::EndCursorMove |
( |
| ) |
|
|
virtual |
virtual MappingFrame* VAPoR::IsolineEventRouter::getMappingFrame |
( |
| ) |
|
|
inlinevirtual |
virtual void VAPoR::IsolineEventRouter::hookUpTab |
( |
| ) |
|
|
virtual |
virtual void VAPoR::IsolineEventRouter::invalidateRenderer |
( |
RenderParams * |
iParams | ) |
|
|
protectedvirtualslot |
Invalidate the current isoline renderer, forcing rebuild of the cache.
- Parameters
-
[in] | iParams | IsolineParams* that is associated with the contour renderer. |
void VAPoR::IsolineEventRouter::isolineAddSeed |
( |
| ) |
|
|
protectedslot |
Respond to adding the current point as a flow seed.
void VAPoR::IsolineEventRouter::isolineAttachSeed |
( |
bool |
attach | ) |
|
|
protectedslot |
Respond to (de)attaching the current point to the current seed.
- Parameters
-
[in] | attach | is true if seed is being attached. |
void VAPoR::IsolineEventRouter::isolineCenterRake |
( |
| ) |
|
|
protectedslot |
Respond to user re-centerering the flow rake based on selected point.
void VAPoR::IsolineEventRouter::isolineCenterRegion |
( |
| ) |
|
|
protectedslot |
Respond to user re-centerering the region based on selected point.
void VAPoR::IsolineEventRouter::isolineCenterView |
( |
| ) |
|
|
protectedslot |
Respond to user re-centerering the view based on selected point.
void VAPoR::IsolineEventRouter::isolineLoadInstalledTF |
( |
| ) |
|
|
protectedslot |
Load an installed transfer function. Not currently available.
void VAPoR::IsolineEventRouter::isolineLoadTF |
( |
| ) |
|
|
protectedslot |
Load a transfer function specifying isoline colors. Not currently available.
void VAPoR::IsolineEventRouter::isolineReturnPressed |
( |
| ) |
|
|
protectedslot |
Respond when user clicks <enter> over a QLineEdit.
void VAPoR::IsolineEventRouter::isolineSaveTF |
( |
| ) |
|
|
protectedslot |
Save the current color map as a transfer function. Not currently available.
bool VAPoR::IsolineEventRouter::seedIsAttached |
( |
| ) |
|
|
inline |
Method used when positioning flow seeds
- Returns
- true if seed is attached.
Definition at line 98 of file isolineeventrouter.h.
void VAPoR::IsolineEventRouter::sessionLoadTF |
( |
QString * |
name | ) |
|
Method to load a TransferFunction that is in the session.
- Parameters
-
[in] | name | is the name used in the session to identify the transfer function |
virtual void VAPoR::IsolineEventRouter::SetDimension |
( |
int |
dim | ) |
|
|
virtual |
Respond to user changing the dimension (2 or 3). Make any gui changes needed beyond updating the variable combos. Note: RenderParams will already be updated.
- Parameters
-
[in] | dim | is new dimension (2 or 3) |
Reimplemented from VAPoR::EventRouter.
void VAPoR::IsolineEventRouter::SetIsolineDensity |
( |
| ) |
|
|
protectedslot |
Respond when user specifies the text annotation density.
void VAPoR::IsolineEventRouter::setIsolineTabTextChanged |
( |
const QString & |
qs | ) |
|
|
protectedslot |
Slot that is invoked whenever user changes text in a QLineEdit
- Parameters
-
[in] | qs | is the QString that is the changed value |
void VAPoR::IsolineEventRouter::SetPanelBackgroundColor |
( |
| ) |
|
|
protectedslot |
Respond to request to choose image background color.
void VAPoR::IsolineEventRouter::SetSingleColor |
( |
| ) |
|
|
protectedslot |
Respond when User chooses a constant color.
void VAPoR::IsolineEventRouter::SetUseSingleColor |
( |
bool |
val | ) |
|
|
protectedslot |
Respond when User selects whether to use single color or color map
- Parameters
-
[in] | true | if single color is used |
void VAPoR::IsolineEventRouter::SpaceIsovalues |
( |
| ) |
|
|
protectedslot |
Uniformly space the isovalues in the histo interval.
void VAPoR::IsolineEventRouter::StartChangeIsoSelection |
( |
QString |
| ) |
|
|
protectedslot |
respond when User has started to drag an isovalue in the iso selection frame
virtual void VAPoR::IsolineEventRouter::StartCursorMove |
( |
| ) |
|
|
virtual |
void VAPoR::IsolineEventRouter::textTypeChanged |
( |
int |
type | ) |
|
|
protectedslot |
Respond when User selects what kind of text label to use
- Parameters
-
[in] | type | is 0 - Billboard, 1 - in-plane, 2 - 3D |
virtual void VAPoR::IsolineEventRouter::updateMapBounds |
( |
RenderParams * |
rParams | ) |
|
|
virtual |
Method that must be provided if there is a transfer function or isocontrol. Response to user changing the map bounds
Reimplemented from VAPoR::EventRouter.
virtual void VAPoR::IsolineEventRouter::variableChanged |
( |
| ) |
|
|
virtual |
Override the default because isoControl must be updated.
Reimplemented from VAPoR::EventRouter.
The documentation for this class was generated from the following file: