casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes
casa::AxesDisplayData Class Reference

Interface and simple implementation of axis labelling. More...

#include <AxesDisplayData.h>

Inheritance diagram for casa::AxesDisplayData:
casa::PassiveCachingDD casa::CachingDisplayData casa::DisplayData casa::DisplayOptions casa::DisplayEH casa::DlTarget casa::WorldAxesDD

List of all members.

Public Member Functions

 AxesDisplayData ()
 Constructor.
virtual ~AxesDisplayData ()
 Destructor.
virtual void setDefaultOptions ()
 Install the default options for this DisplayData.
virtual Bool setOptions (Record &rec, Record &recOut)
 Apply options stored in rec to the DisplayData.
virtual Record getOptions ()
 Retrieve the current and default options and parameter types.
virtual Display::DisplayDataType classType ()
 Return the type of this DisplayData.
virtual CachingDisplayMethodnewDisplayMethod (WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd)
 Create a new AxesDisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers are suitably matched to the current state of this DisplayData and of the WorldCanvas/Holder.
virtual AttributeBuffer optionsAsAttributes ()
 Return the current options of this DisplayData as an AttributeBuffer.
virtual String titleText () const
 Get the title text for labelling.
virtual String xAxisText (const WorldCanvas *wc=0) const
 Get the X and Y axis text Strings for labelling.
virtual String yAxisText (const WorldCanvas *wc=0) const
virtual String xGridType () const
 Get what type of grid should be marked in each direction.
virtual String yGridType () const
virtual String titleTextColor () const
 Get the color to use for the title text, the X axis text, and the Y axis text labels.
virtual String xAxisColor () const
virtual String yAxisColor () const
virtual Float lineWidth () const
 Get the line width for labelling.
virtual String charFont () const
 Get the character font for labelling.
virtual Float charSize () const
 Get the character size for labelling.
virtual String outlineColor () const
 Get the color of the plot outline.

Static Public Attributes

static const float AXIS_LABEL_DEFAULT_CHAR_SIZE

Protected Member Functions

 AxesDisplayData (const AxesDisplayData &other)
 (Required) copy constructor.
void operator= (const AxesDisplayData &other)
 (Required) copy assignment.

Private Attributes

DParameterStringitsParamTitleText
 display title text
DParameterStringitsParamXAxisText
 Store for X axis label text String.
DParameterStringitsParamYAxisText
 Store for Y axis label text String.
DParameterChoiceitsParamXGridType
 coordinate grid?
DParameterChoiceitsParamYGridType
DParameterColorChoiceitsParamTitleColor
 title color
DParameterColorChoiceitsParamXAxisColor
 String itsOptionsTitleTextColor;.
DParameterColorChoiceitsParamYAxisColor
DParameterRange< Float > * itsParamLineWidth
 String itsOptionsXAxisColor, itsOptionsYAxisColor;.
DParameterChoiceitsParamCharacterFont
 plot character font
DParameterRange< Float > * itsParamCharacterSize
 plot character size
DParameterColorChoiceitsParamOutlineColor
 plot outline color

Detailed Description

Interface and simple implementation of axis labelling.

Synopsis

This class adds to the interface defined by CachingDisplayData to provide the necessary infrastructure for drawing axis labels on WorldCanvases. This class serves as a basic implementation which can (and probably should) be over-written in derived classes.

Definition at line 60 of file AxesDisplayData.h.


Constructor & Destructor Documentation

Constructor.

Destructor.

(Required) copy constructor.


Member Function Documentation

virtual String casa::AxesDisplayData::charFont ( ) const [inline, virtual]

Get the character font for labelling.

Definition at line 136 of file AxesDisplayData.h.

virtual Float casa::AxesDisplayData::charSize ( ) const [inline, virtual]

Get the character size for labelling.

Definition at line 140 of file AxesDisplayData.h.

Return the type of this DisplayData.

Implements casa::DisplayData.

Definition at line 83 of file AxesDisplayData.h.

Retrieve the current and default options and parameter types.

Reimplemented from casa::PassiveCachingDD.

Reimplemented in casa::WorldAxesDD.

virtual Float casa::AxesDisplayData::lineWidth ( ) const [inline, virtual]

