VTK  9.0.20201202
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 =========================================================================*/
24 #ifndef vtkQuadric_h
25 #define vtkQuadric_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkImplicitFunction.h"
29 
30 class VTKCOMMONDATAMODEL_EXPORT vtkQuadric : public vtkImplicitFunction
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
39  static vtkQuadric* New();
40 
42 
46  double EvaluateFunction(double x[3]) override;
48 
52  void EvaluateGradient(double x[3], double g[3]) override;
53 
55 
58  void SetCoefficients(double a[10]);
59  void SetCoefficients(double a0, double a1, double a2, double a3, double a4, double a5, double a6,
60  double a7, double a8, double a9);
61  vtkGetVectorMacro(Coefficients, double, 10);
63 
64 protected:
65  vtkQuadric();
66  ~vtkQuadric() override = default;
67 
68  double Coefficients[10];
69 
70 private:
71  vtkQuadric(const vtkQuadric&) = delete;
72  void operator=(const vtkQuadric&) = delete;
73 };
74 
75 #endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkQuadric
evaluate implicit quadric function
Definition: vtkQuadric.h:30
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:60
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImplicitFunction::EvaluateGradient
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
vtkImplicitFunction.h
vtkImplicitFunction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.