VTK  9.3.1
vtkExplicitStructuredGridCrop.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
12 #ifndef vtkExplicitStructuredGridCrop_h
13 #define vtkExplicitStructuredGridCrop_h
14 
16 #include "vtkFiltersCoreModule.h" // For export macro
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class VTKFILTERSCORE_EXPORT vtkExplicitStructuredGridCrop
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
28 
31  void SetOutputWholeExtent(int extent[6], vtkInformation* outInfo = nullptr);
32  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
33  void GetOutputWholeExtent(int extent[6]);
34  int* GetOutputWholeExtent() { return this->OutputWholeExtent; }
36 
37  void ResetOutputWholeExtent();
38 
39 protected:
41  ~vtkExplicitStructuredGridCrop() override = default;
42 
46 
48  int OutputWholeExtent[6];
49 
50 private:
52  void operator=(const vtkExplicitStructuredGridCrop&) = delete;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
Filter which extracts a piece of explicit structured grid changing its extents.
static vtkExplicitStructuredGridAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
Superclass for algorithms that produce only explicit structured grid as output.
int * GetOutputWholeExtent()
The whole extent of the output has to be set explicitly.