VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
38 class VTKCOMMONDATAMODEL_EXPORT vtkCylinder : public vtkImplicitFunction
39 {
40 public:
41  vtkTypeMacro(vtkCylinder,vtkImplicitFunction);
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  vtkGetVectorMacro(Center,double,3);
67 protected:
68  vtkCylinder();
71 
72  double Radius;
73  double Center[3];
74 
75 private:
76  vtkCylinder(const vtkCylinder&); // Not implemented.
77  void operator=(const vtkCylinder&); // Not implemented.
78 };
79 
80 #endif
81 
82 
double EvaluateFunction(double x, double y, double z)
Definition: vtkCylinder.h:50
a simple class to control print indentation
Definition: vtkIndent.h:38
implicit function for a cylinder
Definition: vtkCylinder.h:38