Interface for DisplayDatas which have data arranged in axes. More...
#include <PrincipalAxesDD.h>
Public Member Functions | |
PrincipalAxesDD (uInt xAxis, uInt yAxis, Int mAxis=-1, Bool axisLabels=True, viewer::StatusSink *sink=0) | |
constructor | |
virtual | ~PrincipalAxesDD () |
destructor | |
virtual Bool | linToWorld (Vector< Double > &world, const Vector< Double > &lin) |
Coordinate transformation handlers, called by WorldCanvasHolder. | |
virtual Bool | worldToLin (Vector< Double > &lin, const Vector< Double > &world) |
virtual Bool | linToFullWorld (Vector< Double > &fullWorld, const Vector< Double > &lin) |
virtual String | showPosition (const Vector< Double > &world, const Bool &displayAxesOnly=False) |
Format a string containing coordinate and data information at the given world coordinate. | |
virtual String | showPosition (const Vector< Double > &world, const Bool &showAbs, const Bool &displayAxesOnly) |
Format a string containing coordinate and data information at the given world coordinate. | |
virtual void | setSubstituteTitleText (const String text) |
virtual Bool | conformsToCS (const WorldCanvas &wc) |
Is the DD is capable (in its current state) of drawing in the current DisplayCoordinateSystem of the WCH's WorldCanvas? | |
virtual Vector< String > | worldAxisNames () const |
Miscellaneous information supply routines. | |
virtual Vector< String > | worldAxisUnits () const |
virtual Vector< Double > | worldAxisIncrements () |
virtual void | worldAxisType (Coordinate::Type &type, Int &coordinate, Int &axisincoord, const uInt &worldaxisnum) |
virtual String | worldAxisCode (const uInt &worldaxisnum) |
virtual uInt | nelements (const WorldCanvasHolder &wcHolder) const |
Return the number of display elements (eg. | |
virtual uInt | nelements () const |
and non-specific | |
virtual void | setDataMin (Double datmin) |
Set and retrieve the minimum and maximum data values. | |
virtual void | setDataMax (Double datmax) |
virtual Double | getDataMin () const |
virtual Double | getDataMax () const |
virtual Bool | sizeControl (WorldCanvasHolder &wcHolder, AttributeBuffer &holderBuf) |
sizeControlFunction, called by the WorldCanvasHolder to setup the WorldCanvas linear coordinate system | |
virtual void | positionEH (const WCPositionEvent &ev) |
Position event handler, called by the WorldCanvasHolder. | |
virtual void | motionEH (const WCMotionEvent &ev) |
Motion event handler, called by the WorldCanvasHolder. | |
virtual void | refreshEH (const WCRefreshEvent &ev) |
refresh handler, called by the WorldCanvasHolder | |
virtual Bool | labelAxes (const WCRefreshEvent &ev) |
label/draw the axes | |
virtual Bool | canLabelAxes () const |
virtual void | cleanup () |
required function to tidy up our elements, primarily | |
virtual void | setDefaultOptions () |
install the default options for this DisplayData | |
virtual Bool | setOptions (Record &rec, Record &recOut) |
apply options stored in val to the DisplayData; return value True means a refresh is needed. | |
virtual Record | getOptions (bool scrub) const |
retrieve the current and default options and parameter types. | |
virtual Bool | setLabellerOptions (Record &rec, Record &recout) |
distribute options to all the axis labellers | |
virtual Record | getLabellerOptions (bool scrub=false) const |
retrieve options from the axis labellers | |
virtual void | setAxes (const uInt xAxis, const uInt yAxis, const uInt mAxis, const IPosition fixedPos, Bool reset=True) |
Sets which axes are on display and animator, and positions for animator and sliders. | |
virtual uInt | nDim () |
query the number of dimensions in the data | |
DisplayCoordinateSystem | coordinateSystem () const |
retrieve the DisplayCoordinateSystem | |
DisplayCoordinateSystem | originalCoordinateSystem () const |
retrieve the original DisplayCoordinateSystem | |
void | setCoordinateSystem (const DisplayCoordinateSystem &coordsys) |
set the DisplayCoordinateSystem and the original DisplayCoordinateSystem | |
void | restoreCoordinateSystem () |
set the DisplayCoordinateSystem to be the same as the original DisplayCoordinateSystem | |
void | installFakeCoordinateSystem () |
set a Linear Coordinate in case of pixToWorld undefined for the blc/trc | |
void | removeFakeCoordinateSystem () |
virtual String | className () |
Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future use in the glish widget interface. | |
virtual IPosition | fixedPosition () const |
Get the current fixed position. | |
virtual vector< int > | displayAxes () const |
Get the current display axis numbers. | |
virtual String | pixelTreatment () const |
Get the current setting of pixel treatment mode. | |
virtual Bool | getFullCoord (Vector< Double > &fullWorld, Vector< Double > &fullPixel, const Vector< Double > &world) |
Convert a 2D worldCoordinate of the WorldCanvas to a full worldcoordinate and full pixel position. | |
virtual void | notifyUnregister (WorldCanvasHolder &wcHolder, Bool ignoreRefresh=False) |
ignoreRefresh tells the DD not to refresh just to clean up DMs | |
Int | xlatePixelAxes (Int idx) const |
allow external functions to translate axes. | |
Int | xlateFixedPixelAxes (Int idx) const |
const String & | xaxisStr () const |
const String & | yaxisStr () const |
const String & | zaxisStr () const |
const String & | spectStr () const |
Vector< String > | worldToPixelAxisNames (const DisplayCoordinateSystem &cSys) const |
Convert list of world axis names to pixel axis names. | |
const String & | spectralunitStr () const |
bool | hasMovieDimension () const |
std::string | errorMessage () const |
Static Public Attributes | |
static const String | HISTOGRAM_RANGE |
Protected Member Functions | |
virtual Bool | setActiveZIndex_ (Int zindex) |
Set internal index (activeZIndex_) into the list of DMs (which cache individual drawings), according to passed animator index. | |
virtual void | drawBeamEllipse_ (WorldCanvas *) |
Derived classes will implement if applicable (at present, LatticePADDs may draw if they have an image with beam data). | |
virtual void | setNumImages (const uInt nimages) |
void | setup (IPosition fixedPos) |
do some setup work, part of construction and changing dataset | |
virtual void | setupElements () |
functions need by above | |
virtual void | getMinAndMax ()=0 |
Bool | indexInserted (Int index, Int length, Vector< Int > &testVec) |
Helper routine for setting up the transpose vectors for the coordinate system. | |
void | normalToTransposed (Vector< Double > &coord, const Vector< Int > &transPos) |
helper to transpose coordinates | |
void | transposedToNormal (Vector< Double > &coord, const Vector< Int > &transPos) |
void | setVelocityState (DisplayCoordinateSystem &cSys, const String &velTypeString, const String &unitString) |
Set velocity state. | |
void | setSpectralFormatting (DisplayCoordinateSystem &cSys, const String &velTypeString, const String &unitString, const String &frequency_system="") |
Set Spectral formatting. | |
Bool | findActiveImage (WorldCanvasHolder &wcHolder) |
Determine the active image (if any). | |
PrincipalAxesDD () | |
(Required) default constructor. | |
PrincipalAxesDD (const PrincipalAxesDD &other) | |
(Required) copy constructor. | |
void | operator= (const PrincipalAxesDD &other) |
(Required) copy assignment. | |
ImageAnalysis * | create_image_analysis (SHARED_PTR< ImageInterface< float > >) const |
ImageAnalysis class does not support complex images. | |
ImageAnalysis * | create_image_analysis (SHARED_PTR< ImageInterface< Complex > >) const |
Static Protected Member Functions | |
static bool | has_nonsingleton_nondegenerate_nondisplayed_axis (const DisplayData &other) |
Protected Attributes | |
Bool | iAmRubbish |
Internal state. | |
Double | datamin |
min and max to use for drawing | |
Double | datamax |
uInt | nArrayAxes |
internal bookkeeping number of axes | |
uInt | nPixelAxes |
uInt | nWorldAxes |
Coordinate::formatType | itsNotation |
format for diplaying numbers in the tracker | |
std::string | error_string |
Private Member Functions | |
Bool | canHaveVelocityUnit (const DisplayCoordinateSystem &cSys) const |
Find out if SpectralCoordinate can have velocity units. | |
void | removePixelAxes (DisplayCoordinateSystem &cSys, uInt startAxis, const IPosition &fixedPosition) |
Remove list of pixel axes from CS. | |
Private Attributes | |
Int | itsXAxisNum |
axis numbers IN ORIGINAL COORDINATE SYSTEM; zAxisNum = -1 means no third axis in data set | |
Int | itsYAxisNum |
Int | itsZAxisNum |
vector< int > | itsDisplayAxes |
the x (0), y (1) and z/movie (2) axis numbers | |
String | itsOptionsXAxis |
Store options: Axis selection ---. | |
String | itsOptionsYAxis |
String | itsOptionsZAxis |
IPosition | itsFixedPosition |
String | itsOptionsPixelTreatment |
treatment of edge pixels | |
uInt | itsNumImages |
number of elements (images) in this DisplayData | |
DisplayCoordinateSystem | itsOrigCoordSys |
This CS is the one we were constructed with. | |
DisplayCoordinateSystem | itsCoordSysBackup |
DisplayCoordinateSystem | itsCoordSys |
This is the working CS which is transposed and has axes removed all over the place. | |
PtrBlock< void * > | itsAxisLabellers |
List of AxisLabellers. | |
String | itsOptionsAspect |
Aspect selection ---. | |
DisplayCoordinateSystem | itsPosTrackCoordSys |
Position tracking variables This CS is the one we use to set the appropriate state for PositionTracking. | |
String | itsSpectralUnit |
String | itsSpectralQuantity |
Bool | itsAbsolute |
Bool | itsFractionalPixels |
AttributeBuffer | sizeControlBuf |
buffer for string sizecontrol done by this ImageDisplayData | |
Vector< Double > | itsAddPixPos |
the coordinates of the axes that do not vary | |
Vector< Int > | itsTransPixelAxes |
how the axes are permuted | |
Vector< Int > | itsTransWorldAxes |
Vector< Double > | itsWorldMin |
world ranges for toMix conversions | |
Vector< Double > | itsWorldMax |
Vector< Double > | itsWorldInTmp1 |
Temporaries for coordinate conversions. | |
Vector< Double > | itsPixelInTmp1 |
Vector< Bool > | itsWorldAxesTmp1 |
Vector< Bool > | itsPixelAxesTmp1 |
Vector< Double > | itsFullWorldTmp1 |
Vector< Double > | itsPixelInTmp2 |
Vector< Double > | itsWorldInTmp3 |
Vector< Double > | itsWorldOutTmp3 |
Vector< Double > | itsPixelInTmp3 |
Vector< Double > | itsPixelOutTmp3 |
Vector< Bool > | itsWorldAxesTmp3 |
Vector< Bool > | itsPixelAxesTmp3 |
Vector< Double > | itsFullWorldTmp4 |
Vector< Double > | itsFullPixelTmp4 |
Bool | itsUsesAxisLabels |
viewer::StatusSink * | ssink |
String | titleText |
Friends | |
class | PrincipalAxesDM |
allow PrincipalAxesDM objects to access the coord system in parent PrincipalAxesDD object |
Interface for DisplayDatas which have data arranged in axes.
This class adds to the interface defined by DisplayData to provide the necessary infrastructure for managing data which is arranged in "axes," ie. lattice or column-based data.
Definition at line 69 of file PrincipalAxesDD.h.
casa::PrincipalAxesDD::PrincipalAxesDD | ( | uInt | xAxis, | |
uInt | yAxis, | |||
Int | mAxis = -1 , |
|||
Bool | axisLabels = True , |
|||
viewer::StatusSink * | sink = 0 | |||
) |
constructor
virtual casa::PrincipalAxesDD::~PrincipalAxesDD | ( | ) | [virtual] |
destructor
casa::PrincipalAxesDD::PrincipalAxesDD | ( | ) | [protected] |
(Required) default constructor.
casa::PrincipalAxesDD::PrincipalAxesDD | ( | const PrincipalAxesDD & | other | ) | [protected] |
(Required) copy constructor.
Bool casa::PrincipalAxesDD::canHaveVelocityUnit | ( | const DisplayCoordinateSystem & | cSys | ) | const [private] |
Find out if SpectralCoordinate can have velocity units.
virtual Bool casa::PrincipalAxesDD::canLabelAxes | ( | ) | const [virtual] |
Reimplemented from casa::DisplayData.
virtual String casa::PrincipalAxesDD::className | ( | ) | [inline, virtual] |
Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future use in the glish widget interface.
Definition at line 205 of file PrincipalAxesDD.h.
References String.
virtual void casa::PrincipalAxesDD::cleanup | ( | ) | [virtual] |
required function to tidy up our elements, primarily
Implements casa::DisplayData.
virtual Bool casa::PrincipalAxesDD::conformsToCS | ( | const WorldCanvas & | wc | ) | [virtual] |
Is the DD is capable (in its current state) of drawing in the current DisplayCoordinateSystem of the WCH's WorldCanvas?
Reimplemented from casa::DisplayData.
DisplayCoordinateSystem casa::PrincipalAxesDD::coordinateSystem | ( | ) | const [inline] |
retrieve the DisplayCoordinateSystem
Definition at line 181 of file PrincipalAxesDD.h.
References itsCoordSys.
ImageAnalysis* casa::PrincipalAxesDD::create_image_analysis | ( | SHARED_PTR< ImageInterface< Complex > > | ) | const [inline, protected] |
Definition at line 368 of file PrincipalAxesDD.h.
ImageAnalysis* casa::PrincipalAxesDD::create_image_analysis | ( | SHARED_PTR< ImageInterface< float > > | ) | const [protected] |
ImageAnalysis class does not support complex images.
.\. so these functions are used to allow only the LatticePADisplayData<T> template to only return an image analysis object for the non-complex version..\.
virtual vector<int> casa::PrincipalAxesDD::displayAxes | ( | ) | const [inline, virtual] |
Get the current display axis numbers.
Implements casa::DisplayData.
Definition at line 215 of file PrincipalAxesDD.h.
References itsDisplayAxes.
virtual void casa::PrincipalAxesDD::drawBeamEllipse_ | ( | WorldCanvas * | ) | [inline, protected, virtual] |
Derived classes will implement if applicable (at present, LatticePADDs may draw if they have an image with beam data).
Reimplemented in casa::LatticePADisplayData< T >, and casa::LatticePADisplayData< Float >.
Definition at line 294 of file PrincipalAxesDD.h.
std::string casa::PrincipalAxesDD::errorMessage | ( | ) | const [inline, virtual] |
Implements casa::DisplayData.
Definition at line 275 of file PrincipalAxesDD.h.
References error_string.
Bool casa::PrincipalAxesDD::findActiveImage | ( | WorldCanvasHolder & | wcHolder | ) | [protected] |
Determine the active image (if any).
(Deprecated (7/04). Use confromsToZIndex(wch) instead).
virtual IPosition casa::PrincipalAxesDD::fixedPosition | ( | ) | const [inline, virtual] |
Get the current fixed position.
Definition at line 210 of file PrincipalAxesDD.h.
References itsFixedPosition.
virtual Double casa::PrincipalAxesDD::getDataMax | ( | ) | const [virtual] |
virtual Double casa::PrincipalAxesDD::getDataMin | ( | ) | const [virtual] |
virtual Bool casa::PrincipalAxesDD::getFullCoord | ( | Vector< Double > & | fullWorld, | |
Vector< Double > & | fullPixel, | |||
const Vector< Double > & | world | |||
) | [virtual] |
Convert a 2D worldCoordinate of the WorldCanvas to a full worldcoordinate and full pixel position.
virtual Record casa::PrincipalAxesDD::getLabellerOptions | ( | bool | scrub = false |
) | const [virtual] |
retrieve options from the axis labellers
Reimplemented in casa::ScrollingRasterDD.
virtual void casa::PrincipalAxesDD::getMinAndMax | ( | ) | [protected, pure virtual] |
Implemented in casa::LatticePADisplayData< T >, casa::ScrollingRasterDD, and casa::LatticePADisplayData< Float >.
virtual Record casa::PrincipalAxesDD::getOptions | ( | bool | scrub | ) | const [virtual] |
retrieve the current and default options and parameter types.
Reimplemented from casa::DisplayData.
Reimplemented in casa::LatticeAsContour< T >, casa::LatticeAsMarker< T >, casa::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticePADisplayData< T >, casa::ScrollingRasterDD, and casa::LatticePADisplayData< Float >.
static bool casa::PrincipalAxesDD::has_nonsingleton_nondegenerate_nondisplayed_axis | ( | const DisplayData & | other | ) | [static, protected] |
Referenced by hasMovieDimension().
bool casa::PrincipalAxesDD::hasMovieDimension | ( | ) | const [inline] |
Definition at line 271 of file PrincipalAxesDD.h.
References has_nonsingleton_nondegenerate_nondisplayed_axis().
Bool casa::PrincipalAxesDD::indexInserted | ( | Int | index, | |
Int | length, | |||
Vector< Int > & | testVec | |||
) | [protected] |
Helper routine for setting up the transpose vectors for the coordinate system.
void casa::PrincipalAxesDD::installFakeCoordinateSystem | ( | ) |
set a Linear Coordinate in case of pixToWorld undefined for the blc/trc
virtual Bool casa::PrincipalAxesDD::labelAxes | ( | const WCRefreshEvent & | ev | ) | [virtual] |
virtual Bool casa::PrincipalAxesDD::linToFullWorld | ( | Vector< Double > & | fullWorld, | |
const Vector< Double > & | lin | |||
) | [virtual] |
virtual Bool casa::PrincipalAxesDD::linToWorld | ( | Vector< Double > & | world, | |
const Vector< Double > & | lin | |||
) | [virtual] |
Coordinate transformation handlers, called by WorldCanvasHolder.
Implements casa::DisplayData.
virtual void casa::PrincipalAxesDD::motionEH | ( | const WCMotionEvent & | ev | ) | [virtual] |
Motion event handler, called by the WorldCanvasHolder.
Reimplemented from casa::DisplayData.
virtual uInt casa::PrincipalAxesDD::nDim | ( | ) | [inline, virtual] |
query the number of dimensions in the data
Definition at line 176 of file PrincipalAxesDD.h.
References casa::DisplayData::dataDim().
virtual uInt casa::PrincipalAxesDD::nelements | ( | ) | const [virtual] |
and non-specific
Implements casa::DisplayData.
virtual uInt casa::PrincipalAxesDD::nelements | ( | const WorldCanvasHolder & | wcHolder | ) | const [virtual] |
Return the number of display elements (eg.
drawable images) in this DisplayData
Implements casa::DisplayData.
void casa::PrincipalAxesDD::normalToTransposed | ( | Vector< Double > & | coord, | |
const Vector< Int > & | transPos | |||
) | [protected] |
helper to transpose coordinates
virtual void casa::PrincipalAxesDD::notifyUnregister | ( | WorldCanvasHolder & | wcHolder, | |
Bool | ignoreRefresh = False | |||
) | [virtual] |
ignoreRefresh
tells the DD not to refresh just to clean up DMs
Reimplemented from casa::DisplayData.
void casa::PrincipalAxesDD::operator= | ( | const PrincipalAxesDD & | other | ) | [protected] |
(Required) copy assignment.
Reimplemented from casa::DisplayData.
Reimplemented in casa::ScrollingRasterDD.
DisplayCoordinateSystem casa::PrincipalAxesDD::originalCoordinateSystem | ( | ) | const [inline] |
retrieve the original DisplayCoordinateSystem
Definition at line 186 of file PrincipalAxesDD.h.
References itsOrigCoordSys.
virtual String casa::PrincipalAxesDD::pixelTreatment | ( | ) | const [inline, virtual] |
Get the current setting of pixel treatment mode.
Definition at line 220 of file PrincipalAxesDD.h.
References itsOptionsPixelTreatment.
virtual void casa::PrincipalAxesDD::positionEH | ( | const WCPositionEvent & | ev | ) | [virtual] |
Position event handler, called by the WorldCanvasHolder.
Reimplemented from casa::DisplayData.
virtual void casa::PrincipalAxesDD::refreshEH | ( | const WCRefreshEvent & | ev | ) | [virtual] |
refresh handler, called by the WorldCanvasHolder
Implements casa::DisplayData.
void casa::PrincipalAxesDD::removeFakeCoordinateSystem | ( | ) |
void casa::PrincipalAxesDD::removePixelAxes | ( | DisplayCoordinateSystem & | cSys, | |
uInt | startAxis, | |||
const IPosition & | fixedPosition | |||
) | [private] |
Remove list of pixel axes from CS.
void casa::PrincipalAxesDD::restoreCoordinateSystem | ( | ) |
set the DisplayCoordinateSystem to be the same as the original DisplayCoordinateSystem
virtual Bool casa::PrincipalAxesDD::setActiveZIndex_ | ( | Int | zindex | ) | [protected, virtual] |
Set internal index (activeZIndex_) into the list of DMs (which cache individual drawings), according to passed animator index.
This is called by conformsTo() (via conformsToZIndex()), and serves to 'focus' the DD on the current WCH's zIndex. Returns True if there is only one frame, in which case activeZIndex_ is set to 0. Thus a single frame is considered to apply to any canvas zIndex setting (this allows a continuum image to be blinked with a chosen channel of a spectral image, e.g.). If there is more than one frame, the passed zindex is stored, and the return value will indicate whether it lies within the DD's current number of frames.
Reimplemented from casa::DisplayData.
virtual void casa::PrincipalAxesDD::setAxes | ( | const uInt | xAxis, | |
const uInt | yAxis, | |||
const uInt | mAxis, | |||
const IPosition | fixedPos, | |||
Bool | reset = True | |||
) | [virtual] |
void casa::PrincipalAxesDD::setCoordinateSystem | ( | const DisplayCoordinateSystem & | coordsys | ) |
set the DisplayCoordinateSystem and the original DisplayCoordinateSystem
virtual void casa::PrincipalAxesDD::setDataMax | ( | Double | datmax | ) | [virtual] |
virtual void casa::PrincipalAxesDD::setDataMin | ( | Double | datmin | ) | [virtual] |
Set and retrieve the minimum and maximum data values.
virtual void casa::PrincipalAxesDD::setDefaultOptions | ( | ) | [virtual] |
install the default options for this DisplayData
Reimplemented from casa::DisplayData.
Reimplemented in casa::LatticeAsContour< T >, casa::LatticeAsMarker< T >, casa::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticePADisplayData< T >, casa::ScrollingRasterDD, and casa::LatticePADisplayData< Float >.
virtual Bool casa::PrincipalAxesDD::setLabellerOptions | ( | Record & | rec, | |
Record & | recout | |||
) | [virtual] |
distribute options to all the axis labellers
Reimplemented in casa::ScrollingRasterDD.
virtual void casa::PrincipalAxesDD::setNumImages | ( | const uInt | nimages | ) | [inline, protected, virtual] |
Definition at line 300 of file PrincipalAxesDD.h.
References itsNumImages.
virtual Bool casa::PrincipalAxesDD::setOptions | ( | Record & | rec, | |
Record & | recOut | |||
) | [virtual] |
apply options stored in val to the DisplayData; return value True means a refresh is needed.
.\.
Reimplemented from casa::DisplayData.
Reimplemented in casa::LatticeAsContour< T >, casa::LatticeAsMarker< T >, casa::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticePADisplayData< T >, casa::ScrollingRasterDD, and casa::LatticePADisplayData< Float >.
void casa::PrincipalAxesDD::setSpectralFormatting | ( | DisplayCoordinateSystem & | cSys, | |
const String & | velTypeString, | |||
const String & | unitString, | |||
const String & | frequency_system = "" | |||
) | [protected] |
Set Spectral formatting.
virtual void casa::PrincipalAxesDD::setSubstituteTitleText | ( | const String | text | ) | [virtual] |
Reimplemented from casa::DisplayData.
void casa::PrincipalAxesDD::setup | ( | IPosition | fixedPos | ) | [protected] |
do some setup work, part of construction and changing dataset
virtual void casa::PrincipalAxesDD::setupElements | ( | ) | [protected, virtual] |
functions need by above
Reimplemented in casa::LatticeAsContour< T >, casa::LatticeAsMarker< T >, casa::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticePADisplayData< T >, casa::ScrollingRasterDD, and casa::LatticePADisplayData< Float >.
void casa::PrincipalAxesDD::setVelocityState | ( | DisplayCoordinateSystem & | cSys, | |
const String & | velTypeString, | |||
const String & | unitString | |||
) | [protected] |
Set velocity state.
virtual String casa::PrincipalAxesDD::showPosition | ( | const Vector< Double > & | world, | |
const Bool & | showAbs, | |||
const Bool & | displayAxesOnly | |||
) | [virtual] |
Format a string containing coordinate and data information at the given world coordinate.
This function let's you specify output conditions (world/pixel and abs/rel)
Reimplemented in casa::LatticeAsContour< T >.
virtual String casa::PrincipalAxesDD::showPosition | ( | const Vector< Double > & | world, | |
const Bool & | displayAxesOnly = False | |||
) | [virtual] |
Format a string containing coordinate and data information at the given world coordinate.
Implements casa::DisplayData.
virtual Bool casa::PrincipalAxesDD::sizeControl | ( | WorldCanvasHolder & | wcHolder, | |
AttributeBuffer & | holderBuf | |||
) | [virtual] |
sizeControlFunction, called by the WorldCanvasHolder to setup the WorldCanvas linear coordinate system
Implements casa::DisplayData.
Reimplemented in casa::ScrollingRasterDD.
const String& casa::PrincipalAxesDD::spectralunitStr | ( | ) | const |
const String& casa::PrincipalAxesDD::spectStr | ( | ) | const |
void casa::PrincipalAxesDD::transposedToNormal | ( | Vector< Double > & | coord, | |
const Vector< Int > & | transPos | |||
) | [protected] |
virtual String casa::PrincipalAxesDD::worldAxisCode | ( | const uInt & | worldaxisnum | ) | [virtual] |
virtual Vector<Double> casa::PrincipalAxesDD::worldAxisIncrements | ( | ) | [virtual] |
virtual Vector<String> casa::PrincipalAxesDD::worldAxisNames | ( | ) | const [virtual] |
Miscellaneous information supply routines.
Implements casa::DisplayData.
Reimplemented in casa::ScrollingRasterDD.
virtual void casa::PrincipalAxesDD::worldAxisType | ( | Coordinate::Type & | type, | |
Int & | coordinate, | |||
Int & | axisincoord, | |||
const uInt & | worldaxisnum | |||
) | [virtual] |
virtual Vector<String> casa::PrincipalAxesDD::worldAxisUnits | ( | ) | const [virtual] |
Implements casa::DisplayData.
Reimplemented in casa::ScrollingRasterDD.
virtual Bool casa::PrincipalAxesDD::worldToLin | ( | Vector< Double > & | lin, | |
const Vector< Double > & | world | |||
) | [virtual] |
Implements casa::DisplayData.
Vector<String> casa::PrincipalAxesDD::worldToPixelAxisNames | ( | const DisplayCoordinateSystem & | cSys | ) | const |
Convert list of world axis names to pixel axis names.
const String& casa::PrincipalAxesDD::xaxisStr | ( | ) | const [inline] |
Definition at line 254 of file PrincipalAxesDD.h.
References itsOptionsXAxis.
Int casa::PrincipalAxesDD::xlateFixedPixelAxes | ( | Int | idx | ) | const [inline] |
Definition at line 251 of file PrincipalAxesDD.h.
References itsFixedPosition.
Int casa::PrincipalAxesDD::xlatePixelAxes | ( | Int | idx | ) | const [inline] |
allow external functions to translate axes.
.\.
Definition at line 248 of file PrincipalAxesDD.h.
References itsTransPixelAxes.
const String& casa::PrincipalAxesDD::yaxisStr | ( | ) | const [inline] |
Definition at line 257 of file PrincipalAxesDD.h.
References itsOptionsYAxis.
const String& casa::PrincipalAxesDD::zaxisStr | ( | ) | const [inline] |
Definition at line 260 of file PrincipalAxesDD.h.
References itsOptionsZAxis.
friend class PrincipalAxesDM [friend] |
allow PrincipalAxesDM objects to access the coord system in parent PrincipalAxesDD object
Definition at line 298 of file PrincipalAxesDD.h.
Double casa::PrincipalAxesDD::datamax [protected] |
Definition at line 311 of file PrincipalAxesDD.h.
Double casa::PrincipalAxesDD::datamin [protected] |
min and max to use for drawing
Definition at line 310 of file PrincipalAxesDD.h.
std::string casa::PrincipalAxesDD::error_string [protected] |
Definition at line 372 of file PrincipalAxesDD.h.
Referenced by errorMessage().
const String casa::PrincipalAxesDD::HISTOGRAM_RANGE [static] |
Reimplemented in casa::LatticeAsRaster< T >.
Definition at line 269 of file PrincipalAxesDD.h.
Bool casa::PrincipalAxesDD::iAmRubbish [protected] |
Internal state.
Definition at line 307 of file PrincipalAxesDD.h.
Bool casa::PrincipalAxesDD::itsAbsolute [private] |
Definition at line 427 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsAddPixPos [private] |
the coordinates of the axes that do not vary
Definition at line 434 of file PrincipalAxesDD.h.
PtrBlock<void *> casa::PrincipalAxesDD::itsAxisLabellers [private] |
List of AxisLabellers.
Definition at line 414 of file PrincipalAxesDD.h.
This is the working CS which is transposed and has axes removed all over the place.
(dk note: The authors explain this poorly, and don't seem to make the distinction even for themselves very well: there are _two_ relevant coordinate transformations here, not just one. itsOrigCoordSys defines the world space for the _data_ pixels. itsCoordSys defines the world space for the _canvas_. Control and setting of the canvas CS is poorly modularized, and the DDs remain involved in too much of the _canvas's_ coordinate translation chores).
Definition at line 411 of file PrincipalAxesDD.h.
Referenced by coordinateSystem().
Definition at line 398 of file PrincipalAxesDD.h.
vector<int> casa::PrincipalAxesDD::itsDisplayAxes [private] |
the x (0), y (1) and z/movie (2) axis numbers
Definition at line 383 of file PrincipalAxesDD.h.
Referenced by displayAxes().
IPosition casa::PrincipalAxesDD::itsFixedPosition [private] |
Definition at line 388 of file PrincipalAxesDD.h.
Referenced by fixedPosition(), and xlateFixedPixelAxes().
Bool casa::PrincipalAxesDD::itsFractionalPixels [private] |
Definition at line 428 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsFullPixelTmp4 [private] |
Definition at line 455 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsFullWorldTmp1 [private] |
Definition at line 447 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsFullWorldTmp4 [private] |
Definition at line 455 of file PrincipalAxesDD.h.
Coordinate::formatType casa::PrincipalAxesDD::itsNotation [protected] |
format for diplaying numbers in the tracker
Definition at line 320 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::itsNumImages [private] |
number of elements (images) in this DisplayData
Definition at line 394 of file PrincipalAxesDD.h.
Referenced by setNumImages().
String casa::PrincipalAxesDD::itsOptionsAspect [private] |
Aspect selection ---.
Definition at line 417 of file PrincipalAxesDD.h.
String casa::PrincipalAxesDD::itsOptionsPixelTreatment [private] |
treatment of edge pixels
Definition at line 391 of file PrincipalAxesDD.h.
Referenced by pixelTreatment().
String casa::PrincipalAxesDD::itsOptionsXAxis [private] |
Store options: Axis selection ---.
Definition at line 387 of file PrincipalAxesDD.h.
Referenced by xaxisStr().
String casa::PrincipalAxesDD::itsOptionsYAxis [private] |
Definition at line 387 of file PrincipalAxesDD.h.
Referenced by yaxisStr().
String casa::PrincipalAxesDD::itsOptionsZAxis [private] |
Definition at line 387 of file PrincipalAxesDD.h.
Referenced by zaxisStr().
This CS is the one we were constructed with.
Definition at line 397 of file PrincipalAxesDD.h.
Referenced by originalCoordinateSystem().
Vector<Bool> casa::PrincipalAxesDD::itsPixelAxesTmp1 [private] |
Definition at line 446 of file PrincipalAxesDD.h.
Vector<Bool> casa::PrincipalAxesDD::itsPixelAxesTmp3 [private] |
Definition at line 453 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelInTmp1 [private] |
Definition at line 445 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelInTmp2 [private] |
Definition at line 449 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelInTmp3 [private] |
Definition at line 452 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelOutTmp3 [private] |
Definition at line 452 of file PrincipalAxesDD.h.
Position tracking variables This CS is the one we use to set the appropriate state for PositionTracking.
It is pretty much the same as itsOriginalCoordSys but the formtting and velocity state (if there is a SC) may differ
Definition at line 424 of file PrincipalAxesDD.h.
String casa::PrincipalAxesDD::itsSpectralQuantity [private] |
Definition at line 426 of file PrincipalAxesDD.h.
String casa::PrincipalAxesDD::itsSpectralUnit [private] |
Definition at line 425 of file PrincipalAxesDD.h.
Vector<Int> casa::PrincipalAxesDD::itsTransPixelAxes [private] |
how the axes are permuted
Definition at line 437 of file PrincipalAxesDD.h.
Referenced by xlatePixelAxes().
Vector<Int> casa::PrincipalAxesDD::itsTransWorldAxes [private] |
Definition at line 438 of file PrincipalAxesDD.h.
Bool casa::PrincipalAxesDD::itsUsesAxisLabels [private] |
Definition at line 457 of file PrincipalAxesDD.h.
Vector<Bool> casa::PrincipalAxesDD::itsWorldAxesTmp1 [private] |
Definition at line 446 of file PrincipalAxesDD.h.
Vector<Bool> casa::PrincipalAxesDD::itsWorldAxesTmp3 [private] |
Definition at line 453 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldInTmp1 [private] |
Temporaries for coordinate conversions.
You should only use one temporary per function.
Definition at line 445 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldInTmp3 [private] |
Definition at line 451 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldMax [private] |
Definition at line 441 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldMin [private] |
world ranges for toMix conversions
Definition at line 441 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldOutTmp3 [private] |
Definition at line 451 of file PrincipalAxesDD.h.
Int casa::PrincipalAxesDD::itsXAxisNum [private] |
axis numbers IN ORIGINAL COORDINATE SYSTEM; zAxisNum = -1 means no third axis in data set
Definition at line 378 of file PrincipalAxesDD.h.
Int casa::PrincipalAxesDD::itsYAxisNum [private] |
Definition at line 379 of file PrincipalAxesDD.h.
Int casa::PrincipalAxesDD::itsZAxisNum [private] |
Definition at line 380 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::nArrayAxes [protected] |
internal bookkeeping number of axes
Definition at line 315 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::nPixelAxes [protected] |
Definition at line 316 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::nWorldAxes [protected] |
Definition at line 317 of file PrincipalAxesDD.h.
buffer for string sizecontrol done by this ImageDisplayData
Definition at line 431 of file PrincipalAxesDD.h.
viewer::StatusSink* casa::PrincipalAxesDD::ssink [private] |
Definition at line 467 of file PrincipalAxesDD.h.
String casa::PrincipalAxesDD::titleText [private] |
Definition at line 468 of file PrincipalAxesDD.h.