VTK  9.2.6
vtkExplicitStructuredGridCrop.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExplicitStructuredGridCrop.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkExplicitStructuredGridCrop_h
25 #define vtkExplicitStructuredGridCrop_h
26 
28 #include "vtkFiltersCoreModule.h" // For export macro
29 
30 class VTKFILTERSCORE_EXPORT vtkExplicitStructuredGridCrop
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  void SetOutputWholeExtent(int extent[6], vtkInformation* outInfo = nullptr);
43  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
44  void GetOutputWholeExtent(int extent[6]);
45  int* GetOutputWholeExtent() { return this->OutputWholeExtent; }
47 
48  void ResetOutputWholeExtent();
49 
50 protected:
52  ~vtkExplicitStructuredGridCrop() override = default;
53 
57 
59  int OutputWholeExtent[6];
60 
61 private:
63  void operator=(const vtkExplicitStructuredGridCrop&) = delete;
64 };
65 
66 #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:39
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.