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

Simple implementation of a cached DisplayData for sky catalogue overlays. More...

#include <SkyCatOverlayDD.h>

Inheritance diagram for casa::SkyCatOverlayDD:
casa::PassiveTableDD casa::PassiveCachingDD casa::CachingDisplayData casa::DisplayData casa::DisplayOptions casa::DisplayEH casa::DlTarget

List of all members.

Public Member Functions

 SkyCatOverlayDD (Table *table)
 Constructor taking a pointer to an already constructed Table.
 SkyCatOverlayDD (const String tablename)
 Constructor taking a String which describes the full pathname of a Table on disk.
virtual ~SkyCatOverlayDD ()
 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.
String dataType () const
 Pure virtual function from 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 nameColumn () const
 Get the column name for text labelling.
virtual Float lineWidth () const
 Get the line width for labelling.
virtual Display::Marker markerType () const
 Get the marker type, size and color.
virtual Int markerSize () const
virtual String markerColor () const
virtual String mapColumn () const
 Get the column name for value-size mapping.
virtual String charFont () const
 Get the character font, size, color and angle for labelling.
virtual Float charSize () const
virtual String charColor () const
virtual Int charAngle () const
virtual Float labelXOffset () const
 Get the label x and y offsets (in character height).
virtual Float labelYOffset () const
virtual Bool conformsToCS (const WorldCanvas &wch)
 Determine ability to draw, given current canvas coordinate state.

Protected Member Functions

 SkyCatOverlayDD ()
 (Required) default constructor.
 SkyCatOverlayDD (const SkyCatOverlayDD &other)
 (Required) copy constructor.
void operator= (const SkyCatOverlayDD &other)
 (Required) copy assignment.
virtual Bool determineDirectionColumnMapping ()
 Attempt to determine which columns map to longitude, latitude, and type.
Unit columnUnit (const String columnName) const
 Return the unit of a given column in the table.

Private Member Functions

void constructParameters ()
 Construct and destruct the parameter set.
void destructParameters ()

Private Attributes

Vector< StringitsColumnNames
 Store the column names here.
String itsLongitudeColumn
 Option: what type of coordinates are provided? String itsCoordinateType;.
Unit itsLongitudeUnit
String itsLatitudeColumn
 Which column is mapped to the latitude coordinate, and what is its unit?
Unit itsLatitudeUnit
String itsDirectionTypeColumn
 Which column is mapped to epoch.
DParameterChoiceitsParamNameColumn
 Option: which column is mapped to the name?
DParameterRange< Int > * itsParamLineWidth
 plot line width
DParameterMapKeyChoiceitsParamMarkerType
 Marker type, size and color.
DParameterRange< Int > * itsParamMarkerSize
DParameterColorChoiceitsParamMarkerColor
DParameterChoiceitsParamMapColumn
DParameterChoiceitsParamCharacterFont
 Labelling character font, size, color and angle.
DParameterRange< Float > * itsParamCharacterSize
DParameterColorChoiceitsParamCharacterColor
DParameterRange< Int > * itsParamCharacterAngle
DParameterRange< Float > * itsParamLabelXOffset
 Labelling character offsets in character height units.
DParameterRange< Float > * itsParamLabelYOffset

Friends

class SkyCatOverlayDM
 Allow the DisplayMethod to access the private data.

Detailed Description

Simple implementation of a cached DisplayData for sky catalogue overlays.

Definition at line 49 of file SkyCatOverlayDD.h.


Constructor & Destructor Documentation

Constructor taking a pointer to an already constructed Table.

Constructor taking a String which describes the full pathname of a Table on disk.

Destructor.

(Required) default constructor.

(Required) copy constructor.


Member Function Documentation

virtual Int casa::SkyCatOverlayDD::charAngle ( ) const [inline, virtual]
virtual String casa::SkyCatOverlayDD::charColor ( ) const [inline, virtual]

Definition at line 125 of file SkyCatOverlayDD.h.

References itsParamCharacterColor, and casa::DParameterChoice::value().

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

Get the character font, size, color and angle for labelling.

Definition at line 121 of file SkyCatOverlayDD.h.

References itsParamCharacterFont, and casa::DParameterChoice::value().

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

Return the type of this DisplayData.

Implements casa::DisplayData.

Definition at line 76 of file SkyCatOverlayDD.h.

References casa::Display::CanvasAnnotation.

Unit casa::SkyCatOverlayDD::columnUnit ( const String  columnName) const [protected]

Return the unit of a given column in the table.

This is extracted from the first column keyword matching the pattern ^[uU][nN][iI][tT]$. If no unit keyword is available, the returned unit is a null unit.

virtual Bool casa::SkyCatOverlayDD::conformsToCS ( const WorldCanvas wch) [virtual]

Determine ability to draw, given current canvas coordinate state.

This DD requires direction coordinates in both X and Y axis codes.

