VTK
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 
36 {
37 public:
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();
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 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
double EvaluateFunction(double x, double y, double z)
Definition: vtkQuadric.h:47
virtual void EvaluateGradient(double x[3], double g[3])=0
a simple class to control print indentation
Definition: vtkIndent.h:38
evaluate implicit quadric function
Definition: vtkQuadric.h:35
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT