• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/RocsCore

Public Member Functions | List of all members
ValueModifier Class Reference

#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<typename T >
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
listQList of PointerPtr or DataPtr
propertythe property the shall be set to specified value
constanta string to assign
overrideValuesif true, current property values are overwritten; otherwise not

Definition at line 136 of file ValueModifier.cpp.

template<typename T >
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
listQList of PointerPtr or DataPtr
propertythe property the shall be set to specified value
lowerLimitthe lower limit for random number interval
upperLimitthe upper limit for random number interval
overrideValuesif true, current property values are overwritten; otherwise not

Definition at line 89 of file ValueModifier.cpp.

template<typename T >
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
listQList of PointerPtr or DataPtr
propertythe property the shall be set to specified value
lowerLimitthe lower limit for random number interval
upperLimitthe upper limit for random number interval
overrideValuesif true, current property values are overwritten; otherwise not

Definition at line 113 of file ValueModifier.cpp.

template<typename T >
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
listQList of PointerPtr or DataPtr
propertythe property the shall be set to specified value
startthe integer to start from
baseStringthe string to append the successive integers to
overrideValuesif true, current property values are overwritten; otherwise not

Definition at line 38 of file ValueModifier.cpp.

template<typename T >
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
listQList of PointerPtr or DataPtr
propertythe property the shall be set to specified value
startthe string to start from
overrideValuesif 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:
  • ValueModifier.h
  • ValueModifier.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal