casa
$Rev:20696$
|
00001 //# Copyright (C) 2005 00002 //# Associated Universities, Inc. Washington DC, USA. 00003 //# 00004 //# This library is free software; you can redistribute it and/or modify it 00005 //# under the terms of the GNU Library General Public License as published by 00006 //# the Free Software Foundation; either version 2 of the License, or (at your 00007 //# option) any later version. 00008 //# 00009 //# This library is distributed in the hope that it will be useful, but WITHOUT 00010 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00012 //# License for more details. 00013 //# 00014 //# You should have received a copy of the GNU Library General Public License 00015 //# along with this library; if not, write to the Free Software Foundation, 00016 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00017 //# 00018 //# Correspondence concerning AIPS++ should be addressed as follows: 00019 //# Internet email: aips2-request@nrao.edu. 00020 //# Postal address: AIPS++ Project Office 00021 //# National Radio Astronomy Observatory 00022 //# 520 Edgemont Road 00023 //# Charlottesville, VA 22903-2475 USA 00024 //# 00025 #ifndef PROFILETASKMONITOR_H_ 00026 #define PROFILETASKMONITOR_H_ 00027 00028 #include <QString> 00029 #include <casa/BasicSL/String.h> 00030 #include <casa/Arrays/Vector.h> 00031 00032 namespace casa { 00033 00034 template <class T> class ImageInterface; 00035 00036 class ProfileTaskMonitor { 00037 public: 00038 ProfileTaskMonitor(); 00039 00040 enum PURPOSE { 00041 SPECTROSCOPY, 00042 MOMENTS_COLLAPSE 00043 }; 00044 virtual QString getFileName() const = 0; 00045 virtual QString getImagePath() const =0; 00046 virtual Vector<Float> getXValues() const = 0; 00047 virtual Vector<Float> getYValues() const = 0; 00048 virtual Vector<Float>getZValues() const = 0; 00049 virtual QString getYUnit() const = 0; 00050 virtual QString getYUnitPrefix() const = 0; 00051 virtual String getXAxisUnit() const = 0; 00052 virtual void postStatus( String str ) = 0; 00053 virtual void plotMainCurve() = 0; 00054 virtual const ImageInterface<Float>* getImage( const QString& imageName = "") const = 0; 00055 virtual const void getPixelBounds( Vector<double>& xPixels, Vector<double>& yPixels) const = 0; 00056 00057 //Specific to Moments 00058 virtual void persist( const QString& key, const QString& value ) = 0; 00059 virtual QString read( const QString & key ) const = 0; 00060 virtual void imageCollapsed(String path, String dataType, String displayType, Bool autoRegister, Bool tmpData, ImageInterface<Float>* img = NULL)=0; 00061 virtual void setPurpose( ProfileTaskMonitor::PURPOSE purpose ) = 0; 00062 00063 //Specific to Spectrum Position setting. 00064 virtual void setPosition( const QList<double> &world_x, const QList<double> &world_y ) =0; 00065 00066 00067 virtual ~ProfileTaskMonitor(); 00068 }; 00069 00070 } /* namespace casa */ 00071 #endif /* PROFILETASKMONITOR_H_ */