casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotMSIterParam.h
Go to the documentation of this file.
1 //# PlotMSIterateParam.h: Iteration parameters container
2 //# Copyright (C) 2009
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 PLOTMSITERPARAM_H_
28 #define PLOTMSITERPARAM_H_
29 
31 
32 namespace casa {
33 
34 // Specifies iteration parameters for plotms
36 public:
37  // Static //
38 
39  // None
40 
41  // Non-Static //
42 
43  // Constructor, which uses default values.
45 
46  // Destructor.
48 
49 
50  // Converts this object to/from a record. Each field will have a key that
51  // is its enum name
52  // <group>
53  void fromRecord(const casacore::RecordInterface& record);
54  casacore::Record toRecord() const;
55  // </group>
56 
57 
58  // Convenience methods for returning the standard field values.
59  // <group>
60  PMS::Axis iterAxis() const { return iterAxis_; };
66  casacore::Int getGridRow() const { return gridRow;};
67  casacore::Int getGridCol() const { return gridCol;};
68 
69  // </group>
70 
71 
72  // Convenience methods for setting the standard field values.
73  // <group>
74  void setIterAxis(PMS::Axis iterAxis) { iterAxis_ = iterAxis; };
75  void setIterAxis(casacore::String iterAxisStr) { iterAxis_ = PMS::axis(iterAxisStr=="" ? "None" : iterAxisStr); };
76  void setCommonAxisX(casacore::Bool commonAxisX ){commonAxisX_ = commonAxisX; };
77  void setCommonAxisY(casacore::Bool commonAxisY ){commonAxisY_ = commonAxisY; };
78  void setGlobalScaleX(casacore::Bool globalAxisX ){globalScaleX_ = globalAxisX; };
79  void setGlobalScaleY(casacore::Bool globalAxisY ){globalScaleY_ = globalAxisY; };
82  bool isIteration() const;
83  // </group>
84 
85 
86  // Equality operators.
87  // <group>
88  bool operator==(const PlotMSIterParam& other) const;
89  bool operator!=(const PlotMSIterParam& other) const {
90  return !(operator==(other)); }
91  // </group>
92 
93  // Print out a summary
94  casacore::String summary() const;
95 
96  // Sets the default values.
97  void setDefaults();
98 
99 private:
100 
101  // The Iteration axis
102  PMS::Axis iterAxis_;
104 
105  // global scale X and Y axes
109 
110  //Whether to use a common axis when the grid consists of
111  //multiple plots and the axis has a global scale.
115 
116 
117  // The location of the plot in rows and columns
122 
123 
124 
125 };
126 
127 }
128 
129 #endif /* PLOTMSITERPARAM_H_ */
PMS::Axis iterAxis() const
Convenience methods for returning the standard field values.
int Int
Definition: aipstype.h:50
void setIterAxis(casacore::String iterAxisStr)
casacore::Int getGridCol() const
casacore::Int getGridRow() const
void setCommonAxisX(casacore::Bool commonAxisX)
static const casacore::String GLOBAL_SCALE_Y
void setGlobalScaleY(casacore::Bool globalAxisY)
bool operator!=(const PlotMSIterParam &other) const
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
casacore::Record toRecord() const
static const casacore::String ROW_INDEX
casacore::Bool commonAxisY_
void fromRecord(const casacore::RecordInterface &record)
Converts this object to/from a record.
casacore::Bool isGlobalAxisY() const
void setIterAxis(PMS::Axis iterAxis)
Convenience methods for setting the standard field values.
PlotMSIterParam()
Static //.
void setGridCol(casacore::Int ny)
~PlotMSIterParam()
Destructor.
casacore::Int gridRow
The location of the plot in rows and columns.
bool operator==(const PlotMSIterParam &other) const
Equality operators.
void setGlobalScaleX(casacore::Bool globalAxisX)
casacore::Bool isCommonAxisX() const
casacore::Bool globalScaleX_
global scale X and Y axes
Specifies iteration parameters for plotms.
void setGridRow(casacore::Int nx)
bool isIteration() const
static const casacore::String COL_INDEX
PMS::Axis iterAxis_
The Iteration axis.
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
casacore::Bool commonAxisX_
Whether to use a common axis when the grid consists of multiple plots and the axis has a global scale...
static const casacore::String ITER_AXIS
casacore::Bool isCommonAxisY() const
static const casacore::String COMMON_AXIS_X
static const casacore::String GLOBAL_SCALE_X
casacore::String summary() const
Print out a summary.
void setCommonAxisY(casacore::Bool commonAxisY)
String: the storage and methods of handling collections of characters.
Definition: String.h:223
static const casacore::String COMMON_AXIS_Y
Abstract base class for Record classes.
void setDefaults()
Sets the default values.
casacore::Bool isGlobalAxisX() const
casacore::Bool globalScaleY_
casacore::String iterAxisStr() const