VTK
9.0.1
Common
Math
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
:
70
vtkFunctionSet
();
71
~vtkFunctionSet
()
override
{}
72
73
int
NumFuncs
;
74
int
NumIndepVars
;
75
76
private
:
77
vtkFunctionSet
(
const
vtkFunctionSet
&) =
delete
;
78
void
operator=(
const
vtkFunctionSet
&) =
delete
;
79
};
80
81
#endif
vtkFunctionSet
Abstract interface for sets of functions.
Definition:
vtkFunctionSet.h:36
vtkFunctionSet::vtkFunctionSet
vtkFunctionSet()
vtkFunctionSet::GetNumberOfFunctions
virtual int GetNumberOfFunctions()
Return the number of functions.
Definition:
vtkFunctionSet.h:60
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:54
vtkFunctionSet::~vtkFunctionSet
~vtkFunctionSet() override
Definition:
vtkFunctionSet.h:71
vtkFunctionSet::NumIndepVars
int NumIndepVars
Definition:
vtkFunctionSet.h:74
vtkFunctionSet::NumFuncs
int NumFuncs
Definition:
vtkFunctionSet.h:73
vtkFunctionSet::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkObject.h
vtkFunctionSet::GetNumberOfIndependentVariables
virtual int GetNumberOfIndependentVariables()
Return the number of independent variables.
Definition:
vtkFunctionSet.h:67
Generated on Mon Jan 4 2021 21:12:05 for VTK by
1.8.20