00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkFunctionSet.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 =========================================================================*/ 00043 #ifndef __vtkFunctionSet_h 00044 #define __vtkFunctionSet_h 00045 00046 #include "vtkObject.h" 00047 00048 class VTK_COMMON_EXPORT vtkFunctionSet : public vtkObject 00049 { 00050 public: 00051 vtkTypeRevisionMacro(vtkFunctionSet,vtkObject); 00052 virtual void PrintSelf(ostream& os, vtkIndent indent); 00053 00057 virtual int FunctionValues(float* x, float* f) = 0; 00058 00060 00062 virtual int GetNumberOfFunctions() { 00063 return this->NumFuncs; } 00065 00067 00070 virtual int GetNumberOfIndependentVariables() { 00071 return this->NumIndepVars; } 00073 00074 protected: 00075 vtkFunctionSet(); 00076 ~vtkFunctionSet() {}; 00077 00078 int NumFuncs; 00079 int NumIndepVars; 00080 00081 private: 00082 vtkFunctionSet(const vtkFunctionSet&); // Not implemented. 00083 void operator=(const vtkFunctionSet&); // Not implemented. 00084 }; 00085 00086 #endif 00087 00088 00089 00090 00091