VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkRectilinearGridClip.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkRectilinearGridClip.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 __vtkRectilinearGridClip_h
28
#define __vtkRectilinearGridClip_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 "
vtkRectilinearGridAlgorithm.h
"
34
35
class
VTK_GRAPHICS_EXPORT
vtkRectilinearGridClip
:
public
vtkRectilinearGridAlgorithm
36
{
37
public
:
38
static
vtkRectilinearGridClip
*
New
();
39
vtkTypeMacro(
vtkRectilinearGridClip
,
vtkRectilinearGridAlgorithm
);
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
vtkRectilinearGridClip
();
67
~vtkRectilinearGridClip
() {};
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(
vtkRectilinearGrid
*inData,
vtkRectilinearGrid
*outData,
int
*ext);
81
82
virtual
int
RequestData
(
vtkInformation
*,
83
vtkInformationVector
**,
84
vtkInformationVector
*);
85
86
private
:
87
vtkRectilinearGridClip
(
const
vtkRectilinearGridClip
&);
// Not implemented.
88
void
operator=(
const
vtkRectilinearGridClip
&);
// Not implemented.
89
};
90
91
92
93
#endif
94
95
96
Generated on Wed Nov 21 2012 21:33:48 for VTK by
1.8.2