casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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>
32 
33 #if defined(WITHOUT_DBUS)
34 #include <stdcasa/variant.h>
35 #else
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
48  {
49  public:
51 #if defined(WITHOUT_DBUS)
52  casac::variant result( ) { return result_; }
53  private:
55 #else
57  bool callback( const DBus::Message & msg );
58  private:
59  DBus::Variant result_;
60 #endif
61  };
62 
64  {
65  public:
67 #if ! defined(WITHOUT_DBUS)
68  viewer_p(0),
69 #endif
72  {};
73 
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  */
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)
99 #endif
105  };
106 
107 }
108 
109 #endif
int Int
Definition: aipstype.h:50
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
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)
if(msa.ok())
Definition: MsAverager.h:85
variant toVariant(const DBus::Variant &src)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Bool clone(const casacore::String &imageName, const casacore::String &newImageName)
float Float
Definition: aipstype.h:54
casacore::Float maskSum(const casacore::String &maskname)
bool callback(const DBus::Message &msg)
String: the storage and methods of handling collections of characters.
Definition: String.h:223