casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DisplayShapeWithCoords.h
Go to the documentation of this file.
1 //# DisplayShapeWithCoords.h : Base class for DisplayShapes with Coords
2 //# Copyright (C) 1998,1999,2000,2001,2002
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 #ifndef TRIALDISPLAY_DISPLAYSHAPEWITHCOORDS_H
28 #define TRIALDISPLAY_DISPLAYSHAPEWITHCOORDS_H
29 
30 #include <casa/aips.h>
32 
33 namespace casacore{
34 
35  class Record;
36  template <class T> class Vector;
37  template <class T> class Matrix;
38 }
39 
40 namespace casa { //# NAMESPACE CASA - BEGIN
41 
42 // <summary>
43 // Base class for DisplayShapes with Coords
44 // </summary>
45 
46  class PixelCanvas;
47  class PanelDisplay;
48  class WorldCanvas;
49 
50 
52 
53  public:
54  virtual casacore::Record getRawOptions() = 0;
55 
56  static void floatToPix(casacore::Record& inHere, const casacore::String& field);
57  static void floatPointToPix(casacore::Record& inHere, const casacore::String& field);
58 
59  static void matrixFloatToQuant(casacore::Record& inHere, const casacore::String& field,
60  const casacore::String& unit);
61  static void matrixFloatFromQuant(casacore::Record& inHere,
62  const casacore::String& field,
63  const casacore::String& onlyParseTheseUnits);
64 
65  static void floatFromPix(casacore::Record& inHere, const casacore::String& field);
66  static void floatPointFromPix(casacore::Record& inHere, const casacore::String& field);
67 
68  static WorldCanvas* chooseWCFromWorldPoint(const casacore::Record& settings,
69  PanelDisplay* pd);
70 
72  const casacore::String& fieldWithPoints,
73  PanelDisplay* pd);
74 
76  const casacore::Float& yPos,
77  PanelDisplay* pd);
78 
80  PanelDisplay* pd);
81 
83  const casacore::String& field,
84  casacore::String& units);
85 
88  PixelCanvas* pc);
89 
92  PixelCanvas* pc);
93 
95  WorldCanvas* wc);
96 
97  static void pixelToWorldPoints(casacore::Record& inHere, const casacore::String& fieldname,
98  WorldCanvas* wc);
100 
101  };
102 
103 } //# NAMESPACE CASA - END
104 
105 #endif
106 
107 
108 
109 
110 
111 
virtual casacore::Record getRawOptions()=0
std::vector< double > Vector
Definition: ds9context.h:24
static casacore::Vector< casacore::Float > screenToRel(const casacore::Vector< casacore::Float > &screen, PixelCanvas *pc)
static void matrixFloatFromQuant(casacore::Record &inHere, const casacore::String &field, const casacore::String &onlyParseTheseUnits)
static void matrixFloatToQuant(casacore::Record &inHere, const casacore::String &field, const casacore::String &unit)
static void floatFromPix(casacore::Record &inHere, const casacore::String &field)
static WorldCanvas * chooseWCFromWorldPoints(const casacore::Record &settings, const casacore::String &fieldWithPoints, PanelDisplay *pd)
static WorldCanvas * chooseWCFromWorldPoint(const casacore::Record &settings, PanelDisplay *pd)
static void floatPointFromPix(casacore::Record &inHere, const casacore::String &field)
Base class defining interface to pixel-based output devices.
Definition: PixelCanvas.h:161
static void floatToPix(casacore::Record &inHere, const casacore::String &field)
static casacore::Vector< casacore::Float > floatPointFromQuant(const casacore::Record &inHere, const casacore::String &field, casacore::String &units)
static void pixelToWorldPoints(casacore::Record &inHere, const casacore::String &fieldname, WorldCanvas *wc)
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
static casacore::Vector< casacore::Float > relToScreen(const casacore::Vector< casacore::Float > &rel, PixelCanvas *pc)
static WorldCanvas * chooseWCFromPixPoints(const casacore::Matrix< casacore::Float > points, PanelDisplay *pd)
float Float
Definition: aipstype.h:54
static void floatPointToPix(casacore::Record &inHere, const casacore::String &field)
Implementation of drawing in world coordinates on top of a PixelCanvas.
Definition: WorldCanvas.h:204
A class which creates and manages &quot;panelled&quot; displays.
Definition: PanelDisplay.h:79
String: the storage and methods of handling collections of characters.
Definition: String.h:223
static casacore::Bool inWorldCanvasDrawArea(const casacore::Matrix< casacore::Float > points, WorldCanvas *wc)
static WorldCanvas * chooseWCFromPixPoint(const casacore::Float &xPos, const casacore::Float &yPos, PanelDisplay *pd)
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42