casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
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 (const CoordinateSystem &cs, const Quantity &x, const Quantity &y)
 Later this could check for consistency between the coordinate and the system...
 Position (const CoordinateSystem &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 CoordinateSystemcsys () const
const Vector< Quantity > & coord () const
void show (std::ostream &out) const

Protected Attributes

CoordinateSystem csys_
Vector< Quantitycoord_

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 ( const CoordinateSystem cs,
const Quantity x,
const Quantity y 
) [inline]

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

Definition at line 44 of file Position.h.

References coord_.

casa::viewer::Position::Position ( const CoordinateSystem 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 47 of file Position.h.

References coord_.

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

Definition at line 49 of file Position.h.


Member Function Documentation

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

Definition at line 52 of file Position.h.

References coord_.

Definition at line 51 of file Position.h.

References csys_.

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

Member Data Documentation

Definition at line 58 of file Position.h.

Referenced by coord(), and Position().

Definition at line 57 of file Position.h.

Referenced by csys().


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