VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkQuadric.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQuadric.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
=========================================================================*/
29
#ifndef __vtkQuadric_h
30
#define __vtkQuadric_h
31
32
#include "
vtkImplicitFunction.h
"
33
34
class
VTK_COMMON_EXPORT
vtkQuadric
:
public
vtkImplicitFunction
35
{
36
public
:
37
vtkTypeMacro(
vtkQuadric
,
vtkImplicitFunction
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent);
39
41
static
vtkQuadric
*
New
();
42
44
45
double
EvaluateFunction
(
double
x[3]);
46
double
EvaluateFunction
(
double
x,
double
y,
double
z)
47
{
return
this->
vtkImplicitFunction::EvaluateFunction
(x, y, z); } ;
49
51
void
EvaluateGradient
(
double
x[3],
double
g[3]);
52
54
55
void
SetCoefficients(
double
a[10]);
56
void
SetCoefficients(
double
a0,
double
a1,
double
a2,
double
a3,
double
a4,
57
double
a5,
double
a6,
double
a7,
double
a8,
double
a9);
58
vtkGetVectorMacro(Coefficients,
double
,10);
60
61
protected
:
62
vtkQuadric
();
63
~vtkQuadric
() {};
64
65
double
Coefficients[10];
66
67
private
:
68
vtkQuadric
(
const
vtkQuadric
&);
// Not implemented.
69
void
operator=(
const
vtkQuadric
&);
// Not implemented.
70
};
71
72
#endif
73
74
Generated on Wed May 30 2012 13:21:52 for VTK by
1.8.1