casacore
Loading...
Searching...
No Matches
RegionType.h
Go to the documentation of this file.
1// # RegionType.h: Define the various region types in an enum.
2// # Copyright (C) 1998,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: casa-feedback@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#ifndef LATTICES_REGIONTYPE_H
27#define LATTICES_REGIONTYPE_H
28
29#include <casacore/casa/aips.h>
30#include <casacore/casa/BasicSL/String.h>
31
32namespace casacore { // # NAMESPACE CASACORE - BEGIN
33
34// <summary>
35// Define the various region types.
36// </summary>
37
38// <use visibility=export>
39
40// <reviewed reviewer="" date="" tests="">
41// </reviewed>
42
43// <synopsis>
44// This class defines 2 enum's used by the region classes in module
45// Lattices and Images.
46// </synopsis>
47
49 public:
50 // Define the type of region.
51 // The values are used in regionmanager(gui).g, so they should
52 // not be changed.
53 enum Type {
54 // Not used yet.
55 Invalid = -1,
56 // Other type is not used yet.
57 Other = 0,
58 // lattice region (pixel coordinates)
59 LC = 1,
60 // image region (world coordinates)
61 WC = 2,
62 // array slicer (pixel based with optional stride)
64 // Number of recognized types only
66 };
67
68 // Define if a region is absolute or relative.
69 // The values are used in regionmanager(gui).g, so they should
70 // not be changed.
72 // absolute
73 Abs = 1,
74 // relative to reference pixel
75 RelRef = 2,
76 // relative to center
77 RelCen = 3,
78 // # relative to a direction
79 // # RelDir = 4,
80 // Number of recognized types only
82 };
83
84 static AbsRelType absRelTypeFromString(const String& absreltype);
85};
86
87} // namespace casacore
88
89#endif
AbsRelType
Define if a region is absolute or relative.
Definition RegionType.h:71
@ nAbsRelTypes
Number of recognized types only.
Definition RegionType.h:81
@ RelCen
relative to center
Definition RegionType.h:77
@ RelRef
relative to reference pixel
Definition RegionType.h:75
static AbsRelType absRelTypeFromString(const String &absreltype)
Type
Define the type of region.
Definition RegionType.h:53
@ Other
Other type is not used yet.
Definition RegionType.h:57
@ nRegionTypes
Number of recognized types only.
Definition RegionType.h:65
@ Invalid
Not used yet.
Definition RegionType.h:55
@ LC
lattice region (pixel coordinates)
Definition RegionType.h:59
@ WC
image region (world coordinates)
Definition RegionType.h:61
@ ArrSlicer
array slicer (pixel based with optional stride)
Definition RegionType.h:63
String: the storage and methods of handling collections of characters.
Definition String.h:355
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28