VAPoR  3.0.0
Classes | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
VAPoR::IsolineEventRouter Class Reference

An EventRouter subclass that handles the Contours tab in the GUI. More...

#include <isolineeventrouter.h>

Inheritance diagram for VAPoR::IsolineEventRouter:
VAPoR::EventRouter

Public Member Functions

 IsolineEventRouter (QWidget *parent)
 
virtual ~IsolineEventRouter ()
 
virtual void hookUpTab ()
 Required method: Connect signals and slots from tab. More...
 
virtual MappingFramegetMappingFrame ()
 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...
 
- Public Member Functions inherited from VAPoR::EventRouter
 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)
 

Static Public Member Functions

static EventRouterCreateTab ()
 
- Static Public Member Functions inherited from VAPoR::EventRouter
static void SetVizWinMgr (VizWinMgr *vizMgr)
 
static void SetDataMgr (DataMgrV3_0 *dataMgr)
 
static void SetMainForm (MainForm *mainForm)
 
static DataMgrV3_0GetDataMgr ()
 Obtain the current DataMgr. More...
 

Protected Slots

void changeExtents ()
 Respond to Box change. Required when using BoxSliderFrame. More...
 
void isolineCenterRegion ()
 Respond to user re-centerering the region based on selected point. More...
 
void isolineCenterView ()
 Respond to user re-centerering the view based on selected point. More...
 
void isolineCenterRake ()
 Respond to user re-centerering the flow rake based on selected point. More...
 
void CenterIsolines ()
 Respond to user re-centerering the contour plane based on current selected point. More...
 
void SetSingleColor ()
 Respond when User chooses a constant color. More...
 
void SetUseSingleColor (bool val)
 
void EnableText (bool val)
 
void textTypeChanged (int type)
 
void SpaceIsovalues ()
 Uniformly space the isovalues in the histo interval. More...
 
void EditIsovalues ()
 Bring up an editor listing the current isovalues. More...
 
void SetIsolineDensity ()
 Respond when user specifies the text annotation density. More...
 
void isolineLoadTF ()
 Load a transfer function specifying isoline colors. Not currently available. More...
 
void isolineLoadInstalledTF ()
 Load an installed transfer function. Not currently available. More...
 
void isolineSaveTF ()
 Save the current color map as a transfer function. Not currently available. More...
 
void StartChangeIsoSelection (QString)
 respond when User has started to drag an isovalue in the iso selection frame More...
 
void EndChangeIsoSelection ()
 Respond to completion of User dragging isovalue. More...
 
void copyToProbeOr2D ()
 respond when User clicks "copy To" button, which is either for Probe or 2D Data. More...
 
void isolineAddSeed ()
 Respond to adding the current point as a flow seed. More...
 
void isolineAttachSeed (bool attach)
 
void SetPanelBackgroundColor ()
 Respond to request to choose image background color. More...
 
void setIsolineTabTextChanged (const QString &qs)
 
void isolineReturnPressed ()
 Respond when user clicks <enter> over a QLineEdit. More...
 
virtual void invalidateRenderer (RenderParams *iParams)
 

Additional Inherited Members

- Protected Member Functions inherited from VAPoR::EventRouter
vector< QAction * > * makeWebHelpActions (const char *text[], const char *urls[])
 
virtual float calcCurrentValue (RenderParams *p, const double point[3])
 
ParamsGetActiveParams ()
 
ParamsGetActiveParams (string tag)
 
int GetActiveVizIndex ()
 
void ForceRender (bool always=false)
 
VisualizerGetActiveVisualizer ()
 Identify the currently active Visualizer instance. More...
 
- Static Protected Member Functions inherited from VAPoR::EventRouter
static EventRouterGetEventRouter (const std::string &tag)
 

Detailed Description

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.

Constructor & Destructor Documentation

VAPoR::IsolineEventRouter::IsolineEventRouter ( QWidget *  parent)
virtual VAPoR::IsolineEventRouter::~IsolineEventRouter ( )
virtual

Member Function Documentation

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]buttonis 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

Respond to Box change. Required when using BoxSliderFrame.

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

static create method (required for extensibility)

Returns
a new instance of an IsolineEventRouter

Definition at line 68 of file isolineeventrouter.h.

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]valset 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

Respond to cursor end-change in ImageFrame.

Reimplemented from VAPoR::EventRouter.

virtual MappingFrame* VAPoR::IsolineEventRouter::getMappingFrame ( )
inlinevirtual

The Isoline tab uses a mapping frame for iso selection.

Reimplemented from VAPoR::EventRouter.

Definition at line 77 of file isolineeventrouter.h.

virtual void VAPoR::IsolineEventRouter::hookUpTab ( )
virtual

Required method: Connect signals and slots from tab.

Implements VAPoR::EventRouter.

virtual void VAPoR::IsolineEventRouter::invalidateRenderer ( RenderParams iParams)
protectedvirtualslot

Invalidate the current isoline renderer, forcing rebuild of the cache.

Parameters
[in]iParamsIsolineParams* 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]attachis 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]nameis 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]dimis 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]qsis 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]trueif 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

Respond to cursor start-change in the ImageFrame.

Reimplemented from VAPoR::EventRouter.

void VAPoR::IsolineEventRouter::textTypeChanged ( int  type)
protectedslot

Respond when User selects what kind of text label to use

Parameters
[in]typeis 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: