casa
$Rev:20696$
|
Class for displaying data within a table as a contour image. More...
#include <TblAsContourDD.h>
Public Member Functions | |
TblAsContourDD (Table *table) | |
constructors given an already constructed table | |
TblAsContourDD (const String tablename) | |
given a string which gives the full pathname and filename of a table on disk | |
virtual | ~TblAsContourDD () |
Destructor. | |
virtual String | showValue (const Vector< Double > &world) |
format the table value at the give world position | |
virtual const Unit | dataUnit (const String column) |
get the data unit | |
virtual const Unit | dataUnit () |
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 CachingDisplayMethod * | newDisplayMethod (WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd) |
Create a new TblAsContourDM 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. | |
Table * | table () |
provide read-only access to the table | |
virtual void | cleanup () |
Clean up (ie. | |
Protected Member Functions | |
TblAsContourDD () | |
(Required) default constructor. | |
TblAsContourDD (const TblAsContourDD &other) | |
(Required) copy constructor. | |
void | operator= (const TblAsContourDD &other) |
(Required) copy assignment. | |
template<class T > | |
Bool | getTableKeyword (T &value, const String keyword) const |
Get the value of the named keyword, or the first keyword matching regex , and return it in value . | |
template<class T > | |
Bool | getTableKeyword (T &value, const Regex ®ex) const |
template<class T > | |
Bool | getColumnKeyword (T &value, const String column, const String keyword) const |
Get the value of the named keyword, or the first keyword matching regex for the named column, and return it in value . | |
template<class T > | |
Bool | getColumnKeyword (T &value, const String column, const Regex ®ex) const |
Private Member Functions | |
void | installDefaultOptions () |
set the default options for this display data | |
Bool | arrangeQueryTable () |
Arrange the query table (called after changing an option). | |
void | getCoordinateSystem () |
update/set the coordinate system | |
void | setCoordinateSystem () |
void | getTableColumnNames () |
get all of the table columnNames | |
Vector< double > | columnStatistics (const String &columnName) |
get the table column world coordinate range | |
Vector< String > | getColumnNamesOfType (const Bool isarray) |
get all of the table columnNames with a certain data type | |
void | constructParameters () |
Construct and destruct the parameter set. | |
void | destructParameters () |
Private Attributes | |
Table * | itsTable |
The table to be displayed. | |
Table * | itsQueryTable |
The result from a table query. | |
Vector< String > | itsColumnNames |
store all the table column names | |
DParameterChoice * | itsXColumnName |
what columns are we displaying and do we have a movie axis available | |
DParameterChoice * | itsYColumnName |
DParameterChoice * | itsMColumnName |
DParameterChoice * | itsMColumnSet |
String | itsOptQueryString |
options - what is the query string and is it unset? | |
Bool | itsOptQueryStringUnset |
CoordinateSystem | itsCoord |
holder for the current coordinate system | |
Vector< Double > | itsLinblc |
Vector< Double > | itsLintrc |
Vector< Float > | itsLevels |
parameters for the control of the contour's apperance | |
Float | itsScale |
Float | itsLine |
Bool | itsDash |
String | itsColor |
String | itsType |
Friends | |
class | TblAsContourDM |
Class for displaying data within a table as a contour image.
Internal or
Internal
"TblAsContourDD" is a implementation of a ActiveCaching2dDD which provides for the display of data held within a table to be displayed as a contour image in an environment where individual depictions of the data are automatically cached.
This class adds to the interface defined in DisplayData . It adds the capability to display vector/array data from a Table column as a contour image. It is assumed that the Y axis is defined to be either the row number of the table column being displayed or the scalar value from the same row number in a different table column (e.g. plotting intensity as a function of frequency against row number or time determined from a different column of the table). The X axis is assumed to be a one dimensional array or vector of of data for each row in the column being displayed. It is assumed that the length of this array/vector does not change throughout the column of the table.
A TblAsContourDD object could be construed and used as follows:
TblAsContourDD *tardd1 = 0; tardd1 = new TblAsContourDD("tablename"); Colormap cmap1("Hot Metal 2"); tardd1->setColormap(&cmap1, 1.0); wcHolder->addDisplayData((DisplayData *)tardd1);
To allow the display of data from a table as a contour image.
Definition at line 116 of file TblAsContourDD.h.
casa::TblAsContourDD::TblAsContourDD | ( | Table * | table | ) |
constructors given an already constructed table
casa::TblAsContourDD::TblAsContourDD | ( | const String | tablename | ) |
given a string which gives the full pathname and filename of a table on disk
virtual casa::TblAsContourDD::~TblAsContourDD | ( | ) | [virtual] |
Destructor.
casa::TblAsContourDD::TblAsContourDD | ( | ) | [protected] |
(Required) default constructor.
casa::TblAsContourDD::TblAsContourDD | ( | const TblAsContourDD & | other | ) | [protected] |
(Required) copy constructor.
Bool casa::TblAsContourDD::arrangeQueryTable | ( | ) | [private] |
Arrange the query table (called after changing an option).
virtual Display::DisplayDataType casa::TblAsContourDD::classType | ( | ) | [inline, virtual] |
Return the type of this DisplayData.
Implements casa::DisplayData.
Definition at line 151 of file TblAsContourDD.h.
virtual void casa::TblAsContourDD::cleanup | ( | ) | [virtual] |
Vector<double> casa::TblAsContourDD::columnStatistics | ( | const String & | columnName | ) | [private] |
get the table column world coordinate range
void casa::TblAsContourDD::constructParameters | ( | ) | [private] |
Construct and destruct the parameter set.
virtual const Unit casa::TblAsContourDD::dataUnit | ( | const String | column | ) | [virtual] |
get the data unit
virtual const Unit casa::TblAsContourDD::dataUnit | ( | ) | [virtual] |
void casa::TblAsContourDD::destructParameters | ( | ) | [private] |
Bool casa::TblAsContourDD::getColumnKeyword | ( | T & | value, |
const String | column, | ||
const String | keyword | ||
) | const [protected] |
Get the value of the named keyword, or the first keyword matching regex
for the named column, and return it in value
.
The return value is True
for success, and False
for failure, which is the result if // the wrong type T
is requested, or if the keyword doesn't exist.
Bool casa::TblAsContourDD::getColumnKeyword | ( | T & | value, |
const String | column, | ||
const Regex & | regex | ||
) | const [protected] |
Vector<String> casa::TblAsContourDD::getColumnNamesOfType | ( | const Bool | isarray | ) | [private] |
get all of the table columnNames with a certain data type
void casa::TblAsContourDD::getCoordinateSystem | ( | ) | [private] |
update/set the coordinate system
virtual Record casa::TblAsContourDD::getOptions | ( | ) | [virtual] |
Retrieve the current and default options and parameter types.
Reimplemented from casa::ActiveCaching2dDD.
void casa::TblAsContourDD::getTableColumnNames | ( | ) | [private] |
get all of the table columnNames
Bool casa::TblAsContourDD::getTableKeyword | ( | T & | value, |
const String | keyword | ||
) | const [protected] |
Get the value of the named keyword, or the first keyword matching regex
, and return it in value
.
The return value is True
for success, and False
for failure, which is the result if the wrong type T
is requested.
Bool casa::TblAsContourDD::getTableKeyword | ( | T & | value, |
const Regex & | regex | ||
) | const [protected] |
void casa::TblAsContourDD::installDefaultOptions | ( | ) | [private] |
set the default options for this display data
Reimplemented from casa::CachingDisplayData.
virtual CachingDisplayMethod* casa::TblAsContourDD::newDisplayMethod | ( | WorldCanvas * | worldCanvas, |
AttributeBuffer * | wchAttributes, | ||
AttributeBuffer * | ddAttributes, | ||
CachingDisplayData * | dd | ||
) | [virtual] |
Create a new TblAsContourDM 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::TblAsContourDD::operator= | ( | const TblAsContourDD & | other | ) | [protected] |
(Required) copy assignment.
virtual AttributeBuffer casa::TblAsContourDD::optionsAsAttributes | ( | ) | [virtual] |
Return the current options of this DisplayData as an AttributeBuffer.
Reimplemented from casa::ActiveCaching2dDD.
void casa::TblAsContourDD::setCoordinateSystem | ( | ) | [private] |
virtual void casa::TblAsContourDD::setDefaultOptions | ( | ) | [virtual] |
install the default options for this DisplayData
Reimplemented from casa::ActiveCaching2dDD.
virtual Bool casa::TblAsContourDD::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::ActiveCaching2dDD.
virtual String casa::TblAsContourDD::showValue | ( | const Vector< Double > & | world | ) | [virtual] |
format the table value at the give world position
Implements casa::DisplayData.
provide read-only access to the table
friend class TblAsContourDM [friend] |
Definition at line 209 of file TblAsContourDD.h.
String casa::TblAsContourDD::itsColor [private] |
Definition at line 264 of file TblAsContourDD.h.
Vector<String> casa::TblAsContourDD::itsColumnNames [private] |
store all the table column names
Definition at line 218 of file TblAsContourDD.h.
holder for the current coordinate system
Definition at line 237 of file TblAsContourDD.h.
Bool casa::TblAsContourDD::itsDash [private] |
Definition at line 263 of file TblAsContourDD.h.
Vector<Float> casa::TblAsContourDD::itsLevels [private] |
parameters for the control of the contour's apperance
Definition at line 260 of file TblAsContourDD.h.
Vector<Double> casa::TblAsContourDD::itsLinblc [private] |
Definition at line 238 of file TblAsContourDD.h.
Float casa::TblAsContourDD::itsLine [private] |
Definition at line 262 of file TblAsContourDD.h.
Vector<Double> casa::TblAsContourDD::itsLintrc [private] |
Definition at line 238 of file TblAsContourDD.h.
Definition at line 223 of file TblAsContourDD.h.
Definition at line 224 of file TblAsContourDD.h.
options - what is the query string and is it unset?
Definition at line 227 of file TblAsContourDD.h.
Definition at line 228 of file TblAsContourDD.h.
Table* casa::TblAsContourDD::itsQueryTable [private] |
The result from a table query.
Definition at line 215 of file TblAsContourDD.h.
Float casa::TblAsContourDD::itsScale [private] |
Definition at line 261 of file TblAsContourDD.h.
Table* casa::TblAsContourDD::itsTable [private] |
The table to be displayed.
Definition at line 212 of file TblAsContourDD.h.
String casa::TblAsContourDD::itsType [private] |
Definition at line 265 of file TblAsContourDD.h.
what columns are we displaying and do we have a movie axis available
Definition at line 221 of file TblAsContourDD.h.
Definition at line 222 of file TblAsContourDD.h.