VTK  9.2.6
vtkRasterReprojectionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRasterReprojectionFilter.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 =========================================================================*/
26 #ifndef vtkRasterReprojectionFilter_h
27 #define vtkRasterReprojectionFilter_h
28 
29 #include "vtkGeovisGDALModule.h" // For export macro
30 #include "vtkImageAlgorithm.h"
31 
32 class VTKGEOVISGDAL_EXPORT vtkRasterReprojectionFilter : public vtkImageAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
48  vtkSetStringMacro(InputProjection);
49  vtkGetStringMacro(InputProjection);
51 
53 
56  vtkSetStringMacro(OutputProjection);
57  vtkGetStringMacro(OutputProjection);
59 
61 
68  vtkSetVector2Macro(OutputDimensions, int);
69  vtkGetVector2Macro(OutputDimensions, int);
71 
73 
78  vtkSetMacro(NoDataValue, double);
79  vtkGetMacro(NoDataValue, double);
81 
83 
88  vtkSetClampMacro(MaxError, double, 0.0, VTK_DOUBLE_MAX);
89  vtkGetMacro(MaxError, double);
91 
93 
103  vtkSetClampMacro(ResamplingAlgorithm, int, 0, 6);
105 
106 protected:
108  ~vtkRasterReprojectionFilter() override;
109 
110  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
111  vtkInformationVector* outputVector) override;
112 
113  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
114  vtkInformationVector* outputVector) override;
115 
116  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
117  vtkInformationVector* outputVector) override;
118 
119  int FillInputPortInformation(int port, vtkInformation* info) override;
121 
123  int FlipAxis[3];
125  int OutputDimensions[2];
126  double NoDataValue;
127  double MaxError;
129 
130  class vtkRasterReprojectionFilterInternal;
131  vtkRasterReprojectionFilterInternal* Internal;
132 
133 private:
135  void operator=(const vtkRasterReprojectionFilter&) = delete;
136 };
137 
138 #endif // vtkRasterReprojectionFilter_h
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Store vtkAlgorithm input/output information.
Transform a VTK image data to a different projection.
vtkRasterReprojectionFilterInternal * Internal
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
int FillOutputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.