VTK  9.3.20240329
vtkGDALRasterReprojection.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
8 #ifndef vtkGDALRasterReprojection_h
9 #define vtkGDALRasterReprojection_h
10 
11 // VTK Includes
12 #include "vtkGeovisGDALModule.h" // For export macro
13 #include "vtkObject.h"
14 
15 class GDALDataset;
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 
19 class VTKGEOVISGDAL_EXPORT vtkGDALRasterReprojection : public vtkObject
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
27 
32  vtkSetClampMacro(MaxError, double, 0.0, VTK_DOUBLE_MAX);
34 
36 
46  vtkSetClampMacro(ResamplingAlgorithm, int, 0, 6);
48 
57  bool SuggestOutputDimensions(GDALDataset* inputDataset, const char* outputProjection,
58  double geoTransform[6], int* nPixels, int* nLines, double maxError = 0.0);
59 
66  bool Reproject(GDALDataset* input, GDALDataset* output);
67 
68 protected:
71 
72  double MaxError;
74 
75 private:
77  void operator=(const vtkGDALRasterReprojection&) = delete;
78 };
79 
80 VTK_ABI_NAMESPACE_END
81 #endif // vtkGDALRasterReprojection_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool Reproject(GDALDataset *input, GDALDataset *output)
Compute the reprojection of the input dataset.
static vtkGDALRasterReprojection * New()
bool SuggestOutputDimensions(GDALDataset *inputDataset, const char *outputProjection, double geoTransform[6], int *nPixels, int *nLines, double maxError=0.0)
Suggest image dimensions for specified projection Internally calls GDALSuggestedWarpOutput() The outp...
~vtkGDALRasterReprojection() override
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154