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

dox/Filtering/vtkCone.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkCone.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 =========================================================================*/ 00040 #ifndef __vtkCone_h 00041 #define __vtkCone_h 00042 00043 #include "vtkImplicitFunction.h" 00044 00045 class VTK_FILTERING_EXPORT vtkCone : public vtkImplicitFunction 00046 { 00047 public: 00049 static vtkCone *New(); 00050 00051 vtkTypeRevisionMacro(vtkCone,vtkImplicitFunction); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00056 float EvaluateFunction(float x[3]); 00057 float EvaluateFunction(float x, float y, float z) 00058 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ; 00060 00062 void EvaluateGradient(float x[3], float g[3]); 00063 00065 00066 vtkSetClampMacro(Angle,float,0.0f,89.0f); 00067 vtkGetMacro(Angle,float); 00069 00070 protected: 00071 vtkCone(); 00072 ~vtkCone() {}; 00073 00074 float Angle; 00075 00076 private: 00077 vtkCone(const vtkCone&); // Not implemented. 00078 void operator=(const vtkCone&); // Not implemented. 00079 }; 00080 00081 #endif 00082 00083