casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casa::viewer::Position Class Reference

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

#include <Position.h>

Public Member Functions

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

Protected Attributes

DisplayCoordinateSystem csys_
 
casacore::Vector
< casacore::Quantity
coord_
 

Detailed Description

Why not use casacore::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 casacore::Quantity x,
const casacore::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 casacore::Quantity x,
const casacore::Quantity y,
const casacore::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 casacore::Vector<casacore::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

casacore::Vector<casacore::Quantity> casa::viewer::Position::coord_
protected

Definition at line 68 of file Position.h.

Referenced by coord(), and Position().

DisplayCoordinateSystem casa::viewer::Position::csys_
protected

Definition at line 67 of file Position.h.

Referenced by csys().


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