VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Filters
Extraction
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
=========================================================================*/
43
#ifndef vtkExtractGrid_h
44
#define vtkExtractGrid_h
45
46
#include "vtkFiltersExtractionModule.h"
// For export macro
47
#include "
vtkStructuredGridAlgorithm.h
"
48
49
// Forward Declarations
50
class
vtkExtractStructuredGridHelper
;
51
52
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractGrid
:
public
vtkStructuredGridAlgorithm
53
{
54
public
:
55
static
vtkExtractGrid
*
New
();
56
vtkTypeMacro(
vtkExtractGrid
,
vtkStructuredGridAlgorithm
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
60
65
vtkSetVector6Macro(VOI,
int
);
66
vtkGetVectorMacro(VOI,
int
, 6);
68
70
77
vtkSetVector3Macro(SampleRate,
int
);
78
vtkGetVectorMacro(SampleRate,
int
, 3);
80
82
90
vtkSetMacro(IncludeBoundary,
vtkTypeBool
);
91
vtkGetMacro(IncludeBoundary,
vtkTypeBool
);
92
vtkBooleanMacro(IncludeBoundary,
vtkTypeBool
);
94
95
protected
:
96
vtkExtractGrid
();
97
~vtkExtractGrid
()
override
;
98
99
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
100
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
101
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
102
109
bool
RequestDataImpl
(
vtkInformationVector
** inputVector,
vtkInformationVector
* outputVector);
110
111
int
VOI[6];
112
int
SampleRate[3];
113
vtkTypeBool
IncludeBoundary
;
114
115
vtkExtractStructuredGridHelper
*
Internal
;
116
117
private
:
118
vtkExtractGrid
(
const
vtkExtractGrid
&) =
delete
;
119
void
operator=(
const
vtkExtractGrid
&) =
delete
;
120
};
121
122
#endif
vtkExtractGrid
select piece (e.g., volume of interest) and/or subsample structured grid dataset
Definition
vtkExtractGrid.h:53
vtkExtractGrid::Internal
vtkExtractStructuredGridHelper * Internal
Definition
vtkExtractGrid.h:115
vtkExtractGrid::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkExtractGrid::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractGrid::New
static vtkExtractGrid * New()
vtkExtractGrid::vtkExtractGrid
vtkExtractGrid()
vtkExtractGrid::~vtkExtractGrid
~vtkExtractGrid() override
vtkExtractGrid::RequestDataImpl
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
vtkExtractGrid::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractGrid::IncludeBoundary
vtkTypeBool IncludeBoundary
Definition
vtkExtractGrid.h:113
vtkExtractStructuredGridHelper
helper for extracting/sub-sampling structured datasets.
Definition
vtkExtractStructuredGridHelper.h:52
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition
vtkStructuredGridAlgorithm.h:42
vtkTypeBool
int vtkTypeBool
Definition
vtkABI.h:69
vtkStructuredGridAlgorithm.h
Generated on Tue Dec 17 2024 00:00:00 for VTK by
1.12.0