ProfileTaskMonitor.h

Go to the documentation of this file.
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 #include <coordinates/Coordinates/SpectralCoordinate.h>
00032 #include <measures/Measures/MFrequency.h>
00033 
00034 namespace casa {
00035 
00036         template <class T> class ImageInterface;
00037 
00038         class ProfileTaskMonitor {
00039         public:
00040                 ProfileTaskMonitor();
00041 
00042                 enum PURPOSE {
00043                     SPECTROSCOPY,
00044                     MOMENTS_COLLAPSE
00045                 };
00046                 virtual QString getFileName() const = 0;
00047                 virtual QString getImagePath() const =0;
00048                 virtual bool getBeamInfo( const QString& curveName, Double& beamAngle, Double& beamArea ) const = 0;
00049                 virtual SpectralCoordinate getSpectralCoordinate(SHARED_PTR<const ImageInterface<Float> > imagePtr, Bool& validCoord ) = 0;
00050                 virtual Vector<Float> getXValues() const = 0;
00051                 virtual Vector<Float> getYValues() const = 0;
00052                 virtual Vector<Float>getZValues() const = 0;
00053                 virtual Vector<Double> getRegionXValues() const = 0;
00054                 virtual Vector<Double> getRegionYValues() const = 0;
00055                 virtual QString getYUnit() const = 0;
00056                 virtual QString getYUnitPrefix() const = 0;
00057                 virtual String getXAxisUnit() const = 0;
00058                 virtual String getRegionShape() const = 0;
00059                 virtual void postStatus( String str ) = 0;
00060                 virtual void plotMainCurve() = 0;
00061                 virtual SHARED_PTR<const ImageInterface<Float> > getImage( const QString& imageName = "") const = 0;
00062                 virtual void getPixelBounds( Vector<double>& xPixels, Vector<double>& yPixels) const = 0;
00063                 virtual MFrequency::Types getReferenceFrame() const = 0;
00064                 //Specific to Moments
00065                 virtual void persist( const QString& key, const QString& value ) = 0;
00066                 virtual QString read( const QString & key ) const = 0;
00067                 virtual void imageCollapsed(String path, String dataType, String displayType,
00068                                 Bool autoRegister, Bool tmpData,
00069                                 SHARED_PTR<ImageInterface<Float> > img = SHARED_PTR<ImageInterface<Float> >())=0;
00070                 virtual void setPurpose( ProfileTaskMonitor::PURPOSE purpose ) = 0;
00071 
00072                 //Specific to Spectrum Position setting.
00073                 virtual void setPosition( const QList<double> &world_x, const QList<double> &world_y ) =0;
00074 
00075 
00076                 virtual ~ProfileTaskMonitor();
00077         };
00078 
00079 } /* namespace casa */
00080 #endif /* PROFILETASKMONITOR_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1