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