VTK  9.3.20240328
vtkExtractRectilinearGrid.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
20 #ifndef vtkExtractRectilinearGrid_h
21 #define vtkExtractRectilinearGrid_h
22 
23 #include "vtkFiltersExtractionModule.h" // For export macro
25 
26 // Forward Declarations
27 VTK_ABI_NAMESPACE_BEGIN
29 
30 class VTKFILTERSEXTRACTION_EXPORT vtkExtractRectilinearGrid : public vtkRectilinearGridAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
43  vtkSetVector6Macro(VOI, int);
44  vtkGetVectorMacro(VOI, int, 6);
46 
48 
55  vtkSetVector3Macro(SampleRate, int);
56  vtkGetVectorMacro(SampleRate, int, 3);
58 
60 
68  vtkSetMacro(IncludeBoundary, vtkTypeBool);
69  vtkGetMacro(IncludeBoundary, vtkTypeBool);
70  vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
72 
73 protected:
76 
80 
87  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
88 
89  int VOI[6];
90  int SampleRate[3];
92 
94 
95 private:
97  void operator=(const vtkExtractRectilinearGrid&) = delete;
98 };
99 
100 VTK_ABI_NAMESPACE_END
101 #endif
Extract a sub grid (VOI) from the structured rectilinear dataset.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkExtractRectilinearGrid * New()
~vtkExtractRectilinearGrid() override
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractStructuredGridHelper * Internal
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only rectilinear grid as output.
int vtkTypeBool
Definition: vtkABI.h:64