VTK  9.3.0
vtkExtractGrid.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
40 #ifndef vtkExtractGrid_h
41 #define vtkExtractGrid_h
42 
43 #include "vtkFiltersExtractionModule.h" // For export macro
45 
46 // Forward Declarations
47 VTK_ABI_NAMESPACE_BEGIN
49 
50 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
51 {
52 public:
53  static vtkExtractGrid* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
63  vtkSetVector6Macro(VOI, int);
64  vtkGetVectorMacro(VOI, int, 6);
66 
68 
75  vtkSetVector3Macro(SampleRate, int);
76  vtkGetVectorMacro(SampleRate, int, 3);
78 
80 
88  vtkSetMacro(IncludeBoundary, vtkTypeBool);
89  vtkGetMacro(IncludeBoundary, vtkTypeBool);
90  vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
92 
93 protected:
95  ~vtkExtractGrid() override;
96 
100 
107  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
108 
109  int VOI[6];
110  int SampleRate[3];
112 
114 
115 private:
116  vtkExtractGrid(const vtkExtractGrid&) = delete;
117  void operator=(const vtkExtractGrid&) = delete;
118 };
119 
120 VTK_ABI_NAMESPACE_END
121 #endif
select piece (e.g., volume of interest) and/or subsample structured grid dataset
vtkExtractStructuredGridHelper * Internal
static vtkExtractGrid * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkExtractGrid() override
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool IncludeBoundary
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only structured grid as output.
int vtkTypeBool
Definition: vtkABI.h:64