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
synthesis
ImagerObjects
InteractiveMasking.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//# InteractiveMasking.h: Definition of the InteractiveMasking class
3
//# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
4
//# Associated Universities, Inc. Washington DC, USA.
5
//#
6
//# This library is free software; you can redistribute it and/or modify it
7
//# under the terms of the GNU Library General Public License as published by
8
//# the Free Software Foundation; either version 2 of the License, or (at your
9
//# option) any later version.
10
//#
11
//# This library is distributed in the hope that it will be useful, but WITHOUT
12
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14
//# License for more details.
15
//#
16
//# You should have received a copy of the GNU Library General Public License
17
//# along with this library; if not, write to the Free Software Foundation,
18
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19
//#
20
//# Correspondence concerning AIPS++ should be addressed as follows:
21
//# Internet email: aips2-request@nrao.edu.
22
//# Postal address: AIPS++ Project Office
23
//# National Radio Astronomy Observatory
24
//# 520 Edgemont Road
25
//# Charlottesville, VA 22903-2475 USA
26
//#
27
//# $Id$
28
#ifndef SYNTHESIS_INTERACTIVEMASKING_H
29
#define SYNTHESIS_INTERACTIVEMASKING_H
30
#include <
casa/Logging/LogIO.h
>
31
#include <
casa/Logging/LogMessage.h
>
32
33
#if defined(WITHOUT_DBUS)
34
#include <
stdcasa/variant.h
>
35
#else
36
#include <
casadbus/viewer/ViewerProxy.h
>
37
#include <
casadbus/plotserver/PlotServerProxy.h
>
38
#include <
casadbus/utilities/BusAccess.h
>
39
#include <
casadbus/session/DBusSession.h
>
40
#endif
41
42
namespace
casa {
//# NAMESPACE CASA - BEGIN
43
casacore::Bool
clone
(
const
casacore::String
& imageName,
const
casacore::String
& newImageName);
44
#if ! defined(WITHOUT_DBUS)
45
class
ViewerProxy;
46
#endif
47
class
new_interactive_clean_callback
48
{
49
public
:
50
new_interactive_clean_callback
( ) { }
51
#if defined(WITHOUT_DBUS)
52
casac::variant
result
( ) {
return
result_
; }
53
private
:
54
casac::variant
result_
;
55
#else
56
casa::dbus::variant
result
( ) {
return
casa::dbus::toVariant
(
result_
); }
57
bool
callback
(
const
DBus::Message & msg );
58
private
:
59
DBus::Variant
result_
;
60
#endif
61
};
62
63
class
InteractiveMasking
64
{
65
public
:
66
InteractiveMasking
() :
67
#
if
! defined(WITHOUT_DBUS)
68
viewer_p
(0),
69
#endif
70
clean_panel_p
(0),
image_id_p
(0),
mask_id_p
(0),
71
prev_image_id_p
(0),
prev_mask_id_p
(0)
72
{};
73
74
~InteractiveMasking
()
75
{
76
#if ! defined(WITHOUT_DBUS)
77
if
(
viewer_p
)
78
{
79
// viewer_p->close( clean_panel_p );
80
viewer_p
->
done
();
81
delete
viewer_p
;
82
}
83
#endif
84
};
85
/*
86
casacore::Int interactivemask(const casacore::String& image, const casacore::String& mask,
87
casacore::Int& niter, casacore::Int& ncycles, casacore::String& thresh,
88
const casacore::Bool forceReload=false);
89
*/
90
casacore::Int
interactivemask
(
const
casacore::String
& image,
const
casacore::String
&
mask
,
91
casacore::Int
& niter,
casacore::Int
& cycleniter,
casacore::String
& thresh,
casacore::String
& cyclethresh,
92
const
casacore::Bool
forceReload=
false
);
93
94
casacore::Float
maskSum
(
const
casacore::String
& maskname);
95
96
private
:
97
#if ! defined(WITHOUT_DBUS)
98
ViewerProxy
*
viewer_p
;
99
#endif
100
int
clean_panel_p
;
101
int
image_id_p
;
102
int
mask_id_p
;
103
int
prev_image_id_p
;
104
int
prev_mask_id_p
;
105
};
106
107
}
108
109
#endif
casacore::Int
int Int
Definition:
aipstype.h:50
casa::InteractiveMasking::clean_panel_p
int clean_panel_p
Definition:
InteractiveMasking.h:100
casa::new_interactive_clean_callback
Definition:
InteractiveMasking.h:47
casacore::mask
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
casa::InteractiveMasking::mask_id_p
int mask_id_p
Definition:
InteractiveMasking.h:102
casa::InteractiveMasking::~InteractiveMasking
~InteractiveMasking()
Definition:
InteractiveMasking.h:74
casa::InteractiveMasking::InteractiveMasking
InteractiveMasking()
Definition:
InteractiveMasking.h:66
casa::ViewerProxy
Definition:
ViewerProxy.h:39
BusAccess.h
casa::InteractiveMasking::interactivemask
casacore::Int interactivemask(const casacore::String &image, const casacore::String &mask, casacore::Int &niter, casacore::Int &cycleniter, casacore::String &thresh, casacore::String &cyclethresh, const casacore::Bool forceReload=false)
PlotServerProxy.h
ViewerProxy.h
casa::InteractiveMasking
Definition:
InteractiveMasking.h:63
if
if(msa.ok())
Definition:
MsAverager.h:85
casa::dbus::variant
Definition:
variant.h:41
LogMessage.h
casa::InteractiveMasking::image_id_p
int image_id_p
Definition:
InteractiveMasking.h:101
casa::new_interactive_clean_callback::result
casa::dbus::variant result()
Definition:
InteractiveMasking.h:56
casa::new_interactive_clean_callback::result_
DBus::Variant result_
Definition:
InteractiveMasking.h:59
casa::dbus::toVariant
variant toVariant(const DBus::Variant &src)
DBusSession.h
casacore::Bool
bool Bool
Define the standard types used by Casacore.
Definition:
aipstype.h:42
casa::clone
casacore::Bool clone(const casacore::String &imageName, const casacore::String &newImageName)
casa::ViewerProxy::done
bool done()
Definition:
ViewerProxy.h:123
casacore::Float
float Float
Definition:
aipstype.h:54
LogIO.h
casa::InteractiveMasking::maskSum
casacore::Float maskSum(const casacore::String &maskname)
casa::InteractiveMasking::prev_mask_id_p
int prev_mask_id_p
Definition:
InteractiveMasking.h:104
variant.h
casa::InteractiveMasking::prev_image_id_p
int prev_image_id_p
Definition:
InteractiveMasking.h:103
casa::new_interactive_clean_callback::callback
bool callback(const DBus::Message &msg)
casacore::String
String: the storage and methods of handling collections of characters.
Definition:
String.h:223
casa::InteractiveMasking::viewer_p
ViewerProxy * viewer_p
Definition:
InteractiveMasking.h:98
casac::variant
Definition:
variant.h:12
casa::new_interactive_clean_callback::new_interactive_clean_callback
new_interactive_clean_callback()
Definition:
InteractiveMasking.h:50
Generated on Sun Sep 1 2019 23:32:41 for casa by
1.8.5