VTK  9.5.20250902
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18
19VTK_ABI_NAMESPACE_BEGIN
22{
23public:
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
29
32 void SetOutputWholeExtent(int extent[6], vtkInformation* outInfo = nullptr);
33 void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
34 void GetOutputWholeExtent(int extent[6]);
35 int* GetOutputWholeExtent() { return this->OutputWholeExtent; }
37
39
40protected:
42 ~vtkExplicitStructuredGridCrop() override = default;
43
47
49 int OutputWholeExtent[6];
50
51private:
53 void operator=(const vtkExplicitStructuredGridCrop&) = delete;
54};
55
56VTK_ABI_NAMESPACE_END
57#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.
#define VTK_MARSHALAUTO