Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Filtering/vtkCylinder.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCylinder.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00036 #ifndef __vtkCylinder_h
00037 #define __vtkCylinder_h
00038 
00039 #include "vtkImplicitFunction.h"
00040 
00041 class VTK_FILTERING_EXPORT vtkCylinder : public vtkImplicitFunction
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkCylinder,vtkImplicitFunction);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048   static vtkCylinder *New();
00049 
00051 
00052   float EvaluateFunction(float x[3]);
00053   float EvaluateFunction(float x, float y, float z)
00054     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00056 
00058   void EvaluateGradient(float x[3], float g[3]);
00059 
00061 
00062   vtkSetMacro(Radius,float);
00063   vtkGetMacro(Radius,float);
00065 
00067 
00068   vtkSetVector3Macro(Center,float);
00069   vtkGetVectorMacro(Center,float,3);
00071 protected:
00072   vtkCylinder();
00073   ~vtkCylinder() {};
00074 
00075   float Radius;
00076   float Center[3];
00077 
00078 private:
00079   vtkCylinder(const vtkCylinder&);  // Not implemented.
00080   void operator=(const vtkCylinder&);  // Not implemented.
00081 };
00082 
00083 #endif
00084 
00085