casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultWCCoordinateHandler.h
Go to the documentation of this file.
1 //# DefaultWCCoordinateHandler.h: default coordinate handling for WorldCanvas
2 //# Copyright (C) 1993,1994,1995,1996,1997,1998,1999,2000,2001
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef TRIALDISPLAY_DEFAULTWCCOORDINATEHANDLER_H
29 #define TRIALDISPLAY_DEFAULTWCCOORDINATEHANDLER_H
30 
31 #include <casa/aips.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36 // <summary>
37 // Class to provide default coordinate handling for WorldCanvases.
38 // </summary>
39 //
40 // <prerequisite>
41 // <li> <linkto class="WCCoordinateHandler">WCCoordinateHandler</linkto>
42 // <li> <linkto class="casacore::CoordinateSystem">casacore::CoordinateSystem</linkto>
43 // </prerequisite>
44 //
45 // <etymology>
46 // DefaultWCCoordinateHandler stands for Default WorldCanvas casacore::Coordinate Handler
47 // </etymology>
48 //
49 // <synopsis>
50 // Implements identity transformation function pairs between World Coordinates
51 // and linear coordinates. It assumes 2 axes only.
52 // </synopsis>
53 //
54 // <motivation>
55 // Recognized that 95% of the time the WorldCanvas will be used in
56 // conjunction with a world coordinate system of some kind. So it makes
57 // more sense to assume that there is always a coordinate handler available
58 // and use it rather than to have to check to see if there is a handler
59 // registered with the WorldCanvas or not each time you have to do a
60 // transformation.
61 //
62 // The WorldCanvas creates this default handler for its own purpose.
63 // </motivation>
64 //
65 
67 
68  public:
69 
70  // Default Constructor Required
72 
73  // just copy lin to world and vice versa. The input vectors must be of
74  // length 2. The output vectors are resized as needed. The output matrices
75  // must be the correct shape on input.
76  // <group>
85  // </group>
86 
87  // return the number of world axes. Always 2.
88  virtual casacore::uInt nWorldAxes() const {
89  return 2;
90  }
91 
92  // Routines that give the axes names and the units. Both return "Pixel".
93  // <group>
96  // </group>
97 
98  std::string errorMessage( ) const { return ""; }
99 
100  // Destructor
101  virtual ~DefaultWCCoordinateHandler();
102 
103  };
104 
105 
106 } //# NAMESPACE CASA - END
107 
108 #endif
109 
110 
virtual ~DefaultWCCoordinateHandler()
Destructor.
DefaultWCCoordinateHandler()
Default Constructor Required.
virtual casacore::uInt nWorldAxes() const
return the number of world axes.
Base class defining a set of transformations for WorldCanvas coordinates.
virtual casacore::Bool worldToLin(casacore::Vector< casacore::Double > &lin, const casacore::Vector< casacore::Double > &world)
transform the world point (N-dimensional) into a lin coordinate (2-dimensional), returning false if t...
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual casacore::Vector< casacore::String > worldAxisUnits() const
Class to provide default coordinate handling for WorldCanvases.
virtual casacore::Bool linToWorld(casacore::Vector< casacore::Double > &world, const casacore::Vector< casacore::Double > &lin)
just copy lin to world and vice versa.
virtual casacore::Vector< casacore::String > worldAxisNames() const
Routines that give the axes names and the units.
unsigned int uInt
Definition: aipstype.h:51