casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WCSimpleResampleHandler.h
Go to the documentation of this file.
1 //# WCSimpleResampleHandler.h: Simple (nearest,linear,cubic) resampling for the WorldCanvas
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001
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: aips2-request@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 //# $Id$
27 
28 #ifndef TRIALDISPLAY_WCSIMPLERESAMPLEHANDLER_H
29 #define TRIALDISPLAY_WCSIMPLERESAMPLEHANDLER_H
30 
31 #include <casa/aips.h>
34 
35 namespace casa { //# NAMESPACE CASA - BEGIN
36 
37 // <summary>
38 // Class which implements simple resampling for the WorldCanvas.
39 // </summary>
40 //
41 // <prerequisite>
42 // <li> <linkto class="WCResampleHandler>WCResampleHandler</linkto>
43 // </prerequisite>
44 //
45 // <etymology>
46 // The name "WCSimpleResampleHandler" is a contraction of the terms
47 // "WorldCanvas," "Simple," "Resample" and "Handler."
48 // </etymology>
49 //
50 // <synopsis>
51 // This class implements the interface defined in WCResampleHandler
52 // to provide pixel interpolation (resampling) of data pixels to screen pixels.
53 // It offers simple nearest, linear and cubic interpolation.
54 // </synopsis>
55 //
56 // <motivation>
57 // The provision of raster images which are smooth in appearance.
58 // </motivation>
59 
61 
62  public:
63 
64  // Default constructor (Provides NEAREST)
66 
67  // Constructor
69 
70  // Copy Constructor (copy semantics)
72 
73  // Assignment operator (copy semantics)
75 
76  // Destructor
77  virtual ~WCSimpleResampleHandler();
78 
79  // Reset interpolation method
81 
82  // The output array is presized by the caller to the correct size. It will
83  // be filled using information in the input array combined with other
84  // resample-specific information. Here again the interface is type expanded
85  // rather than templated because C++ doesn't yet handle templated member
86  // functions in a non-templated class.
87  // <group>
101  // </group>
102 
103  // This function resamples the input matrix to the output.
104  // pixblc is the location relative to the input matrix of the
105  // bottom-left pixel of the output (sim. for pixtrc); blank is
106  // the output value where none of the input data is useful.
107  // The output matrix must be presized to the required size.
108  // <group>
110  const casacore::Vector<casacore::Float> &pixblc,
111  const casacore::Vector<casacore::Float> &pixtrc,
112  const casacore::Float blank = 0.0);
117  const casacore::Float blank = 0.0);
119  const casacore::Vector<casacore::Float> &pixblc,
120  const casacore::Vector<casacore::Float> &pixtrc,
121  const casacore::Bool blank = false);
122  // </group>
123 
124 
125  private:
127  };
128 
129 
130 } //# NAMESPACE CASA - END
131 
132 #endif
133 
WCSimpleResampleHandler & operator=(const WCSimpleResampleHandler &other)
Assignment operator (copy semantics)
virtual Type type()
Return the type enum.
void setInterpolationType(casacore::Interpolate2D::Method type)
Reset interpolation method.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual ~WCSimpleResampleHandler()
Destructor.
float Float
Definition: aipstype.h:54
Base class for resampling data pixels to World/PixelCanvas pixels.
Class which implements simple resampling for the WorldCanvas.
A two dimension interpolator for Matrices or Arrays.
Definition: Interpolate2D.h:97
virtual void operator()(casacore::Matrix< casacore::Bool > &out, const casacore::Matrix< casacore::Bool > &in)
The output array is presized by the caller to the correct size.
WCSimpleResampleHandler()
Default constructor (Provides NEAREST)