Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/coordConv/html/classcoord_conv_1_1_other_coord_sys.html
Дата изменения: Thu May 7 21:42:47 2015
Дата индексирования: Sun Apr 10 05:18:36 2016
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п
lsst.coordConv: coordConv::OtherCoordSys Class Reference
lsst.coordConv  unknown
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
coordConv::OtherCoordSys Class Reference

#include <coordSys.h>

Inheritance diagram for coordConv::OtherCoordSys:
coordConv::CoordSys coordConv::NoneCoordSys

Public Member Functions

 OtherCoordSys (std::string const &name, double date=0, DateTypeEnum dateType=DateType_None, bool isMean=false)
 
virtual ~OtherCoordSys ()
 
virtual CoordSys::Ptr clone () const
 
virtual CoordSys::Ptr clone (double date) const
 
virtual double dateFromTAI (double tai) const
 
virtual double taiFromDate (double date) const
 
virtual Coord removePM (Coord const &coord, double tai) const
 
virtual Coord fromFK5J2000 (Coord const &coord, Site const &site) const
 
virtual Coord toFK5J2000 (Coord const &coord, Site const &site) const
 
virtual std::string __repr__ () const
 
- Public Member Functions inherited from coordConv::CoordSys
 CoordSys (std::string const &name, double date, DateTypeEnum dateType, bool isMean, bool canConvert)
 
virtual ~CoordSys ()
 Destructor. More...
 
DateTypeEnum getDateType () const
 
std::string getName () const
 
bool canConvert () const
 
bool isMean () const
 
bool isCurrent () const
 
double getDate (bool zeroIfCurrent=true) const
 
void setDate (double date)
 
void setCurrDate (double date) const
 
virtual Coord convertFrom (CoordSys const &fromCoordSys, Coord const &fromCoord, Site const &site, double tai=0) const
 
virtual PVTCoord convertFrom (CoordSys const &fromCoordSys, PVTCoord const &fromPVTCoord, Site const &site) const
 
virtual Coord convertFrom (double &toDir, double &scaleChange, CoordSys const &fromCoordSys, Coord const &fromCoord, double fromDir, Site const &site, double tai=0) const
 
virtual PVTCoord convertFrom (PVT &toDir, double &scaleChange, CoordSys const &fromCoordSys, PVTCoord const &fromPVTCoord, PVT const &fromDir, Site const &site) const
 
virtual PVTCoord removePM (PVTCoord const &pvtCoord)
 
bool operator== (CoordSys const &rhs)
 Equality operator; a method instead of a free function to simplify SWIG wrapping. More...
 
bool operator!= (CoordSys const &rhs)
 Inequality operator; a method instead of a free function to simplify SWIG wrapping. More...
 

Additional Inherited Members

- Public Types inherited from coordConv::CoordSys
typedef boost::shared_ptr
< CoordSys
Ptr
 
typedef boost::shared_ptr
< const CoordSys
ConstPtr
 
- Protected Member Functions inherited from coordConv::CoordSys
virtual void _setDate (double date) const
 
- Protected Attributes inherited from coordConv::CoordSys
std::string _name
 
double _date
 name of coordinate system More...
 
DateTypeEnum _dateType
 date of coordinate system (units depend on coordinate system) More...
 
bool _isMean
 date type More...
 
bool _isCurrent
 true for mean coordinate systems More...
 
bool _canConvert
 true if coordinate system is current More...
 

Detailed Description

Other coordinate system

This is a placeholder for additional coordinate systems that are not supported by this package (for example a telescope may want to use coordinates such as "mount" or "instrument").

See also NoneCoordSys.

canConvert is always false fromFK5J2000, toFK5J2000 and convertFrom all return a null Coord() dateFromTAI returns the supplied TAI date removePM returns the supplied coord (though perhaps it should return a null Coord, instead)

Definition at line 508 of file coordSys.h.

Constructor & Destructor Documentation

coordConv::OtherCoordSys::OtherCoordSys ( std::string const &  name,
double  date = 0,
DateTypeEnum  dateType = DateType_None,
bool  isMean = false 
)
explicit

Construct an OtherCoordSys

Parameters
[in]namename of coordinate system
[in]datedate as TAI (MJD, seconds)
[in]dateTypedate type
[in]isMeanis this a mean system?

Definition at line 8 of file otherCoordSys.cc.

virtual coordConv::OtherCoordSys::~OtherCoordSys ( )
inlinevirtual

Definition at line 519 of file coordSys.h.

Member Function Documentation

std::string coordConv::OtherCoordSys::__repr__ ( ) const
virtual

Return a string representation

Implements coordConv::CoordSys.

Reimplemented in coordConv::NoneCoordSys.

Definition at line 29 of file otherCoordSys.cc.

CoordSys::Ptr coordConv::OtherCoordSys::clone ( ) const
virtual

Return a copy with the same date

Implements coordConv::CoordSys.

Reimplemented in coordConv::NoneCoordSys.

Definition at line 13 of file otherCoordSys.cc.

CoordSys::Ptr coordConv::OtherCoordSys::clone ( double  date) const
virtual

Return a copy with a specified date

Implements coordConv::CoordSys.

Reimplemented in coordConv::NoneCoordSys.

Definition at line 17 of file otherCoordSys.cc.

virtual double coordConv::OtherCoordSys::dateFromTAI ( double  tai) const
inlinevirtual

Convert TAI (MJD, seconds) to a suitable date for this coordinate system, as given by getDateType

Parameters
[in]taiTAI date (MJD, seconds)
Returns
date in appropriate units for this coordinate system

Implements coordConv::CoordSys.

Definition at line 522 of file coordSys.h.

Coord coordConv::OtherCoordSys::fromFK5J2000 ( Coord const &  coord,
Site const &  site 
) const
virtual

Convert a coordinate from FK5 at date of observation J2000 to this system at this date

Parameters
[in]coordposition in ICRS coordinates at date of observation J2000
[in]sitesite information
Returns
position in this coordinate system

Implements coordConv::CoordSys.

Definition at line 21 of file otherCoordSys.cc.

virtual Coord coordConv::OtherCoordSys::removePM ( Coord const &  coord,
double  tai 
) const
inlinevirtual

Remove the effects of proper motion and radial velocity to the specified TAI date

Warning
This is a no-op for apparent coordinate systems.
Parameters
[in]coordcoordinate from which to remove proper motion and radial velocity
[in]taiTAI date to which to remove proper motion and radial velocity (MJD, seconds)
Returns
coord with proper motion and radial velocity removed

Implements coordConv::CoordSys.

Definition at line 524 of file coordSys.h.

virtual double coordConv::OtherCoordSys::taiFromDate ( double  date) const
inlinevirtual

Convert a suitable date for this coordinate system to TAI (MJD, seconds)

Parameters
[in]datedate in units suitable to this coordinate system, as given by getDateType
Returns
date in appropriate units for this coordinate system

Implements coordConv::CoordSys.

Definition at line 523 of file coordSys.h.

Coord coordConv::OtherCoordSys::toFK5J2000 ( Coord const &  coord,
Site const &  site 
) const
virtual

Convert a coordinate to FK5 at date of observation J2000 from this coordinate system at this date

Parameters
[in]coordposition in this coordinate system at this date
[in]sitesite information
Returns
position in ICRS coordinates at date of observation J2000

Implements coordConv::CoordSys.

Definition at line 25 of file otherCoordSys.cc.


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