VTK
vtkGDALRasterReprojection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGDALRasterReprojection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
20 #ifndef vtkGDALRasterReprojection_h
21 #define vtkGDALRasterReprojection_h
22 
23 // VTK Includes
24 #include "vtkGeovisGDALModule.h" // For export macro
25 #include "vtkObject.h"
26 
27 class GDALDataset;
28 
29 class VTKGEOVISGDAL_EXPORT vtkGDALRasterReprojection : public vtkObject
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
42  vtkSetClampMacro(MaxError, double, 0.0, VTK_DOUBLE_MAX);
44 
46 
56  vtkSetClampMacro(ResamplingAlgorithm, int, 0, 6);
58 
67  bool SuggestOutputDimensions(GDALDataset* inputDataset,
68  const char* outputProjection,
69  double geoTransform[6],
70  int* nPixels,
71  int* nLines,
72  double maxError = 0.0);
73 
80  bool Reproject(GDALDataset* input, GDALDataset* output);
81 
82 protected:
85 
86  double MaxError;
88 
89 private:
91  void operator=(const vtkGDALRasterReprojection&) = delete;
92 };
93 
94 #endif // vtkGDALRasterReprojection_h
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...