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  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 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
double EvaluateFunction(double x, double y, double z)
Definition: vtkCylinder.h:50
virtual void EvaluateGradient(double x[3], double g[3])=0
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
GLdouble GLdouble z
Definition: vtkgl.h:11754
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
a simple class to control print indentation
Definition: vtkIndent.h:38
GLboolean GLboolean g
Definition: vtkgl.h:12312
void PrintSelf(ostream &os, vtkIndent indent)
implicit function for a cylinder
Definition: vtkCylinder.h:38
static vtkObject * New()
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:277
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:414
double Radius
Definition: vtkCylinder.h:72
#define VTKCOMMONDATAMODEL_EXPORT
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69