VTK
vtkExtractRectilinearGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractRectilinearGrid.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 =========================================================================*/
32 #ifndef vtkExtractRectilinearGrid_h
33 #define vtkExtractRectilinearGrid_h
34 
35 #include "vtkFiltersExtractionModule.h" // For export macro
37 
38 // Forward Declarations
40 
41 class VTKFILTERSEXTRACTION_EXPORT vtkExtractRectilinearGrid : public vtkRectilinearGridAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetVector6Macro(VOI,int);
55  vtkGetVectorMacro(VOI,int,6);
57 
59 
66  vtkSetVector3Macro(SampleRate, int);
67  vtkGetVectorMacro(SampleRate, int, 3);
69 
71 
79  vtkSetMacro(IncludeBoundary,vtkTypeBool);
80  vtkGetMacro(IncludeBoundary,vtkTypeBool);
81  vtkBooleanMacro(IncludeBoundary,vtkTypeBool);
83 
84 protected:
86  ~vtkExtractRectilinearGrid() override;
87 
91 
98  bool RequestDataImpl(vtkInformationVector **inputVector,
99  vtkInformationVector *outputVector);
100 
101  int VOI[6];
102  int SampleRate[3];
104 
106 private:
108  void operator=(const vtkExtractRectilinearGrid&) = delete;
109 };
110 
111 #endif
112 
113 
Superclass for algorithms that produce only rectilinear grid as output.
Store vtkAlgorithm input/output information.
static vtkRectilinearGridAlgorithm * New()
Extract a sub grid (VOI) from the structured rectilinear dataset.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
helper for extracting/sub-sampling structured datasets.
int vtkTypeBool
Definition: vtkABI.h:69
vtkExtractStructuredGridHelper * Internal
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store zero or more vtkInformation instances.