Reimplemented from casa::DisplayData.

Construct and destruct the parameter set.

String casa::SkyCatOverlayDD::dataType ( ) const [inline, virtual]

Pure virtual function from DisplayData...

Implements casa::DisplayData.

Definition at line 79 of file SkyCatOverlayDD.h.

Attempt to determine which columns map to longitude, latitude, and type.

Retrieve the current and default options and parameter types.

Reimplemented from casa::PassiveTableDD.

virtual Float casa::SkyCatOverlayDD::labelXOffset ( ) const [inline, virtual]

Get the label x and y offsets (in character height).

Definition at line 133 of file SkyCatOverlayDD.h.

References itsParamLabelXOffset, and casa::DParameterRange< T >::value().

virtual Float casa::SkyCatOverlayDD::labelYOffset ( ) const [inline, virtual]

Definition at line 135 of file SkyCatOverlayDD.h.

References itsParamLabelYOffset, and casa::DParameterRange< T >::value().

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

Get the line width for labelling.

Definition at line 102 of file SkyCatOverlayDD.h.

References itsParamLineWidth, and casa::DParameterRange< T >::value().

virtual String casa::SkyCatOverlayDD::mapColumn ( ) const [inline, virtual]

Get the column name for value-size mapping.

Definition at line 115 of file SkyCatOverlayDD.h.

References itsParamMapColumn, and casa::DParameterChoice::value().

virtual String casa::SkyCatOverlayDD::markerColor ( ) const [inline, virtual]

Definition at line 111 of file SkyCatOverlayDD.h.

References itsParamMarkerColor, and casa::DParameterChoice::value().

virtual Int casa::SkyCatOverlayDD::markerSize ( ) const [inline, virtual]

Definition at line 109 of file SkyCatOverlayDD.h.

References itsParamMarkerSize, and casa::DParameterRange< T >::value().

virtual Display::Marker casa::SkyCatOverlayDD::markerType ( ) const [inline, virtual]

Get the marker type, size and color.

Definition at line 107 of file SkyCatOverlayDD.h.

References itsParamMarkerType, and casa::DParameterMapKeyChoice::keyValue().

virtual String casa::SkyCatOverlayDD::nameColumn ( ) const [inline, virtual]

Get the column name for text labelling.

Definition at line 98 of file SkyCatOverlayDD.h.

References itsParamNameColumn, and casa::DParameterChoice::value().

virtual CachingDisplayMethod* casa::SkyCatOverlayDD::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.

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

(Required) copy assignment.

Return the current options of this DisplayData as an AttributeBuffer.

Reimplemented from casa::PassiveTableDD.

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

Install the default options for this DisplayData.

Reimplemented from casa::PassiveTableDD.

virtual Bool casa::SkyCatOverlayDD::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::PassiveTableDD.


Friends And Related Function Documentation

friend class SkyCatOverlayDM [friend]

Allow the DisplayMethod to access the private data.

Definition at line 209 of file SkyCatOverlayDD.h.


Member Data Documentation

Store the column names here.

Definition at line 167 of file SkyCatOverlayDD.h.

Which column is mapped to epoch.

Definition at line 183 of file SkyCatOverlayDD.h.

Which column is mapped to the latitude coordinate, and what is its unit?

Definition at line 179 of file SkyCatOverlayDD.h.

Definition at line 180 of file SkyCatOverlayDD.h.

Option: what type of coordinates are provided? String itsCoordinateType;.

Which column is mapped to the longitude coordinate, and what is its unit?

Definition at line 174 of file SkyCatOverlayDD.h.

Definition at line 175 of file SkyCatOverlayDD.h.

Definition at line 202 of file SkyCatOverlayDD.h.

Referenced by charAngle().

Definition at line 201 of file SkyCatOverlayDD.h.

Referenced by charColor().

Labelling character font, size, color and angle.

Definition at line 199 of file SkyCatOverlayDD.h.

Referenced by charFont().

Definition at line 200 of file SkyCatOverlayDD.h.

Referenced by charSize().

Labelling character offsets in character height units.

Definition at line 205 of file SkyCatOverlayDD.h.

Referenced by labelXOffset().

Definition at line 206 of file SkyCatOverlayDD.h.

Referenced by labelYOffset().

plot line width

Definition at line 189 of file SkyCatOverlayDD.h.

Referenced by lineWidth().

Definition at line 195 of file SkyCatOverlayDD.h.

Referenced by mapColumn().

Definition at line 194 of file SkyCatOverlayDD.h.

Referenced by markerColor().

Definition at line 193 of file SkyCatOverlayDD.h.

Referenced by markerSize().

Marker type, size and color.

Definition at line 192 of file SkyCatOverlayDD.h.

Referenced by markerType().

Option: which column is mapped to the name?

Definition at line 186 of file SkyCatOverlayDD.h.

Referenced by nameColumn().


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