casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
casa::CanvasHolder Class Reference

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

#include <CanvasHolder.qo.h>

List of all members.

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)
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 61 of file CanvasHolder.qo.h.


Constructor & Destructor Documentation

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

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 ( ) [private, slot]

Returns a list of curve identifiers.

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

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

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.

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

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

Ui::CanvasHolderClass casa::CanvasHolder::ui [private]

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


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