VTK  9.2.6
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) override;
40 
49  virtual int FunctionValues(double* x, double* f) { return this->FunctionValues(x, f, nullptr); }
50  virtual int FunctionValues(double* x, double* f, void* vtkNotUsed(userData))
51  {
52  return this->FunctionValues(x, f);
53  }
54 
60  virtual int GetNumberOfFunctions() { return this->NumFuncs; }
61 
67  virtual int GetNumberOfIndependentVariables() { return this->NumIndepVars; }
68 
69 protected:
71  ~vtkFunctionSet() override = default;
72 
73  int NumFuncs;
75 
76 private:
77  vtkFunctionSet(const vtkFunctionSet&) = delete;
78  void operator=(const vtkFunctionSet&) = delete;
79 };
80 
81 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
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 FunctionValues(double *x, double *f)
Evaluate functions at x_j.
virtual int GetNumberOfIndependentVariables()
Return the number of independent variables.
virtual int FunctionValues(double *x, double *f, void *vtkNotUsed(userData))