casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::CanvasHolder Class Reference

Holds the QtCanvas where the spectral profile is drawn. More...

#include <CanvasHolder.qo.h>

Inheritance diagram for casa::CanvasHolder:

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)
 
QtCanvasgetCanvas ()
 
 ~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
 

Detailed Description

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.

Member Enumeration Documentation

Location of the legend.

Enumerator
CANVAS 
CANVAS_BELOW 
CANVAS_RIGHT 

Definition at line 60 of file CanvasHolder.qo.h.

Constructor & Destructor Documentation

casa::CanvasHolder::CanvasHolder ( QWidget *  parent = 0)
casa::CanvasHolder::~CanvasHolder ( )

Member Function Documentation

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 ( )
privateslot
QtCanvas* casa::CanvasHolder::getCanvas ( )
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.

Member Data Documentation

QWidget* casa::CanvasHolder::centralWidget
private

Definition at line 80 of file CanvasHolder.qo.h.

bool casa::CanvasHolder::colorBarVisible
private

Definition at line 76 of file CanvasHolder.qo.h.

QWidget* casa::CanvasHolder::legend
private

Definition at line 79 of file CanvasHolder.qo.h.

LegendLocation casa::CanvasHolder::legendLocation
private

Definition at line 77 of file CanvasHolder.qo.h.

QtCanvas casa::CanvasHolder::pixelCanvas
private

Definition at line 78 of file CanvasHolder.qo.h.

bool casa::CanvasHolder::showLegend
private

Definition at line 75 of file CanvasHolder.qo.h.

Ui::CanvasHolderClass casa::CanvasHolder::ui
private

Definition at line 74 of file CanvasHolder.qo.h.


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