rocs/RocsCore
#include <ValueModifier.h>
Public Member Functions | |
ValueModifier () | |
template<typename T > | |
void | assignConstantValue (const QList< T > &list, const QString &property, const QString &constant, bool overrideValues=true) |
template<typename T > | |
void | assignRandomIntegers (const QList< T > &list, const QString &property, int lowerLimit, int upperLimit, int seed, bool overrideValues=true) |
template<typename T > | |
void | assignRandomReals (const QList< T > &list, const QString &property, qreal lowerLimit, qreal upperLimit, int seed, bool overrideValues=true) |
template<typename T > | |
void | enumerate (const QList< T > &list, const QString &property, int start, const QString &baseString, bool overrideValues=true) |
template<typename T > | |
void | enumerateAlpha (const QList< T > &list, const QString &property, const QString &start, bool overrideValues=true) |
Detailed Description
Definition at line 30 of file ValueModifier.h.
Constructor & Destructor Documentation
ValueModifier::ValueModifier | ( | ) |
Definition at line 32 of file ValueModifier.cpp.
Member Function Documentation
template ROCSLIB_EXPORT void ValueModifier::assignConstantValue< PointerPtr > | ( | const QList< T > & | list, |
const QString & | property, | ||
const QString & | constant, | ||
bool | overrideValues = true |
||
) |
Assign a constant string value to nodes/pointers.
- Parameters
-
list QList of PointerPtr or DataPtr property the property the shall be set to specified value constant a string to assign overrideValues if true, current property values are overwritten; otherwise not
Definition at line 136 of file ValueModifier.cpp.
template ROCSLIB_EXPORT void ValueModifier::assignRandomIntegers< PointerPtr > | ( | const QList< T > & | list, |
const QString & | property, | ||
int | lowerLimit, | ||
int | upperLimit, | ||
int | seed, | ||
bool | overrideValues = true |
||
) |
Assign integers uniformly at random from range [lowerLimit,upperLimit] to data elements.
Using Mersenne-Twister random number generator, initialized by 'seed'. If not lowerLimit < upperLimit the function returns without any operation.
- Parameters
-
list QList of PointerPtr or DataPtr property the property the shall be set to specified value lowerLimit the lower limit for random number interval upperLimit the upper limit for random number interval overrideValues if true, current property values are overwritten; otherwise not
Definition at line 89 of file ValueModifier.cpp.
template ROCSLIB_EXPORT void ValueModifier::assignRandomReals< PointerPtr > | ( | const QList< T > & | list, |
const QString & | property, | ||
qreal | lowerLimit, | ||
qreal | upperLimit, | ||
int | seed, | ||
bool | overrideValues = true |
||
) |
Assign float values uniformly at random from range [lowerLimit,upperLimit] to nodes.
Using Mersenne-Twister random number generator, initialized by 'seed'. If not lowerLimit < upperLimit the function returns without any operation.
- Parameters
-
list QList of PointerPtr or DataPtr property the property the shall be set to specified value lowerLimit the lower limit for random number interval upperLimit the upper limit for random number interval overrideValues if true, current property values are overwritten; otherwise not
Definition at line 113 of file ValueModifier.cpp.
template ROCSLIB_EXPORT void ValueModifier::enumerate< PointerPtr > | ( | const QList< T > & | list, |
const QString & | property, | ||
int | start, | ||
const QString & | baseString, | ||
bool | overrideValues = true |
||
) |
Assign integers in increasing order starting at 'start' to all nodes.
- Parameters
-
list QList of PointerPtr or DataPtr property the property the shall be set to specified value start the integer to start from baseString the string to append the successive integers to overrideValues if true, current property values are overwritten; otherwise not
Definition at line 38 of file ValueModifier.cpp.
template ROCSLIB_EXPORT void ValueModifier::enumerateAlpha< PointerPtr > | ( | const QList< T > & | list, |
const QString & | property, | ||
const QString & | start, | ||
bool | overrideValues = true |
||
) |
Assign strings in increasing order starting at 'start' to all nodes.
- Parameters
-
list QList of PointerPtr or DataPtr property the property the shall be set to specified value start the string to start from overrideValues if true, current property values are overwritten; otherwise not
Definition at line 52 of file ValueModifier.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.