VTK
vtkCone.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCone.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 =========================================================================*/
37 #ifndef vtkCone_h
38 #define vtkCone_h
39 
40 #include "vtkCommonDataModelModule.h" // For export macro
41 #include "vtkImplicitFunction.h"
42 
43 class VTKCOMMONDATAMODEL_EXPORT vtkCone : public vtkImplicitFunction
44 {
45 public:
49  static vtkCone *New();
50 
52  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 
55 
58  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
59  double EvaluateFunction(double x, double y, double z)
60  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
62 
66  void EvaluateGradient(double x[3], double g[3]) VTK_OVERRIDE;
67 
69 
72  vtkSetClampMacro(Angle,double,0.0,89.0);
73  vtkGetMacro(Angle,double);
75 
76 protected:
77  vtkCone();
78  ~vtkCone() VTK_OVERRIDE {}
79 
80  double Angle;
81 
82 private:
83  vtkCone(const vtkCone&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkCone&) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
88 
89 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
implicit function for a cone
Definition: vtkCone.h:43
~vtkCone() override
Definition: vtkCone.h:78
double EvaluateFunction(double x, double y, double z)
Evaluate cone equation.
Definition: vtkCone.h:59
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
double Angle
Definition: vtkCone.h:80
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.