VAPoR  3.0.0
Public Member Functions | Protected Slots | List of all members
VAPoR::VariablesWidget Class Reference

A Widget that can be reused to provide a variable selection tab in any renderer EventRouter class. More...

#include <variablesWidget.h>

Inheritance diagram for VAPoR::VariablesWidget:

Public Member Functions

 VariablesWidget (QWidget *parent)
 
virtual ~VariablesWidget ()
 
void updateTab (RenderParams *rp)
 
void reinitTab (bool doOverride)
 

Protected Slots

void setNumRefinements (int num)
 Connected to the refinement selector, setting the refinement index. More...
 
void setCompRatio (int num)
 Connected to the compression ratio selector, setting the lod index. More...
 
void SetFidelity (int buttonID)
 Connected to the fidelity button selector, setting the fidelity index. More...
 
void SetFidelityDefault ()
 Connected to the fidelity setDefault button, setting current fidelity as default. More...
 
void setVarNum (int)
 Respond to selecting the single (primary) variable of field. More...
 
void setXVarNum (int)
 Respond to selecting the x component variable of field. More...
 
void setYVarNum (int)
 Respond to selecting the y component variable of field. More...
 
void setZVarNum (int)
 Respond to selecting the z component variable of field. More...
 
void setHeightVarNum (int)
 Respond to selecting the HGT variable. More...
 
void setVariableDims (int)
 Respond to choosing the variable dimension. More...
 

Detailed Description

A Widget that can be reused to provide a variable selection tab in any renderer EventRouter class.

The VariablesWidget class handles all setting and getting of state in a variables sub-tab of a renderer EventRouter. Implementers of new tabs in vaporgui can insert one of these widgets as a tab in the renderer tab. Implement this as follows:

The EventRouter must provide a VariableWidget* as a member of the EventRouter. It is necessary to construct the VariablesWidget in the EventRouter constructor, and add it as a tab to the EventRouter.

Issue QFrame::hide() for the various unused frames in this Widget in the EventRouter constructor. Call VariablesWidget::updateTab() in EventRouter::updateTab() Call VariablesWidget::reinitTab() in EventRouter::reinitTab().

Author
Alan Norton
Version
3.0
Date
June 2015

Definition at line 34 of file variablesWidget.h.

Constructor & Destructor Documentation

VAPoR::VariablesWidget::VariablesWidget ( QWidget *  parent)
virtual VAPoR::VariablesWidget::~VariablesWidget ( )
inlinevirtual

Definition at line 41 of file variablesWidget.h.

Member Function Documentation

void VAPoR::VariablesWidget::reinitTab ( bool  doOverride)

Provide initial setup of the VariablesWidget, to be called from EventRouter::reinitTab().

Parameters
[in]doOverridetrue if revert to default settings.
void VAPoR::VariablesWidget::setCompRatio ( int  num)
protectedslot

Connected to the compression ratio selector, setting the lod index.

void VAPoR::VariablesWidget::SetFidelity ( int  buttonID)
protectedslot

Connected to the fidelity button selector, setting the fidelity index.

void VAPoR::VariablesWidget::SetFidelityDefault ( )
protectedslot

Connected to the fidelity setDefault button, setting current fidelity as default.

void VAPoR::VariablesWidget::setHeightVarNum ( int  )
protectedslot

Respond to selecting the HGT variable.

void VAPoR::VariablesWidget::setNumRefinements ( int  num)
protectedslot

Connected to the refinement selector, setting the refinement index.

void VAPoR::VariablesWidget::setVariableDims ( int  )
protectedslot

Respond to choosing the variable dimension.

void VAPoR::VariablesWidget::setVarNum ( int  )
protectedslot

Respond to selecting the single (primary) variable of field.

void VAPoR::VariablesWidget::setXVarNum ( int  )
protectedslot

Respond to selecting the x component variable of field.

void VAPoR::VariablesWidget::setYVarNum ( int  )
protectedslot

Respond to selecting the y component variable of field.

void VAPoR::VariablesWidget::setZVarNum ( int  )
protectedslot

Respond to selecting the z component variable of field.

void VAPoR::VariablesWidget::updateTab ( RenderParams rp)

Update all the gui elements in the VariablesWidget, based on a RenderParams instance. Should be called from EventRouter::updateTab()

Parameters
[in]rpRenderParams instance with values to be presented.

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