VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
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 "vtkCommonDataModelModule.h"
// For export macro
35
#include "
vtkImplicitFunction.h
"
36
37
class
vtkPolyLine
;
38
class
vtkDoubleArray
;
39
40
class
VTKCOMMONDATAMODEL_EXPORT
vtkPolyPlane
:
public
vtkImplicitFunction
41
{
42
public
:
44
static
vtkPolyPlane
*
New
();
45
46
vtkTypeMacro(
vtkPolyPlane
,
vtkImplicitFunction
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
50
51
double
EvaluateFunction
(
double
x[3]);
52
double
EvaluateFunction
(
double
x,
double
y,
double
z)
53
{
return
this->
vtkImplicitFunction::EvaluateFunction
(x, y, z); } ;
55
57
void
EvaluateGradient
(
double
x[3],
double
g[3]);
58
60
62
virtual
void
SetPolyLine(
vtkPolyLine
* );
63
vtkGetObjectMacro( PolyLine,
vtkPolyLine
);
65
67
virtual
unsigned
long
GetMTime
();
68
69
protected
:
70
vtkPolyPlane
();
71
~
vtkPolyPlane
();
72
73
void
ComputeNormals();
74
75
double
ExtrusionDirection[3];
76
vtkPolyLine
*
PolyLine
;
77
vtkTimeStamp
NormalComputeTime
;
78
vtkDoubleArray
*
Normals
;
79
vtkIdType
ClosestPlaneIdx
;
80
81
private
:
82
vtkPolyPlane
(
const
vtkPolyPlane
&);
// Not implemented.
83
void
operator=(
const
vtkPolyPlane
&);
// Not implemented.
84
};
85
86
#endif
Generated on Thu May 24 2012 22:22:11 for VTK by
1.8.1