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