casa
5.7.0-16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
casa
code
display
QtPlotter
QtMWCTools.qo.h
Go to the documentation of this file.
1
//# Copyright (C) 2005
2
//# Associated Universities, Inc. Washington DC, USA.
3
//#
4
//# This library is free software; you can redistribute it and/or modify it
5
//# under the terms of the GNU Library General Public License as published by
6
//# the Free Software Foundation; either version 2 of the License, or (at your
7
//# option) any later version.
8
//#
9
//# This library is distributed in the hope that it will be useful, but WITHOUT
10
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
//# License for more details.
13
//#
14
//# You should have received a copy of the GNU Library General Public License
15
//# along with this library; if not, write to the Free Software Foundation,
16
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17
//#
18
//# Correspondence concerning AIPS++ should be addressed as follows:
19
//# Internet email: aips2-request@nrao.edu.
20
//# Postal address: AIPS++ Project Office
21
//# National Radio Astronomy Observatory
22
//# 520 Edgemont Road
23
//# Charlottesville, VA 22903-2475 USA
24
//#
25
26
27
#ifndef QTMWCTOOLS_H
28
#define QTMWCTOOLS_H
29
30
#include <
casa/aips.h
>
31
32
#include <
display/Display/PanelDisplay.h
>
33
#include <
display/QtViewer/QtMouseTools.qo.h
>
34
#include <
display/region/RegionSourceFactory.h
>
35
36
#include <
graphics/X11/X_enter.h
>
37
#include <QObject>
38
#include <QtGui>
39
#include <
graphics/X11/X_exit.h
>
40
41
namespace
casa {
42
43
enum
ProfileType
{
44
UNKNPROF
,
45
SINGPROF
,
46
RECTPROF
,
47
ELLPROF
,
48
POLYPROF
,
49
POLYLINEPROF
,
50
PVPROF
51
};
52
53
class
QtMWCTool
{
54
55
public
:
56
QtMWCTool
():
coordType
(
"world"
) {}
57
virtual
~QtMWCTool
() {}
58
protected
:
59
casacore::String
coordType
;
60
61
public
:
62
virtual
void
setCoordType
(
const
casacore::String
& t) {
63
if
(t ==
"world"
)
coordType
= t;
64
else
coordType
=
"pixel"
;
65
// cout << "Object=" << objectName().toStdString()
66
// << " setCoordType: coordType=" << coordType
67
// << " t=" << t << endl;
68
}
69
//casacore::String getCoordType() {return coordType;}
70
71
};
72
73
class
QtPolyTool
:
public
QtPTRegion
,
public
QtMWCTool
{
74
Q_OBJECT
75
76
public
:
77
QtPolyTool
(
viewer::RegionSourceFactory
*rf,
PanelDisplay
* pd);
78
virtual
~QtPolyTool
() {}
79
80
public
slots:
81
void
setCoordType
(
const
casacore::String
& t);
82
83
signals:
84
void
wcNotify
(
const
casacore::String
c
,
85
const
casacore::Vector<double>
px,
const
casacore::Vector<double>
py,
86
const
casacore::Vector<double>
wx,
const
casacore::Vector<double>
wy,
87
const
ProfileType
ptype);
88
89
protected
:
90
virtual
void
updateRegion
();
91
92
};
93
94
class
QtPolylineTool
:
public
QtPolylineToolRegion
,
public
QtMWCTool
{
95
Q_OBJECT
96
97
public
:
98
QtPolylineTool
(
viewer::RegionSourceFactory
*rf,
PanelDisplay
* pd);
99
virtual
~QtPolylineTool
() {}
100
101
public
slots:
102
void
setCoordType
(
const
casacore::String
& t);
103
104
signals:
105
void
wcNotify
(
const
casacore::String
c
,
106
const
casacore::Vector<double>
px,
const
casacore::Vector<double>
py,
107
const
casacore::Vector<double>
wx,
const
casacore::Vector<double>
wy,
108
const
ProfileType
ptype);
109
110
protected
:
111
virtual
void
updateRegion
();
112
113
};
114
115
class
QtEllipseTool
:
public
QtELRegion
,
public
QtMWCTool
{
116
Q_OBJECT
117
118
public
:
119
QtEllipseTool
(
viewer::RegionSourceFactory
*rf,
PanelDisplay
*pd);
120
virtual
~QtEllipseTool
() {}
121
122
public
slots:
123
void
setCoordType
(
const
casacore::String
& t);
124
125
signals:
126
void
wcNotify
(
const
casacore::String
c
,
127
const
casacore::Vector<double>
px,
const
casacore::Vector<double>
py,
128
const
casacore::Vector<double>
wx,
const
casacore::Vector<double>
wy,
129
const
ProfileType
ptype);
130
131
protected
:
132
virtual
void
updateRegion
();
133
};
134
135
136
class
QtRectTool
:
public
QtRTRegion
,
public
QtMWCTool
{
137
Q_OBJECT
138
139
public
:
140
QtRectTool
(
viewer::RegionSourceFactory
*rf,
PanelDisplay
* pd);
141
virtual
~QtRectTool
() {}
142
143
public
slots:
144
void
setCoordType
(
const
casacore::String
& t);
145
146
signals:
147
void
wcNotify
(
const
casacore::String
c
,
148
const
casacore::Vector<double>
px,
const
casacore::Vector<double>
py,
149
const
casacore::Vector<double>
wx,
const
casacore::Vector<double>
wy,
150
const
ProfileType
ptype);
151
152
protected
:
153
virtual
void
updateRegion
();
154
};
155
156
class
QtCrossTool
:
public
QtPointRegion
,
public
QtMWCTool
{
157
Q_OBJECT
158
159
public
:
160
QtCrossTool
(
viewer::RegionSourceFactory
*rf,
PanelDisplay
* pd);
161
virtual
~QtCrossTool
() {}
162
/* virtual void crosshairReady(const casacore::String& evtype); */
163
164
public
slots:
165
void
setCoordType
(
const
casacore::String
& t);
166
167
signals:
168
void
wcNotify
(
const
casacore::String
c
,
169
const
casacore::Vector<double>
px,
const
casacore::Vector<double>
py,
170
const
casacore::Vector<double>
wx,
const
casacore::Vector<double>
wy,
171
const
ProfileType
ptype);
172
173
protected
:
174
virtual
void
updateRegion
();
175
};
176
177
class
QtPVTool
:
public
QtPVToolRegion
,
public
QtMWCTool
{
178
Q_OBJECT
179
180
public
:
181
QtPVTool
(
viewer::RegionSourceFactory
*rf,
PanelDisplay
* pd);
182
virtual
~QtPVTool
() {}
183
184
public
slots:
185
void
setCoordType
(
const
casacore::String
& t);
186
187
signals:
188
void
wcNotify
(
const
casacore::String
c
,
189
const
casacore::Vector<double>
px,
const
casacore::Vector<double>
py,
190
const
casacore::Vector<double>
wx,
const
casacore::Vector<double>
wy,
191
const
ProfileType
ptype);
192
193
protected
:
194
virtual
void
updateRegion
();
195
196
};
197
198
}
199
200
#endif
201
casa::QtPolylineTool
Definition:
QtMWCTools.qo.h:94
PanelDisplay.h
casacore::Vector< double >
casa::QtMWCTool::setCoordType
virtual void setCoordType(const casacore::String &t)
Definition:
QtMWCTools.qo.h:62
casa::QtMWCTool::~QtMWCTool
virtual ~QtMWCTool()
Definition:
QtMWCTools.qo.h:57
casa::QtEllipseTool::~QtEllipseTool
virtual ~QtEllipseTool()
Definition:
QtMWCTools.qo.h:120
casa::QtCrossTool::setCoordType
void setCoordType(const casacore::String &t)
casa::QtPolyTool::~QtPolyTool
virtual ~QtPolyTool()
Definition:
QtMWCTools.qo.h:78
aips.h
X_enter.h
casa::QtELRegion
Definition:
QtMouseTools.qo.h:167
casa::QtMWCTool
Definition:
QtMWCTools.qo.h:53
casa::QtPTRegion
Definition:
QtMouseTools.qo.h:210
casa::QtPolylineToolRegion
Definition:
QtMouseTools.qo.h:269
X_exit.h
casa::QtPVTool::wcNotify
void wcNotify(const casacore::String c, const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::Vector< double > wy, const ProfileType ptype)
casa::PVPROF
Definition:
QtMWCTools.qo.h:50
casa::QtRectTool
Definition:
QtMWCTools.qo.h:136
casa::RECTPROF
Definition:
QtMWCTools.qo.h:46
casa::QtRTRegion
Definition:
QtMouseTools.qo.h:75
casa::ProfileType
ProfileType
Definition:
QtMWCTools.qo.h:43
casa::QtPolylineTool::QtPolylineTool
QtPolylineTool(viewer::RegionSourceFactory *rf, PanelDisplay *pd)
casa::QtPolyTool::QtPolyTool
QtPolyTool(viewer::RegionSourceFactory *rf, PanelDisplay *pd)
casa::QtEllipseTool::setCoordType
void setCoordType(const casacore::String &t)
casa::QtMWCTool::coordType
casacore::String coordType
Definition:
QtMWCTools.qo.h:59
casa::QtCrossTool::updateRegion
virtual void updateRegion()
casa::QtPolyTool::updateRegion
virtual void updateRegion()
casa::QtPVTool::QtPVTool
QtPVTool(viewer::RegionSourceFactory *rf, PanelDisplay *pd)
casa::QtEllipseTool
Definition:
QtMWCTools.qo.h:115
casa::QtPolylineTool::setCoordType
void setCoordType(const casacore::String &t)
casa::QtCrossTool::~QtCrossTool
virtual ~QtCrossTool()
Definition:
QtMWCTools.qo.h:161
casa::QtPolylineTool::~QtPolylineTool
virtual ~QtPolylineTool()
Definition:
QtMWCTools.qo.h:99
casa::QtRectTool::~QtRectTool
virtual ~QtRectTool()
Definition:
QtMWCTools.qo.h:141
casa::QtEllipseTool::wcNotify
void wcNotify(const casacore::String c, const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::Vector< double > wy, const ProfileType ptype)
casa::QtPVTool::~QtPVTool
virtual ~QtPVTool()
Definition:
QtMWCTools.qo.h:182
casa::QtCrossTool
Definition:
QtMWCTools.qo.h:156
casa::QtPolyTool::setCoordType
void setCoordType(const casacore::String &t)
casa::QtRectTool::QtRectTool
QtRectTool(viewer::RegionSourceFactory *rf, PanelDisplay *pd)
casa::QtPolylineTool::updateRegion
virtual void updateRegion()
RegionSourceFactory.h
casa::QtCrossTool::wcNotify
void wcNotify(const casacore::String c, const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::Vector< double > wy, const ProfileType ptype)
casa::QtPolyTool
Definition:
QtMWCTools.qo.h:73
casa::viewer::RegionSourceFactory
Definition:
RegionSourceFactory.h:11
casa::QtPVToolRegion
Definition:
QtMouseTools.qo.h:326
casa::QtPolylineTool::wcNotify
void wcNotify(const casacore::String c, const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::Vector< double > wy, const ProfileType ptype)
QtMouseTools.qo.h
casa::UNKNPROF
Definition:
QtMWCTools.qo.h:44
casa::QtEllipseTool::updateRegion
virtual void updateRegion()
casa::QtPVTool::updateRegion
virtual void updateRegion()
casa::QtPVTool
Definition:
QtMWCTools.qo.h:177
casa::QtRectTool::updateRegion
virtual void updateRegion()
casa::POLYPROF
Definition:
QtMWCTools.qo.h:48
casa::SINGPROF
Definition:
QtMWCTools.qo.h:45
casa::QtPolyTool::wcNotify
void wcNotify(const casacore::String c, const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::Vector< double > wy, const ProfileType ptype)
casacore::C::c
const Double c
Fundamental physical constants (SI units):
casa::QtPointRegion
Definition:
QtMouseTools.qo.h:121
casa::POLYLINEPROF
Definition:
QtMWCTools.qo.h:49
casa::PanelDisplay
A class which creates and manages "panelled" displays.
Definition:
PanelDisplay.h:79
casa::QtCrossTool::QtCrossTool
QtCrossTool(viewer::RegionSourceFactory *rf, PanelDisplay *pd)
casacore::String
String: the storage and methods of handling collections of characters.
Definition:
String.h:223
casa::QtEllipseTool::QtEllipseTool
QtEllipseTool(viewer::RegionSourceFactory *rf, PanelDisplay *pd)
casa::QtRectTool::wcNotify
void wcNotify(const casacore::String c, const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::Vector< double > wy, const ProfileType ptype)
casa::QtPVTool::setCoordType
void setCoordType(const casacore::String &t)
casa::QtRectTool::setCoordType
void setCoordType(const casacore::String &t)
casa::QtMWCTool::QtMWCTool
QtMWCTool()
Definition:
QtMWCTools.qo.h:56
casa::ELLPROF
Definition:
QtMWCTools.qo.h:47
Generated on Sun Sep 1 2019 23:32:32 for casa by
1.8.5