VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
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 "vtkCommonDataModelModule.h"
// For export macro
33
#include "
vtkImplicitFunction.h
"
34
35
class
VTKCOMMONDATAMODEL_EXPORT
vtkQuadric
:
public
vtkImplicitFunction
36
{
37
public
:
38
vtkTypeMacro(
vtkQuadric
,
vtkImplicitFunction
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent);
40
42
static
vtkQuadric
*
New
();
43
45
46
double
EvaluateFunction
(
double
x[3]);
47
double
EvaluateFunction
(
double
x,
double
y,
double
z)
48
{
return
this->
vtkImplicitFunction::EvaluateFunction
(x, y, z); } ;
50
52
void
EvaluateGradient
(
double
x[3],
double
g[3]);
53
55
56
void
SetCoefficients(
double
a[10]);
57
void
SetCoefficients(
double
a0,
double
a1,
double
a2,
double
a3,
double
a4,
58
double
a5,
double
a6,
double
a7,
double
a8,
double
a9);
59
vtkGetVectorMacro(Coefficients,
double
,10);
61
62
protected
:
63
vtkQuadric
();
64
~vtkQuadric
() {};
65
66
double
Coefficients[10];
67
68
private
:
69
vtkQuadric
(
const
vtkQuadric
&);
// Not implemented.
70
void
operator=(
const
vtkQuadric
&);
// Not implemented.
71
};
72
73
#endif
74
75
Generated on Thu May 24 2012 22:22:11 for VTK by
1.8.1