VTK  9.1.0
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=========================================================================*/
21#ifndef vtkExplicitStructuredGridCrop_h
22#define vtkExplicitStructuredGridCrop_h
23
25#include "vtkFiltersCoreModule.h" // For export macro
26
27class VTKFILTERSCORE_EXPORT vtkExplicitStructuredGridCrop
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
39 void SetOutputWholeExtent(int extent[6], vtkInformation* outInfo = nullptr);
40 void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
41 void GetOutputWholeExtent(int extent[6]);
42 int* GetOutputWholeExtent() { return this->OutputWholeExtent; }
44
46
47protected:
49 ~vtkExplicitStructuredGridCrop() override = default;
50
54
56 int OutputWholeExtent[6];
57
58private:
60 void operator=(const vtkExplicitStructuredGridCrop&) = delete;
61};
62
63#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.