casa::viewer::Position Class Reference

Why not use MDirection? It's limited by valid astronomical coordinates on the sky Hz vs arcsec does not fly. More...

#include <Position.h>

List of all members.

Public Member Functions

 Position ()
 Position (const DisplayCoordinateSystem &cs, const Quantity &x, const Quantity &y)
 Later this could check for consistency between the coordinate and the system.
 Position (const DisplayCoordinateSystem &cs, const Quantity &x, const Quantity &y, const Quantity &z)
 Later this could check for consistency between the coordinate and the system.
 Position (const Position &that)
const DisplayCoordinateSystemcsys () const
const Vector< Quantity > & coord () const
void show (std::ostream &out) const

Protected Attributes

DisplayCoordinateSystem csys_
Vector< Quantity > coord_

Detailed Description

Why not use MDirection? It's limited by valid astronomical coordinates on the sky Hz vs arcsec does not fly.

The idea here is to represent a point, line, plane, etc. (depending on the dimensions of the coordinate system and the coordinate contained here) and eventually have positions which can convert themselves to match different coordinate systems used in other images; removing some of the tangle of linToWorld(...) et al. that snakes through canvases and display datas currently. It may well be that some of this may need to remain in the current canvases/datas, but at least the viewer (and regions) will be able to talk about positions independent of the rest of the viewer hierarchy.

Definition at line 41 of file Position.h.


Constructor & Destructor Documentation

casa::viewer::Position::Position (  )  [inline]

Definition at line 43 of file Position.h.

casa::viewer::Position::Position ( const DisplayCoordinateSystem cs,
const Quantity &  x,
const Quantity &  y 
) [inline]

Later this could check for consistency between the coordinate and the system.

.\.

Definition at line 45 of file Position.h.

References coord_.

casa::viewer::Position::Position ( const DisplayCoordinateSystem cs,
const Quantity &  x,
const Quantity &  y,
const Quantity &  z 
) [inline]

Later this could check for consistency between the coordinate and the system.

.\.

Definition at line 50 of file Position.h.

References coord_.

casa::viewer::Position::Position ( const Position that  )  [inline]

Definition at line 55 of file Position.h.


Member Function Documentation

const Vector<Quantity>& casa::viewer::Position::coord (  )  const [inline]

Definition at line 60 of file Position.h.

References coord_.

const DisplayCoordinateSystem& casa::viewer::Position::csys (  )  const [inline]

Definition at line 57 of file Position.h.

References csys_.

void casa::viewer::Position::show ( std::ostream &  out  )  const

Member Data Documentation

Vector<Quantity> casa::viewer::Position::coord_ [protected]

Definition at line 68 of file Position.h.

Referenced by coord(), and Position().

Definition at line 67 of file Position.h.

Referenced by csys().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1