VTK
vtkFunctionSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFunctionSet.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkFunctionSet_h
30 #define vtkFunctionSet_h
31 
32 #include "vtkCommonMathModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 class VTKCOMMONMATH_EXPORT vtkFunctionSet : public vtkObject
36 {
37 public:
38  vtkTypeMacro(vtkFunctionSet,vtkObject);
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
47  virtual int FunctionValues(double* x, double* f) = 0;
48 
54  virtual int GetNumberOfFunctions() {
55  return this->NumFuncs; }
56 
63  return this->NumIndepVars; }
64 
65 protected:
67  ~vtkFunctionSet() VTK_OVERRIDE {}
68 
69  int NumFuncs;
71 
72 private:
73  vtkFunctionSet(const vtkFunctionSet&) VTK_DELETE_FUNCTION;
74  void operator=(const vtkFunctionSet&) VTK_DELETE_FUNCTION;
75 };
76 
77 #endif
78 
79 
80 
81 
82 
abstract base class for most VTK objects
Definition: vtkObject.h:59
virtual int GetNumberOfFunctions()
Return the number of functions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
Abstract interface for sets of functions.
virtual int GetNumberOfIndependentVariables()
Return the number of independent variables.
~vtkFunctionSet() override