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
55class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
56{
57public:
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
98protected:
101
105
113 vtkInformationVector *outputVector);
114
115
116 int VOI[6];
117 int SampleRate[3];
119
121
122private:
123 vtkExtractGrid(const vtkExtractGrid&) VTK_DELETE_FUNCTION;
124 void operator=(const vtkExtractGrid&) VTK_DELETE_FUNCTION;
125};
126
127#endif
128
129
select piece (e.g., volume of interest) and/or subsample structured grid dataset
vtkExtractStructuredGridHelper * Internal
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkExtractGrid * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only structured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.