VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkStructuredGridClip.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkStructuredGridClip.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
=========================================================================*/
27
#ifndef __vtkStructuredGridClip_h
28
#define __vtkStructuredGridClip_h
29
30
// I did not make this a subclass of in place filter because
31
// the references on the data do not matter. I make no modifications
32
// to the data.
33
#include "
vtkStructuredGridAlgorithm.h
"
34
35
class
VTK_GRAPHICS_EXPORT
vtkStructuredGridClip
:
public
vtkStructuredGridAlgorithm
36
{
37
public
:
38
static
vtkStructuredGridClip
*
New
();
39
vtkTypeMacro(
vtkStructuredGridClip
,
vtkStructuredGridAlgorithm
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent);
41
43
44
void
SetOutputWholeExtent(
int
extent
[6],
vtkInformation
*outInfo=0);
45
void
SetOutputWholeExtent(
int
minX,
int
maxX,
int
minY,
int
maxY,
46
int
minZ,
int
maxZ);
47
void
GetOutputWholeExtent(
int
extent
[6]);
48
int
*
GetOutputWholeExtent
() {
return
this->OutputWholeExtent;}
50
51
void
ResetOutputWholeExtent();
52
54
57
vtkSetMacro(ClipData,
int
);
58
vtkGetMacro(ClipData,
int
);
59
vtkBooleanMacro(ClipData,
int
);
61
63
void
SetOutputWholeExtent(
int
piece,
int
numPieces);
64
65
protected
:
66
vtkStructuredGridClip
();
67
~vtkStructuredGridClip
() {};
68
69
// Time when OutputImageExtent was computed.
70
vtkTimeStamp
CTime;
71
int
Initialized
;
// Set the OutputImageExtent for the first time.
72
int
OutputWholeExtent[6];
73
74
int
ClipData
;
75
76
virtual
int
RequestInformation
(
vtkInformation
*,
77
vtkInformationVector
**,
78
vtkInformationVector
*);
79
80
void
CopyData(
vtkStructuredGrid
*inData,
vtkStructuredGrid
*outData,
int
*ext);
81
82
virtual
int
RequestData
(
vtkInformation
*,
83
vtkInformationVector
**,
84
vtkInformationVector
*);
85
86
private
:
87
vtkStructuredGridClip
(
const
vtkStructuredGridClip
&);
// Not implemented.
88
void
operator=(
const
vtkStructuredGridClip
&);
// Not implemented.
89
};
90
91
92
93
#endif
94
95
96
Generated on Sun Sep 9 2012 13:03:31 for VTK by
1.8.1.2