VTK  9.1.0
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
35class VTKCOMMONMATH_EXPORT vtkFunctionSet : public vtkObject
36{
37public:
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
69protected:
71 ~vtkFunctionSet() override = default;
72
75
76private:
77 vtkFunctionSet(const vtkFunctionSet&) = delete;
78 void operator=(const vtkFunctionSet&) = delete;
79};
80
81#endif
Abstract interface for sets of functions.
virtual int GetNumberOfFunctions()
Return the number of functions.
virtual int GetNumberOfIndependentVariables()
Return the number of independent variables.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int FunctionValues(double *x, double *f)
Evaluate functions at x_j.
virtual int FunctionValues(double *x, double *f, void *vtkNotUsed(userData))
~vtkFunctionSet() override=default
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82