casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProfileTaskMonitor.h
Go to the documentation of this file.
1 //# Copyright (C) 2005
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 #ifndef PROFILETASKMONITOR_H_
26 #define PROFILETASKMONITOR_H_
27 
28 #include <QString>
29 #include <casa/BasicSL/String.h>
30 #include <casa/Arrays/Vector.h>
33 
34 namespace casacore{
35 
36  template <class T> class ImageInterface;
37 }
38 
39 namespace casa {
40 
41 
43  public:
45 
46  enum PURPOSE {
49  };
50  virtual QString getFileName() const = 0;
51  virtual QString getImagePath() const =0;
52  virtual bool getBeamInfo( const QString& curveName, casacore::Double& beamAngle, casacore::Double& beamArea ) const = 0;
53  virtual casacore::SpectralCoordinate getSpectralCoordinate(std::shared_ptr<const casacore::ImageInterface<casacore::Float> > imagePtr, casacore::Bool& validCoord ) = 0;
59  virtual QString getYUnit() const = 0;
60  virtual QString getYUnitPrefix() const = 0;
61  virtual casacore::String getXAxisUnit() const = 0;
62  virtual casacore::String getRegionShape() const = 0;
63  virtual void postStatus( casacore::String str ) = 0;
64  virtual void plotMainCurve() = 0;
65  virtual std::shared_ptr<const casacore::ImageInterface<casacore::Float> > getImage( const QString& imageName = "") const = 0;
66  virtual void getPixelBounds( casacore::Vector<double>& xPixels, casacore::Vector<double>& yPixels) const = 0;
68  //Specific to Moments
69  virtual void persist( const QString& key, const QString& value ) = 0;
70  virtual QString read( const QString & key ) const = 0;
71  virtual void imageCollapsed(casacore::String path, casacore::String dataType, casacore::String displayType,
72  casacore::Bool autoRegister, casacore::Bool tmpData,
73  std::shared_ptr<casacore::ImageInterface<casacore::Float> > img = std::shared_ptr<casacore::ImageInterface<casacore::Float> >())=0;
74  virtual void setPurpose( ProfileTaskMonitor::PURPOSE purpose ) = 0;
75 
76  //Specific to Spectrum Position setting.
77  virtual void setPosition( const QList<double> &world_x, const QList<double> &world_y ) =0;
78 
79 
80  virtual ~ProfileTaskMonitor();
81  };
82 
83 } // end namespace casa
84 
85 #endif /* PROFILETASKMONITOR_H_ */
virtual casacore::MFrequency::Types getReferenceFrame() const =0
virtual QString getYUnitPrefix() const =0
virtual void imageCollapsed(casacore::String path, casacore::String dataType, casacore::String displayType, casacore::Bool autoRegister, casacore::Bool tmpData, std::shared_ptr< casacore::ImageInterface< casacore::Float > > img=std::shared_ptr< casacore::ImageInterface< casacore::Float > >())=0
virtual casacore::Vector< casacore::Float > getZValues() const =0
virtual casacore::Vector< casacore::Double > getRegionYValues() const =0
virtual void setPurpose(ProfileTaskMonitor::PURPOSE purpose)=0
virtual std::shared_ptr< const casacore::ImageInterface< casacore::Float > > getImage(const QString &imageName="") const =0
virtual QString getImagePath() const =0
virtual casacore::SpectralCoordinate getSpectralCoordinate(std::shared_ptr< const casacore::ImageInterface< casacore::Float > > imagePtr, casacore::Bool &validCoord)=0
virtual casacore::Vector< casacore::Double > getRegionXValues() const =0
virtual casacore::String getRegionShape() const =0
virtual casacore::Vector< casacore::Float > getYValues() const =0
virtual void getPixelBounds(casacore::Vector< double > &xPixels, casacore::Vector< double > &yPixels) const =0
double Double
Definition: aipstype.h:55
std::string path(const std::string &name)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual casacore::Vector< casacore::Float > getXValues() const =0
virtual void setPosition(const QList< double > &world_x, const QList< double > &world_y)=0
Specific to Spectrum Position setting.
virtual void postStatus(casacore::String str)=0
virtual QString getFileName() const =0
virtual casacore::String getXAxisUnit() const =0
virtual void plotMainCurve()=0
Interconvert pixel and frequency values.
virtual QString getYUnit() const =0
String: the storage and methods of handling collections of characters.
Definition: String.h:223
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
Definition: MFrequency.h:176
virtual bool getBeamInfo(const QString &curveName, casacore::Double &beamAngle, casacore::Double &beamArea) const =0
virtual void persist(const QString &key, const QString &value)=0
Specific to Moments.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
virtual QString read(const QString &key) const =0
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42