Get the line width for labelling.

Definition at line 132 of file AxesDisplayData.h.

virtual CachingDisplayMethod* casa::AxesDisplayData::newDisplayMethod ( WorldCanvas worldCanvas,
AttributeBuffer wchAttributes,
AttributeBuffer ddAttributes,
CachingDisplayData dd 
) [virtual]

Create a new AxesDisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers are suitably matched to the current state of this DisplayData and of the WorldCanvas/Holder.

The tag is a unique number used to identify the age of the newly constructed CachingDisplayMethod.

Implements casa::CachingDisplayData.

Reimplemented in casa::WorldAxesDD.

void casa::AxesDisplayData::operator= ( const AxesDisplayData other) [protected]

(Required) copy assignment.

Return the current options of this DisplayData as an AttributeBuffer.

Reimplemented from casa::PassiveCachingDD.

Reimplemented in casa::WorldAxesDD.

virtual String casa::AxesDisplayData::outlineColor ( ) const [inline, virtual]

Get the color of the plot outline.

Definition at line 144 of file AxesDisplayData.h.

virtual void casa::AxesDisplayData::setDefaultOptions ( ) [virtual]

Install the default options for this DisplayData.

Reimplemented from casa::PassiveCachingDD.

Reimplemented in casa::WorldAxesDD.

virtual Bool casa::AxesDisplayData::setOptions ( Record rec,
Record recOut 
) [virtual]

Apply options stored in rec to the DisplayData.

A return value of True means a refresh is needed. recOut contains any fields which were implicitly changed as a result of the call to this function.

Reimplemented from casa::PassiveCachingDD.

Reimplemented in casa::WorldAxesDD.

virtual String casa::AxesDisplayData::titleText ( ) const [inline, virtual]

Get the title text for labelling.

Definition at line 101 of file AxesDisplayData.h.

virtual String casa::AxesDisplayData::titleTextColor ( ) const [inline, virtual]

Get the color to use for the title text, the X axis text, and the Y axis text labels.

Definition at line 123 of file AxesDisplayData.h.

virtual String casa::AxesDisplayData::xAxisColor ( ) const [inline, virtual]

Definition at line 125 of file AxesDisplayData.h.

virtual String casa::AxesDisplayData::xAxisText ( const WorldCanvas wc = 0) const [virtual]

Get the X and Y axis text Strings for labelling.

a WC can be supplied in order to retrieve default titles from the WC CS.

Reimplemented in casa::WorldAxesDD.

virtual String casa::AxesDisplayData::xGridType ( ) const [inline, virtual]

Get what type of grid should be marked in each direction.

Definition at line 114 of file AxesDisplayData.h.

virtual String casa::AxesDisplayData::yAxisColor ( ) const [inline, virtual]

Definition at line 127 of file AxesDisplayData.h.

virtual String casa::AxesDisplayData::yAxisText ( const WorldCanvas wc = 0) const [virtual]

Reimplemented in casa::WorldAxesDD.

virtual String casa::AxesDisplayData::yGridType ( ) const [inline, virtual]

Definition at line 116 of file AxesDisplayData.h.


Member Data Documentation

Definition at line 146 of file AxesDisplayData.h.

plot character font

Definition at line 181 of file AxesDisplayData.h.

plot character size

Definition at line 184 of file AxesDisplayData.h.

String itsOptionsXAxisColor, itsOptionsYAxisColor;.

plot line width

Definition at line 178 of file AxesDisplayData.h.

plot outline color

Definition at line 187 of file AxesDisplayData.h.

title color

Definition at line 170 of file AxesDisplayData.h.

display title text

Definition at line 158 of file AxesDisplayData.h.

String itsOptionsTitleTextColor;.

label text color

Definition at line 174 of file AxesDisplayData.h.

Store for X axis label text String.

Definition at line 161 of file AxesDisplayData.h.

coordinate grid?

Definition at line 167 of file AxesDisplayData.h.

Definition at line 174 of file AxesDisplayData.h.

Store for Y axis label text String.

Definition at line 164 of file AxesDisplayData.h.

Definition at line 167 of file AxesDisplayData.h.


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