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

vtkCylinder.h

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