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

Filtering/vtkSphere.h

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