A QFrame that contains sliders and text boxes controlling the extents of a box.
More...
#include <boxsliderframe.h>
A QFrame that contains sliders and text boxes controlling the extents of a box.
- Author
- Alan Norton
- Version
- 3.0
- Date
- May 2015 This QFrame should be embedded in various EventRouter .ui files to support controlling box extents. EventRouter implementors must do the following:
If a slider or text box should not be displayed, invoke hide() on that gui element in the
EventRouter constructor. In EventRouter::updateTab(), invoke setFullDomain(), setBoxExtents(), setNumRefinements() and setVariableName()
based on the current state of the Box. Whenever the box extents are changed in the GUI (outside the BoxSliderFrame), invoke setBoxExtents().
Whenever the refinement level is changed in the GUI, invoke setNumRefinements()
Implement the slot EventRouter::changeExtents() and connect it to the signal BoxSliderFrame::changeExtents().
Definition at line 50 of file boxsliderframe.h.
VAPoR::BoxSliderFrame::BoxSliderFrame |
( |
QWidget * |
parent = 0 | ) |
|
VAPoR::BoxSliderFrame::~BoxSliderFrame |
( |
| ) |
|
void VAPoR::BoxSliderFrame::extentsChanged |
( |
| ) |
|
|
signal |
- See also
- This signal indicates that the user has changed the extents of the box, and the eventRouter must respond to this change. This signal must be connected to the changeExtents() slot of the EventRouter.
void VAPoR::BoxSliderFrame::getBoxExtents |
( |
double |
[6] | ) |
|
Identify the current extents of the box in user coordinates. Should be invoked in EventRouter::changeExtents() to update the current extents after a change.
void VAPoR::BoxSliderFrame::setBoxExtents |
( |
const std::vector< double > & |
minExts, |
|
|
const std::vector< double > & |
maxExts |
|
) |
| |
Specify the box extents associated with the box slider.
- Parameters
-
[in] | minExts | vector<double> of minimum box extents |
[in] | maxExts | vector<double> of maximum box extents |
void VAPoR::BoxSliderFrame::setFullDomain |
( |
const double |
exts[6] | ) |
|
Specify the full domain of the data in which the box extents reside
- Parameters
-
[in] | exts | double[6] array of extents |
void VAPoR::BoxSliderFrame::setNumRefinements |
( |
int |
numrefs | ) |
|
|
inline |
Specify the number of refinements of the extent-defining variable to be used in identifying the voxel size.
- Parameters
-
[in] | numrefs | Number of refinements. |
Definition at line 77 of file boxsliderframe.h.
void VAPoR::BoxSliderFrame::setVariableName |
( |
std::string |
vname | ) |
|
|
inline |
Specify the variable whose extents define the domain of the box.
- Parameters
-
Definition at line 72 of file boxsliderframe.h.
The documentation for this class was generated from the following file: