VTK  9.3.1
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:
75  ~vtkExtractRectilinearGrid() override;
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
Superclass for algorithms that produce only rectilinear grid as output.
Store vtkAlgorithm input/output information.
static vtkRectilinearGridAlgorithm * New()
Extract a sub grid (VOI) from the structured rectilinear dataset.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
helper for extracting/sub-sampling structured datasets.
int vtkTypeBool
Definition: vtkABI.h:64
vtkExtractStructuredGridHelper * Internal
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store zero or more vtkInformation instances.