VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkPolyPlane.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPolyPlane.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
=========================================================================*/
31
#ifndef __vtkPolyPlane_h
32
#define __vtkPolyPlane_h
33
34
#include "
vtkImplicitFunction.h
"
35
36
class
vtkPolyLine
;
37
class
vtkDoubleArray
;
38
39
class
VTK_FILTERING_EXPORT
vtkPolyPlane
:
public
vtkImplicitFunction
40
{
41
public
:
43
static
vtkPolyPlane
*
New
();
44
45
vtkTypeMacro(
vtkPolyPlane
,
vtkImplicitFunction
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
49
50
double
EvaluateFunction
(
double
x[3]);
51
double
EvaluateFunction
(
double
x,
double
y,
double
z)
52
{
return
this->
vtkImplicitFunction::EvaluateFunction
(x, y, z); } ;
54
56
void
EvaluateGradient
(
double
x[3],
double
g[3]);
57
59
61
virtual
void
SetPolyLine(
vtkPolyLine
* );
62
vtkGetObjectMacro( PolyLine,
vtkPolyLine
);
64
66
virtual
unsigned
long
GetMTime
();
67
68
protected
:
69
vtkPolyPlane
();
70
~
vtkPolyPlane
();
71
72
void
ComputeNormals();
73
74
double
ExtrusionDirection[3];
75
vtkPolyLine
*
PolyLine
;
76
vtkTimeStamp
NormalComputeTime
;
77
vtkDoubleArray
*
Normals
;
78
vtkIdType
ClosestPlaneIdx
;
79
80
private
:
81
vtkPolyPlane
(
const
vtkPolyPlane
&);
// Not implemented.
82
void
operator=(
const
vtkPolyPlane
&);
// Not implemented.
83
};
84
85
#endif
Generated on Tue Jan 8 2013 05:45:26 for VTK by
1.8.1.2