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 =========================================================================*/
32 #ifndef vtkCylinder_h
33 #define vtkCylinder_h
34 
35 #include "vtkCommonDataModelModule.h" // For export macro
36 #include "vtkImplicitFunction.h"
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45  static vtkCylinder *New();
46 
48 
49  double EvaluateFunction(double x[3]);
50  double EvaluateFunction(double x, double y, double z)
51  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
53 
55  void EvaluateGradient(double x[3], double g[3]);
56 
58 
59  vtkSetMacro(Radius,double);
60  vtkGetMacro(Radius,double);
62 
64 
65  vtkSetVector3Macro(Center,double);
66  vtkGetVector3Macro(Center,double);
68 
69 protected:
70  vtkCylinder();
72 
73  double Radius;
74  double Center[3];
75 
76 private:
77  vtkCylinder(const vtkCylinder&); // Not implemented.
78  void operator=(const vtkCylinder&); // Not implemented.
79 };
80 
81 #endif
82 
83 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
double EvaluateFunction(double x, double y, double z)
Definition: vtkCylinder.h:50
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:38
static vtkObject * New()
double Radius
Definition: vtkCylinder.h:73
#define VTKCOMMONDATAMODEL_EXPORT