VTK
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 =========================================================================*/
23 #ifndef vtkRasterReprojectionFilter_h
24 #define vtkRasterReprojectionFilter_h
25 
26 #include "vtkGeovisGDALModule.h" // For export macro
27 #include "vtkImageAlgorithm.h"
28 
29 class VTKGEOVISGDAL_EXPORT vtkRasterReprojectionFilter
30  : public vtkImageAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
46  vtkSetStringMacro(InputProjection);
47  vtkGetStringMacro(InputProjection);
49 
51 
54  vtkSetStringMacro(OutputProjection);
55  vtkGetStringMacro(OutputProjection);
57 
59 
66  vtkSetVector2Macro(OutputDimensions, int);
67  vtkGetVector2Macro(OutputDimensions, int);
69 
71 
76  vtkSetMacro(NoDataValue, double);
77  vtkGetMacro(NoDataValue, double);
79 
81 
86  vtkSetClampMacro(MaxError, double, 0.0, VTK_DOUBLE_MAX);
87  vtkGetMacro(MaxError, double);
89 
91 
101  vtkSetClampMacro(ResamplingAlgorithm, int, 0, 6);
103 
104 protected:
107 
108  int RequestData(vtkInformation* request,
109  vtkInformationVector** inputVector,
110  vtkInformationVector* outputVector) override;
111 
112  int RequestUpdateExtent(vtkInformation* request,
113  vtkInformationVector** inputVector,
114  vtkInformationVector* outputVector) override;
115 
116  int RequestInformation(vtkInformation* request,
117  vtkInformationVector** inputVector,
118  vtkInformationVector* outputVector) override;
119 
120  int FillInputPortInformation(int port, vtkInformation* info) override;
122 
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:169
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.