VTK
vtkExtractGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractGrid.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 =========================================================================*/
46 #ifndef vtkExtractGrid_h
47 #define vtkExtractGrid_h
48 
49 #include "vtkFiltersExtractionModule.h" // For export macro
51 
52 // Forward Declarations
54 
55 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
56 {
57 public:
58  static vtkExtractGrid *New();
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
68  vtkSetVector6Macro(VOI,int);
69  vtkGetVectorMacro(VOI,int,6);
71 
73 
80  vtkSetVector3Macro(SampleRate, int);
81  vtkGetVectorMacro(SampleRate, int, 3);
83 
85 
93  vtkSetMacro(IncludeBoundary,int);
94  vtkGetMacro(IncludeBoundary,int);
95  vtkBooleanMacro(IncludeBoundary,int);
97 
98 protected:
100  ~vtkExtractGrid();
101 
105 
112  bool RequestDataImpl(vtkInformationVector **inputVector,
113  vtkInformationVector *outputVector);
114 
115 
116  int VOI[6];
117  int SampleRate[3];
119 
121 
122 private:
123  vtkExtractGrid(const vtkExtractGrid&) VTK_DELETE_FUNCTION;
124  void operator=(const vtkExtractGrid&) VTK_DELETE_FUNCTION;
125 };
126 
127 #endif
128 
129 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkStructuredGridAlgorithm * New()
helper for extracting/sub-sampling structured datasets.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkExtractStructuredGridHelper * Internal
select piece (e.g., volume of interest) and/or subsample structured grid dataset
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.