casa
5.7.0-16
|
Holds the QtCanvas where the spectral profile is drawn. More...
#include <CanvasHolder.qo.h>
Public Types | |
enum | LegendLocation { CANVAS, CANVAS_BELOW, CANVAS_RIGHT } |
Location of the legend. More... | |
Public Member Functions | |
CanvasHolder (QWidget *parent=0) | |
void | setShowLegend (bool showLegend) |
Sets the visibility of the the legend. More... | |
void | setColorBarVisibility (bool visible) |
Determines whether a color bar will be drawn along side the legend text. More... | |
QList< QString > | getCurveLabels () |
Returns a list of curve identifiers. More... | |
void | setCurveLabels (const QList< QString > &curveNames) |
Sets the curve identifier. More... | |
void | setLegendPosition (int location) |
QtCanvas * | getCanvas () |
~CanvasHolder () | |
Private Slots | |
void | changeLegendDisplay () |
Private Member Functions | |
void | refreshLegend () |
void | addLegend (QBoxLayout *innerLayout, QBoxLayout *outerLayout) |
void | addHorizontalLegend (QBoxLayout *verticalLayout) |
void | addVerticalLegend (QBoxLayout *verticalLayout) |
Private Attributes | |
Ui::CanvasHolderClass | ui |
bool | showLegend |
bool | colorBarVisible |
LegendLocation | legendLocation |
QtCanvas | pixelCanvas |
QWidget * | legend |
QWidget * | centralWidget |
Holds the QtCanvas where the spectral profile is drawn.
When a legend external to the canvas is shown, this class handles the legend and the coordination between the legend and the pixel canvas.
Definition at line 39 of file CanvasHolder.qo.h.
Location of the legend.
Enumerator | |
---|---|
CANVAS | |
CANVAS_BELOW | |
CANVAS_RIGHT |
Definition at line 60 of file CanvasHolder.qo.h.
casa::CanvasHolder::CanvasHolder | ( | QWidget * | parent = 0 | ) |
casa::CanvasHolder::~CanvasHolder | ( | ) |
|
private |
|
private |
|
private |
|
privateslot |
QtCanvas* casa::CanvasHolder::getCanvas | ( | ) |
QList<QString> casa::CanvasHolder::getCurveLabels | ( | ) |
Returns a list of curve identifiers.
|
private |
void casa::CanvasHolder::setColorBarVisibility | ( | bool | visible | ) |
Determines whether a color bar will be drawn along side the legend text.
When a color bar is not used, the text will be colored to identify the curve.
void casa::CanvasHolder::setCurveLabels | ( | const QList< QString > & | curveNames | ) |
Sets the curve identifier.
void casa::CanvasHolder::setLegendPosition | ( | int | location | ) |
void casa::CanvasHolder::setShowLegend | ( | bool | showLegend | ) |
Sets the visibility of the the legend.
|
private |
Definition at line 80 of file CanvasHolder.qo.h.
|
private |
Definition at line 76 of file CanvasHolder.qo.h.
|
private |
Definition at line 79 of file CanvasHolder.qo.h.
|
private |
Definition at line 77 of file CanvasHolder.qo.h.
|
private |
Definition at line 78 of file CanvasHolder.qo.h.
|
private |
Definition at line 75 of file CanvasHolder.qo.h.
|
private |
Definition at line 74 of file CanvasHolder.qo.h.