casa
5.7.0-16
|
Small widget to provide a variable number of spinners to create a slice. More...
#include <TBPlotter.qo.h>
Public Member Functions | |
PlotSlicer () | |
Default Constructor. More... | |
~PlotSlicer () | |
bool | setDimension (std::vector< int > *d, bool complex=false) |
Sets the dimensions of the slicer to the given vector. More... | |
bool | setDimension (std::vector< int > *d, bool complex, bool index) |
void | getDimension (std::vector< int > &d, bool &complex, bool &) |
Retrieves the array slice into the given vector. More... | |
void | getDimension (std::vector< int > &d, bool &complex, bool &, int &axis) |
Private Slots | |
void | axisChosen (int axis) |
Private Attributes | |
std::vector< QSpinBox * > | spinners |
All current spinners. More... | |
QComboBox * | complexChooser |
casacore::Complex chooser. More... | |
bool | complex |
Whether the current slice is for a complex or not. More... | |
QSpinBox * | plotAxisChooser |
Spinbox and Label to choose axis. More... | |
QLabel * | axisLabel |
Small widget to provide a variable number of spinners to create a slice.
A PlotSlicer provides a variable number of QSpinBoxes to allow the user to enter an array slice. The number of spinners depends on the dimensionality (i.e., a two-dimensional array will have two spinners). The range of the spinners depends on the array's shape (i.e., a 4x2 array will have a [0, 3] range on the first spinner and a [0, 1] range on the second spinner). A PlotSlicer can also display a QComboBox to allow the user to choose between phase and amplitude for complex numbers.
Definition at line 132 of file TBPlotter.qo.h.
casa::PlotSlicer::PlotSlicer | ( | ) |
Default Constructor.
casa::PlotSlicer::~PlotSlicer | ( | ) |
|
privateslot |
void casa::PlotSlicer::getDimension | ( | std::vector< int > & | d, |
bool & | complex, | ||
bool & | amp | ||
) |
Retrieves the array slice into the given vector.
complex is set to true if the slice is for complex numbers; if complex is true, amp indicates whether the slice is for the amplitude (true) or the phase (false).
void casa::PlotSlicer::getDimension | ( | std::vector< int > & | d, |
bool & | complex, | ||
bool & | amp, | ||
int & | axis | ||
) |
bool casa::PlotSlicer::setDimension | ( | std::vector< int > * | d, |
bool | complex = false |
||
) |
Sets the dimensions of the slicer to the given vector.
If complex is true, a combobox to choose between phase and amplitude is also shown. If index is true, a spinbox to select plot axis is also shown.
bool casa::PlotSlicer::setDimension | ( | std::vector< int > * | d, |
bool | complex, | ||
bool | index | ||
) |
|
private |
Definition at line 166 of file TBPlotter.qo.h.
|
private |
Whether the current slice is for a complex or not.
Definition at line 162 of file TBPlotter.qo.h.
|
private |
casacore::Complex chooser.
Definition at line 159 of file TBPlotter.qo.h.
|
private |
Spinbox and Label to choose axis.
Definition at line 165 of file TBPlotter.qo.h.
|
private |
All current spinners.
Definition at line 156 of file TBPlotter.qo.h.