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 =========================================================================*/
37 #ifndef vtkCylinder_h
38 #define vtkCylinder_h
39 
40 #include "vtkCommonDataModelModule.h" // For export macro
41 #include "vtkImplicitFunction.h"
42 
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
51  static vtkCylinder *New();
52 
54 
55  double EvaluateFunction(double x[3]);
56  double EvaluateFunction(double x, double y, double z)
57  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
59 
61  void EvaluateGradient(double x[3], double g[3]);
62 
64 
65  vtkSetMacro(Radius,double);
66  vtkGetMacro(Radius,double);
68 
70 
71  vtkSetVector3Macro(Center,double);
72  vtkGetVector3Macro(Center,double);
74 
76 
79  void SetAxis(double ax, double ay, double az);
80  void SetAxis(double a[3]);
81  vtkGetVector3Macro(Axis,double);
83 
84 protected:
85  vtkCylinder();
87 
88  double Radius;
89  double Center[3];
90  double Axis[3];
91 
92 private:
93  vtkCylinder(const vtkCylinder&); // Not implemented.
94  void operator=(const vtkCylinder&); // Not implemented.
95 };
96 
97 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
double EvaluateFunction(double x, double y, double z)
Definition: vtkCylinder.h:56
virtual void EvaluateGradient(double x[3], double g[3])=0
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
implicit function for a cylinder
Definition: vtkCylinder.h:43
static vtkObject * New()
double Radius
Definition: vtkCylinder.h:88
#define VTKCOMMONDATAMODEL_EXPORT