VTK
vtkCylinder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCylinder.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 =========================================================================*/
38 #ifndef vtkCylinder_h
39 #define vtkCylinder_h
40 
41 #include "vtkCommonDataModelModule.h" // For export macro
42 #include "vtkImplicitFunction.h"
43 
44 class VTKCOMMONDATAMODEL_EXPORT vtkCylinder : public vtkImplicitFunction
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
54  static vtkCylinder *New();
55 
57 
60  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
61  double EvaluateFunction(double x, double y, double z)
62  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
64 
68  void EvaluateGradient(double x[3], double g[3]) VTK_OVERRIDE;
69 
71 
74  vtkSetMacro(Radius,double);
75  vtkGetMacro(Radius,double);
77 
79 
82  vtkSetVector3Macro(Center,double);
83  vtkGetVector3Macro(Center,double);
85 
87 
92  void SetAxis(double ax, double ay, double az);
93  void SetAxis(double a[3]);
94  vtkGetVector3Macro(Axis,double);
96 
97 protected:
98  vtkCylinder();
99  ~vtkCylinder() VTK_OVERRIDE {}
100 
101  double Radius;
102  double Center[3];
103  double Axis[3];
104 
105 private:
106  vtkCylinder(const vtkCylinder&) VTK_DELETE_FUNCTION;
107  void operator=(const vtkCylinder&) VTK_DELETE_FUNCTION;
108 };
109 
110 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
double EvaluateFunction(double x, double y, double z)
Evaluate cylinder equation F(r) = r^2 - Radius^2.
Definition: vtkCylinder.h:61
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
a simple class to control print indentation
Definition: vtkIndent.h:39
~vtkCylinder() override
Definition: vtkCylinder.h:99
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
implicit function for a cylinder
Definition: vtkCylinder.h:44
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.
double Radius
Definition: vtkCylinder.h:101