casa
$Rev:20696$
|
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. | |
void | setColorBarVisibility (bool visible) |
Determines whether a color bar will be drawn along side the legend text. | |
QList< QString > | getCurveLabels () |
Returns a list of curve identifiers. | |
void | setCurveLabels (const QList< QString > &curveNames) |
Sets the curve identifier. | |
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.
Definition at line 61 of file CanvasHolder.qo.h.
casa::CanvasHolder::CanvasHolder | ( | QWidget * | parent = 0 | ) |
void casa::CanvasHolder::addHorizontalLegend | ( | QBoxLayout * | verticalLayout | ) | [private] |
void casa::CanvasHolder::addLegend | ( | QBoxLayout * | innerLayout, |
QBoxLayout * | outerLayout | ||
) | [private] |
void casa::CanvasHolder::addVerticalLegend | ( | QBoxLayout * | verticalLayout | ) | [private] |
void casa::CanvasHolder::changeLegendDisplay | ( | ) | [private, slot] |
QList<QString> casa::CanvasHolder::getCurveLabels | ( | ) |
Returns a list of curve identifiers.
void casa::CanvasHolder::refreshLegend | ( | ) | [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.
QWidget* casa::CanvasHolder::centralWidget [private] |
Definition at line 81 of file CanvasHolder.qo.h.
bool casa::CanvasHolder::colorBarVisible [private] |
Definition at line 77 of file CanvasHolder.qo.h.
QWidget* casa::CanvasHolder::legend [private] |
Definition at line 80 of file CanvasHolder.qo.h.
Definition at line 78 of file CanvasHolder.qo.h.
QtCanvas casa::CanvasHolder::pixelCanvas [private] |
Definition at line 79 of file CanvasHolder.qo.h.
bool casa::CanvasHolder::showLegend [private] |
Definition at line 76 of file CanvasHolder.qo.h.
Ui::CanvasHolderClass casa::CanvasHolder::ui [private] |
Definition at line 75 of file CanvasHolder.qo.h.