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

dox/Filtering/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 =========================================================================*/ 00028 #ifndef __vtkSphere_h 00029 #define __vtkSphere_h 00030 00031 #include "vtkImplicitFunction.h" 00032 00033 class VTK_FILTERING_EXPORT vtkSphere : public vtkImplicitFunction 00034 { 00035 public: 00036 vtkTypeRevisionMacro(vtkSphere,vtkImplicitFunction); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 static vtkSphere *New(); 00041 00043 00044 double EvaluateFunction(double x[3]); 00045 double EvaluateFunction(double x, double y, double z) 00046 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ; 00048 00050 void EvaluateGradient(double x[3], double n[3]); 00051 00053 00054 vtkSetMacro(Radius,double); 00055 vtkGetMacro(Radius,double); 00057 00059 00060 vtkSetVector3Macro(Center,double); 00061 vtkGetVectorMacro(Center,double,3); 00063 00064 protected: 00065 vtkSphere(); 00066 ~vtkSphere() {}; 00067 00068 double Radius; 00069 double Center[3]; 00070 00071 private: 00072 vtkSphere(const vtkSphere&); // Not implemented. 00073 void operator=(const vtkSphere&); // Not implemented. 00074 }; 00075 00076 #endif 00077 00078