casacore
Loading...
Searching...
No Matches
LatticeHistProgress.h
Go to the documentation of this file.
1// # LatticeHistProgress.h: progress meter for LatticeHistograms
2// # Copyright (C) 1996,1997,1999,2000
3// # Associated Universities, Inc. Washington DC, USA.
4// #
5// # This library is free software; you can redistribute it and/or modify it
6// # under the terms of the GNU Library General Public License as published by
7// # the Free Software Foundation; either version 2 of the License, or (at your
8// # option) any later version.
9// #
10// # This library is distributed in the hope that it will be useful, but WITHOUT
11// # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12// # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13// # License for more details.
14// #
15// # You should have received a copy of the GNU Library General Public License
16// # along with this library; if not, write to the Free Software Foundation,
17// # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18// #
19// # Correspondence concerning AIPS++ should be addressed as follows:
20// # Internet email: casa-feedback@nrao.edu.
21// # Postal address: AIPS++ Project Office
22// # National Radio Astronomy Observatory
23// # 520 Edgemont Road
24// # Charlottesville, VA 22903-2475 USA
25
26#ifndef LATTICES_LATTICEHISTPROGRESS_H
27#define LATTICES_LATTICEHISTPROGRESS_H
28
29// # Includes
30#include <casacore/casa/aips.h>
31#include <casacore/lattices/LatticeMath/LatticeProgress.h>
32namespace casacore { // # NAMESPACE CASACORE - BEGIN
33
34class ProgressMeter;
35
36// <summary> Provides a progress meter for the <src>LatticeHistograms</src> class </summary>
37// <use visibility=export>
38//
39// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
40// </reviewed>
41//
42// <prerequisite>
43// <li> <linkto module=Lattices>LatticeProgress</linkto>
44// </prerequisite>
45//
46// <etymology>
47// Display a progress meter for the class <src>LatticeHistograms</src>
48// </etymology>
49//
50// <synopsis>
51// Progress meters can be displayed by the <src>LatticeApply</src> class
52// which is used by <src>LatticeHistograms</src> in order to optimally iterate
53// through the image. To do this, one must derive a
54// class from <src>LatticeProgress</src>. <src>LatticeApply</src> calls
55// methods declared in <src>LatticeProgress</src> and implemented in
56// the derived class.
57// </synopsis>
58//
59// <motivation>
60// I like progress meters !
61// </motivation>
62//
63// <todo asof="1998/01/10">
64// </todo>
67 public:
68 // Constructor makes a null object
70
71 // Destructor deletes the ProgressMeter pointer
72 virtual ~LatticeHistProgress();
73
74 // Initialize this object. Here we create the ProgressMeter
75 // This function is called by the <src>init</src> in LatticeProgress
76 virtual void initDerived();
77
78 // Tell the number of steps done so far.
79 virtual void nstepsDone(uInt nsteps);
80
81 // The process has ended so clean things up.
82 virtual void done();
83
84 private:
86};
87
88} // namespace casacore
89
90#endif
virtual void nstepsDone(uInt nsteps)
Tell the number of steps done so far.
LatticeHistProgress()
Constructor makes a null object.
virtual void initDerived()
Initialize this object.
virtual void done()
The process has ended so clean things up.
virtual ~LatticeHistProgress()
Destructor deletes the ProgressMeter pointer.
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49