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
31 #ifndef vtkExtractGrid_h
32 #define vtkExtractGrid_h
33 
34 #include "vtkFiltersExtractionModule.h" // For export macro
36 
37 // Forward Declarations
38 VTK_ABI_NAMESPACE_BEGIN
40 
41 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
42 {
43 public:
44  static vtkExtractGrid* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetVector6Macro(VOI, int);
55  vtkGetVectorMacro(VOI, int, 6);
57 
59 
66  vtkSetVector3Macro(SampleRate, int);
67  vtkGetVectorMacro(SampleRate, int, 3);
69 
71 
79  vtkSetMacro(IncludeBoundary, vtkTypeBool);
80  vtkGetMacro(IncludeBoundary, vtkTypeBool);
81  vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
83 
84 protected:
86  ~vtkExtractGrid() override;
87 
91 
98  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
99 
100  int VOI[6];
101  int SampleRate[3];
103 
105 
106 private:
107  vtkExtractGrid(const vtkExtractGrid&) = delete;
108  void operator=(const vtkExtractGrid&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #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:29
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