|
MorphoGraphX
2.0-1-227
|
A utility class for functions. More...
#include <function.hpp>
Public Member Functions | |
| Function () | |
| Function (const QString &filename) | |
| Function (const Function ©) | |
| Function & | operator= (const Function &) |
| double | operator() (double x) |
| const Vector< 2, double > & | getMax () const |
| const Vector< 2, double > & | getMin () const |
| void | reRead () |
| bool | setFile (const QString &file) |
| void | setSamples (size_t n) |
| bool | error () |
| QString | fileName () |
| void | scaleX (double s) |
| Scale the x axis by s. More... | |
| void | scaleY (double s) |
| Scale the y axis by s. More... | |
| double | scaleX () const |
| Get the current x scaling. More... | |
| double | scaleY () const |
| Get the current y scaling. More... | |
| void | shiftX (double s) |
| Shift the x axis by s. More... | |
| void | shiftY (double s) |
| Shift the y axis by s. More... | |
| double | shiftX () const |
| Get the current x axis shift. More... | |
| double | shiftY () const |
| Get the current y axis shift. More... | |
| void | normalizeY (bool shift=true) |
| void | normalizeX (bool shift=true) |
A utility class for functions.
This class is a function object that encapsulates functions in the VLAB function formats (original and fver 1 1).
Definition at line 26 of file Function.hpp.
| mgx::Function::Function | ( | ) |
| mgx::Function::Function | ( | const QString & | filename | ) |
| mgx::Function::Function | ( | const Function & | copy | ) |
| bool mgx::Function::error | ( | ) |
|
inline |
Definition at line 44 of file Function.hpp.
| const Vector<2,double>& mgx::Function::getMax | ( | ) | const |
| const Vector<2,double>& mgx::Function::getMin | ( | ) | const |
| void mgx::Function::normalizeX | ( | bool | shift = true | ) |
| void mgx::Function::normalizeY | ( | bool | shift = true | ) |
| double mgx::Function::operator() | ( | double | x | ) |
| void mgx::Function::reRead | ( | ) |
|
inline |
Get the current x scaling.
Definition at line 56 of file Function.hpp.
|
inline |
Scale the x axis by s.
| s | Scaling factor to apply to the axis |
Definition at line 49 of file Function.hpp.
|
inline |
Get the current y scaling.
Definition at line 58 of file Function.hpp.
|
inline |
Scale the y axis by s.
| s | Scaling factor to apply to the axis |
Definition at line 54 of file Function.hpp.
| bool mgx::Function::setFile | ( | const QString & | file | ) |
| void mgx::Function::setSamples | ( | size_t | n | ) |
|
inline |
Get the current x axis shift.
Definition at line 76 of file Function.hpp.
|
inline |
Shift the x axis by s.
| s | Shift of the axis |
Note that the shift happens after the scaling, so it should be written in the scaled reference system.
Definition at line 66 of file Function.hpp.
|
inline |
Get the current y axis shift.
Definition at line 78 of file Function.hpp.
|
inline |
Shift the y axis by s.
| s | Shift of the axis |
Note that the shift happens after the scaling, so it should be written in the scaled reference system.
Definition at line 74 of file Function.hpp.
1.8.17