InteractiveMasking.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //# InteractiveMasking.h: Definition of the InteractiveMasking class
00003 //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
00004 //# Associated Universities, Inc. Washington DC, USA.
00005 //#
00006 //# This library is free software; you can redistribute it and/or modify it
00007 //# under the terms of the GNU Library General Public License as published by
00008 //# the Free Software Foundation; either version 2 of the License, or (at your
00009 //# option) any later version.
00010 //#
00011 //# This library is distributed in the hope that it will be useful, but WITHOUT
00012 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014 //# License for more details.
00015 //#
00016 //# You should have received a copy of the GNU Library General Public License
00017 //# along with this library; if not, write to the Free Software Foundation,
00018 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00019 //#
00020 //# Correspondence concerning AIPS++ should be addressed as follows:
00021 //#        Internet email: aips2-request@nrao.edu.
00022 //#        Postal address: AIPS++ Project Office
00023 //#                        National Radio Astronomy Observatory
00024 //#                        520 Edgemont Road
00025 //#                        Charlottesville, VA 22903-2475 USA
00026 //#
00027 //# $Id$
00028 #ifndef SYNTHESIS_INTERACTIVEMASKING_H
00029 #define SYNTHESIS_INTERACTIVEMASKING_H
00030 #include <casa/Logging/LogIO.h>
00031 #include <casa/Logging/LogMessage.h>
00032 
00033 #include <casadbus/viewer/ViewerProxy.h>
00034 #include <casadbus/plotserver/PlotServerProxy.h>
00035 #include <casadbus/utilities/BusAccess.h>
00036 #include <casadbus/session/DBusSession.h>
00037 
00038 namespace casa { //# NAMESPACE CASA - BEGIN
00039   Bool clone(const String& imageName, const String& newImageName);
00040   class ViewerProxy;
00041   
00042   class new_interactive_clean_callback 
00043   {
00044   public:
00045     new_interactive_clean_callback( ) { }
00046     casa::dbus::variant result( ) { return casa::dbus::toVariant(result_); }
00047     bool callback( const DBus::Message & msg );
00048   private:
00049     DBus::Variant result_;
00050   };
00051   
00052   class InteractiveMasking 
00053   {
00054   public:
00055     InteractiveMasking() :
00056       viewer_p(0), clean_panel_p(0), image_id_p(0), mask_id_p(0),
00057       prev_image_id_p(0), prev_mask_id_p(0)
00058     {};
00059     
00060     ~InteractiveMasking()
00061     {
00062       if ( viewer_p ) 
00063         {
00064           // viewer_p->close( clean_panel_p );
00065           viewer_p->done();
00066           delete viewer_p;
00067         }
00068     };
00069     /*
00070     Int interactivemask(const String& image, const String& mask, 
00071                         Int& niter, Int& ncycles, String& thresh, 
00072                         const Bool forceReload=False);
00073     */
00074     Int interactivemask(const String& image, const String& mask, 
00075                         Int& niter, Int& cycleniter, String& thresh, String& cyclethresh, 
00076                         const Bool forceReload=False);
00077   private:
00078     ViewerProxy *viewer_p;
00079     int clean_panel_p;
00080     int image_id_p;
00081     int mask_id_p;
00082     int prev_image_id_p;
00083     int prev_mask_id_p;
00084   };
00085   
00086 }
00087 
00088 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1