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

vtkSphere.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSphere.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 =========================================================================*/
00040 #ifndef __vtkSphere_h
00041 #define __vtkSphere_h
00042 
00043 #include "vtkImplicitFunction.h"
00044 
00045 class VTK_FILTERING_EXPORT vtkSphere : public vtkImplicitFunction
00046 {
00047 public:
00048   vtkTypeRevisionMacro(vtkSphere,vtkImplicitFunction);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052   static vtkSphere *New();
00053 
00055 
00056   double EvaluateFunction(double x[3]);
00057   double EvaluateFunction(double x, double y, double z)
00058     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00060 
00062   void EvaluateGradient(double x[3], double n[3]);
00063 
00065 
00066   vtkSetMacro(Radius,double);
00067   vtkGetMacro(Radius,double);
00069 
00071 
00072   vtkSetVector3Macro(Center,double);
00073   vtkGetVectorMacro(Center,double,3);
00075 
00076 protected:
00077   vtkSphere();
00078   ~vtkSphere() {};
00079 
00080   double Radius;
00081   double Center[3];
00082 
00083 private:
00084   vtkSphere(const vtkSphere&);  // Not implemented.
00085   void operator=(const vtkSphere&);  // Not implemented.
00086 };
00087 
00088 #endif
00089 
00090