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