casa
$Rev:20696$
|
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 Bool | conformsToCS (const WorldCanvas &wc) |
Is the DD is capable (in its current state) of drawing in the current CoordinateSystem 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 const uInt | nelements (const WorldCanvasHolder &wcHolder) const |
Return the number of display elements (eg. | |
virtual const 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 () |
virtual Double | getDataMax () |
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 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 () |
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 () |
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 | |
CoordinateSystem | coordinateSystem () const |
retrieve the CoordinateSystem | |
CoordinateSystem | originalCoordinateSystem () const |
retrieve the original CoordinateSystem | |
void | setCoordinateSystem (const CoordinateSystem &coordsys) |
set the CoordinateSystem and the original CoordinateSystem | |
void | restoreCoordinateSystem () |
set the CoordinateSystem to be the same as the original CoordinateSystem | |
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 CoordinateSystem &cSys) const |
Convert list of world axis names to pixel axis names. | |
const String & | spectralunitStr () const |
bool | hasMovieDimension () 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 (CoordinateSystem &cSys, const String &velTypeString, const String &unitString) |
Set velocity state. | |
void | setSpectralFormatting (CoordinateSystem &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 (ImageInterface< float > *) const |
ImageAnalysis class does not support complex images... | |
ImageAnalysis * | create_image_analysis (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 | |
Private Member Functions | |
Bool | canHaveVelocityUnit (const CoordinateSystem &cSys) const |
Find out if SpectralCoordinate can have velocity units. | |
void | removePixelAxes (CoordinateSystem &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 | |
CoordinateSystem | itsOrigCoordSys |
This CS is the one we were constructed with. | |
CoordinateSystem | itsCoordSysBackup |
CoordinateSystem | 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 ---. | |
CoordinateSystem | 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 |
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 CoordinateSystem & | cSys | ) | const [private] |
Find out if SpectralCoordinate can have velocity units.
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.
Reimplemented from casa::DisplayData.
Reimplemented in casa::LatticeAsContour< T >, casa::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticeAsMarker< T >, casa::LatticePADisplayData< T >, casa::LatticePADisplayData< Float >, and casa::ScrollingRasterDD.
Definition at line 201 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 CoordinateSystem of the WCH's WorldCanvas?
Reimplemented from casa::DisplayData.
CoordinateSystem casa::PrincipalAxesDD::coordinateSystem | ( | ) | const [inline] |
retrieve the CoordinateSystem
Definition at line 179 of file PrincipalAxesDD.h.
References itsCoordSys.
ImageAnalysis* casa::PrincipalAxesDD::create_image_analysis | ( | 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...
ImageAnalysis* casa::PrincipalAxesDD::create_image_analysis | ( | ImageInterface< Complex > * | ) | const [inline, protected] |
Definition at line 344 of file PrincipalAxesDD.h.
virtual vector<int> casa::PrincipalAxesDD::displayAxes | ( | ) | const [inline, virtual] |
Get the current display axis numbers.
Implements casa::DisplayData.
Definition at line 208 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 271 of file PrincipalAxesDD.h.
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 204 of file PrincipalAxesDD.h.
References itsFixedPosition.
virtual Double casa::PrincipalAxesDD::getDataMax | ( | ) | [virtual] |
virtual Double casa::PrincipalAxesDD::getDataMin | ( | ) | [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 | ( | ) | [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::LatticePADisplayData< Float >, and casa::ScrollingRasterDD.
virtual Record casa::PrincipalAxesDD::getOptions | ( | ) | [virtual] |
retrieve the current and default options and parameter types.
Reimplemented from casa::DisplayData.
Reimplemented in casa::LatticeAsContour< T >, casa::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticeAsMarker< T >, casa::LatticePADisplayData< T >, casa::LatticePADisplayData< Float >, and casa::ScrollingRasterDD.
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 252 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.
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 175 of file PrincipalAxesDD.h.
References casa::DisplayData::dataDim().
virtual const uInt casa::PrincipalAxesDD::nelements | ( | const WorldCanvasHolder & | wcHolder | ) | const [virtual] |
Return the number of display elements (eg.
drawable images) in this DisplayData
Implements casa::DisplayData.
virtual const uInt casa::PrincipalAxesDD::nelements | ( | ) | const [virtual] |
and non-specific
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.
CoordinateSystem casa::PrincipalAxesDD::originalCoordinateSystem | ( | ) | const [inline] |
retrieve the original CoordinateSystem
Definition at line 183 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 212 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::removePixelAxes | ( | CoordinateSystem & | cSys, |
uInt | startAxis, | ||
const IPosition & | fixedPosition | ||
) | [private] |
Remove list of pixel axes from CS.
set the CoordinateSystem to be the same as the original CoordinateSystem
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] |
Sets which axes are on display and animator, and positions for animator and sliders.
Pass 'reset' as False if you don't need an unzoom (e.g. when display axes are unchanged).
void casa::PrincipalAxesDD::setCoordinateSystem | ( | const CoordinateSystem & | coordsys | ) |
set the CoordinateSystem and the original CoordinateSystem
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::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticeAsMarker< T >, casa::LatticePADisplayData< T >, casa::LatticePADisplayData< Float >, and casa::ScrollingRasterDD.
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 277 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::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticeAsMarker< T >, casa::LatticePADisplayData< T >, casa::LatticePADisplayData< Float >, and casa::ScrollingRasterDD.
void casa::PrincipalAxesDD::setSpectralFormatting | ( | CoordinateSystem & | cSys, |
const String & | velTypeString, | ||
const String & | unitString, | ||
const String & | frequency_system = "" |
||
) | [protected] |
Set Spectral formatting.
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::LatticeAsRaster< T >, casa::LatticeAsVector< T >, casa::LatticeAsMarker< T >, casa::LatticePADisplayData< T >, casa::LatticePADisplayData< Float >, and casa::ScrollingRasterDD.
void casa::PrincipalAxesDD::setVelocityState | ( | CoordinateSystem & | cSys, |
const String & | velTypeString, | ||
const String & | unitString | ||
) | [protected] |
Set velocity state.
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 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 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 CoordinateSystem & | cSys | ) | const |
Convert list of world axis names to pixel axis names.
const String& casa::PrincipalAxesDD::xaxisStr | ( | ) | const [inline] |
Definition at line 241 of file PrincipalAxesDD.h.
References itsOptionsXAxis.
Int casa::PrincipalAxesDD::xlateFixedPixelAxes | ( | Int | idx | ) | const [inline] |
Definition at line 240 of file PrincipalAxesDD.h.
References itsFixedPosition.
Int casa::PrincipalAxesDD::xlatePixelAxes | ( | Int | idx | ) | const [inline] |
allow external functions to translate axes...
Definition at line 239 of file PrincipalAxesDD.h.
References itsTransPixelAxes.
const String& casa::PrincipalAxesDD::yaxisStr | ( | ) | const [inline] |
Definition at line 242 of file PrincipalAxesDD.h.
References itsOptionsYAxis.
const String& casa::PrincipalAxesDD::zaxisStr | ( | ) | const [inline] |
Definition at line 243 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 275 of file PrincipalAxesDD.h.
Double casa::PrincipalAxesDD::datamax [protected] |
Definition at line 287 of file PrincipalAxesDD.h.
Double casa::PrincipalAxesDD::datamin [protected] |
min and max to use for drawing
Definition at line 286 of file PrincipalAxesDD.h.
const String casa::PrincipalAxesDD::HISTOGRAM_RANGE [static] |
Reimplemented in casa::LatticeAsRaster< T >.
Definition at line 250 of file PrincipalAxesDD.h.
Bool casa::PrincipalAxesDD::iAmRubbish [protected] |
Internal state.
Definition at line 283 of file PrincipalAxesDD.h.
Bool casa::PrincipalAxesDD::itsAbsolute [private] |
Definition at line 400 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsAddPixPos [private] |
the coordinates of the axes that do not vary
Definition at line 407 of file PrincipalAxesDD.h.
PtrBlock<void *> casa::PrincipalAxesDD::itsAxisLabellers [private] |
List of AxisLabellers.
Definition at line 387 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 384 of file PrincipalAxesDD.h.
Referenced by coordinateSystem().
Definition at line 371 of file PrincipalAxesDD.h.
vector<int> casa::PrincipalAxesDD::itsDisplayAxes [private] |
the x (0), y (1) and z/movie (2) axis numbers
Definition at line 356 of file PrincipalAxesDD.h.
Referenced by displayAxes().
Definition at line 361 of file PrincipalAxesDD.h.
Referenced by fixedPosition(), and xlateFixedPixelAxes().
Definition at line 401 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsFullPixelTmp4 [private] |
Definition at line 428 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsFullWorldTmp1 [private] |
Definition at line 420 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsFullWorldTmp4 [private] |
Definition at line 428 of file PrincipalAxesDD.h.
format for diplaying numbers in the tracker
Definition at line 296 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::itsNumImages [private] |
number of elements (images) in this DisplayData
Definition at line 367 of file PrincipalAxesDD.h.
Referenced by setNumImages().
Aspect selection ---.
Definition at line 390 of file PrincipalAxesDD.h.
treatment of edge pixels
Definition at line 364 of file PrincipalAxesDD.h.
Referenced by pixelTreatment().
String casa::PrincipalAxesDD::itsOptionsXAxis [private] |
Store options: Axis selection ---.
Definition at line 360 of file PrincipalAxesDD.h.
Referenced by xaxisStr().
String casa::PrincipalAxesDD::itsOptionsYAxis [private] |
Definition at line 360 of file PrincipalAxesDD.h.
Referenced by yaxisStr().
String casa::PrincipalAxesDD::itsOptionsZAxis [private] |
Definition at line 360 of file PrincipalAxesDD.h.
Referenced by zaxisStr().
This CS is the one we were constructed with.
Definition at line 370 of file PrincipalAxesDD.h.
Referenced by originalCoordinateSystem().
Vector<Bool> casa::PrincipalAxesDD::itsPixelAxesTmp1 [private] |
Definition at line 419 of file PrincipalAxesDD.h.
Vector<Bool> casa::PrincipalAxesDD::itsPixelAxesTmp3 [private] |
Definition at line 426 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelInTmp1 [private] |
Definition at line 418 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelInTmp2 [private] |
Definition at line 422 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelInTmp3 [private] |
Definition at line 425 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsPixelOutTmp3 [private] |
Definition at line 425 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 397 of file PrincipalAxesDD.h.
Definition at line 399 of file PrincipalAxesDD.h.
String casa::PrincipalAxesDD::itsSpectralUnit [private] |
Definition at line 398 of file PrincipalAxesDD.h.
Vector<Int> casa::PrincipalAxesDD::itsTransPixelAxes [private] |
how the axes are permuted
Definition at line 410 of file PrincipalAxesDD.h.
Referenced by xlatePixelAxes().
Vector<Int> casa::PrincipalAxesDD::itsTransWorldAxes [private] |
Definition at line 411 of file PrincipalAxesDD.h.
Bool casa::PrincipalAxesDD::itsUsesAxisLabels [private] |
Definition at line 430 of file PrincipalAxesDD.h.
Vector<Bool> casa::PrincipalAxesDD::itsWorldAxesTmp1 [private] |
Definition at line 419 of file PrincipalAxesDD.h.
Vector<Bool> casa::PrincipalAxesDD::itsWorldAxesTmp3 [private] |
Definition at line 426 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 418 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldInTmp3 [private] |
Definition at line 424 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldMax [private] |
Definition at line 414 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldMin [private] |
world ranges for toMix conversions
Definition at line 414 of file PrincipalAxesDD.h.
Vector<Double> casa::PrincipalAxesDD::itsWorldOutTmp3 [private] |
Definition at line 424 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 351 of file PrincipalAxesDD.h.
Int casa::PrincipalAxesDD::itsYAxisNum [private] |
Definition at line 352 of file PrincipalAxesDD.h.
Int casa::PrincipalAxesDD::itsZAxisNum [private] |
Definition at line 353 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::nArrayAxes [protected] |
internal bookkeeping number of axes
Definition at line 291 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::nPixelAxes [protected] |
Definition at line 292 of file PrincipalAxesDD.h.
uInt casa::PrincipalAxesDD::nWorldAxes [protected] |
Definition at line 293 of file PrincipalAxesDD.h.
buffer for string sizecontrol done by this ImageDisplayData
Definition at line 404 of file PrincipalAxesDD.h.
viewer::StatusSink* casa::PrincipalAxesDD::ssink [private] |
Definition at line 440 of file PrincipalAxesDD.h.