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 =========================================================================*/
31 #ifndef vtkCone_h
32 #define vtkCone_h
33 
34 #include "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkImplicitFunction.h"
36 
37 class VTKCOMMONDATAMODEL_EXPORT vtkCone : public vtkImplicitFunction
38 {
39 public:
43  static vtkCone *New();
44 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
53  double EvaluateFunction(double x[3]) override;
55 
59  void EvaluateGradient(double x[3], double g[3]) override;
60 
62 
65  vtkSetClampMacro(Angle,double,0.0,89.0);
66  vtkGetMacro(Angle,double);
68 
69 protected:
70  vtkCone();
71  ~vtkCone() override {}
72 
73  double Angle;
74 
75 private:
76  vtkCone(const vtkCone&) = delete;
77  void operator=(const vtkCone&) = delete;
78 };
79 
80 #endif
81 
82 
vtkCone::~vtkCone
~vtkCone() override
Definition: vtkCone.h:71
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.
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
vtkCone::Angle
double Angle
Definition: vtkCone.h:73
vtkImplicitFunction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCone
implicit function for a cone
Definition: vtkCone.h:37