#include <WEMPrimitiveValueList.h>
Public Member Functions | |
| WEMPrimitiveValueList () | |
| Constructor. | |
| WEMPrimitiveValueList (std::string description) | |
| Constructor. | |
| WEMPrimitiveValueList (const WEMPrimitiveValueList &valueList) | |
| Copy constructor. | |
| ~WEMPrimitiveValueList () | |
| Destructor. | |
| void | copyProperties (const WEMPrimitiveValueList &valueList) |
| Copy properties of the given primitive value list. | |
| std::string | getDescription () const |
| Get description. | |
| std::string | getUnits () const |
| Get units. | |
| void | setUnits (std::string units) |
| Set units. | |
| PrimitiveValueListTypes | getPrimitiveValueListType () const |
| Get primitive mode. | |
| void | setPrimitiveValueListType (PrimitiveValueListTypes primitiveValueListType) |
| Set primitive mode. | |
| bool | isValid () const |
| Are the values valid? The description should be non-empty, the list should contain values and the minimum and maximum values should be set. | |
| unsigned int | getNumValues () const |
| Get number of values. | |
| bool | isPersistent () const |
| Should the value list be saved when saving the WEM? | |
| void | setPersistence (bool persistent) |
| Set whether the value list should be saved when saving the WEM. | |
| MLDataType | getDataType () const |
| Get data type. | |
| void | setDataType (MLDataType dataType) |
| Set data type. | |
| double | getMinValue () const |
| Get minimum value. | |
| double | getMaxValue () const |
| Get maximum value. | |
| double | getMeanValue () const |
| Get mean value. | |
| void | setMinMaxValue (double minValue, double maxValue) |
| Set min - max values, switch to fixed values. | |
| void | clampMinValue (double minValue) |
| Clamp min value to given value. | |
| void | clampMaxValue (double maxValue) |
| Clamp max value to given value. | |
| double | getStdValue () const |
| Get standard deviation value. | |
| double | getRMSDValue () const |
| Get root mean square deviation value. | |
| void | updateStatistics () |
| Update statistics: mean, std and rms. | |
| double | getValue (unsigned int index) const |
| Get value at given index. | |
| void | setValue (unsigned int index, double value) |
| Store given value at given index. | |
| void | appendValue (double value) |
| Append given value. | |
| void | setValueFrom (unsigned int index, unsigned int source) |
| Copy value from index source to given index. | |
| void | addValueFrom (unsigned int index, unsigned int source, double modifier) |
| Add value from index source to given index. Min - Max values are not adjusted. | |
| void | resetValues () |
| Reset stored values. | |
| void | initializeValues (unsigned int number, double value) |
| Initialize X values with given value. | |
| void | multiplyValues (double modifier) |
| Multiply values with given modifier. Adjust min - max values. | |
| void | extendValues (unsigned int number, double value) |
| Extend list with given amount and initialize new values with given value. | |
| void | saveTo (std::ostream &outstream) |
| Save attributes to given output stream. | |
| unsigned int | loadFrom (std::istream &instream, short version, bool swapBytes) |
| Load attributes from given input stream. | |
| unsigned int | loadFrom (char *map, short version, bool swapBytes) |
| Load attributes from given memory map. | |
Definition at line 24 of file WEMPrimitiveValueList.h.
| ml::WEMPrimitiveValueList::WEMPrimitiveValueList | ( | ) |
Constructor.
| ml::WEMPrimitiveValueList::WEMPrimitiveValueList | ( | std::string | description | ) |
Constructor.
| ml::WEMPrimitiveValueList::WEMPrimitiveValueList | ( | const WEMPrimitiveValueList & | valueList | ) |
Copy constructor.
| ml::WEMPrimitiveValueList::~WEMPrimitiveValueList | ( | ) |
Destructor.
| void ml::WEMPrimitiveValueList::addValueFrom | ( | unsigned int | index, | |
| unsigned int | source, | |||
| double | modifier | |||
| ) | [inline] |
Add value from index source to given index. Min - Max values are not adjusted.
Definition at line 104 of file WEMPrimitiveValueList.h.
| void ml::WEMPrimitiveValueList::appendValue | ( | double | value | ) | [inline] |
Append given value.
Use with caution!! Do not adjust min and max values! WEMPatch already adds a default value when a primitive is added, so use with caution!
Definition at line 100 of file WEMPrimitiveValueList.h.
| void ml::WEMPrimitiveValueList::clampMaxValue | ( | double | maxValue | ) |
Clamp max value to given value.
| void ml::WEMPrimitiveValueList::clampMinValue | ( | double | minValue | ) |
Clamp min value to given value.
| void ml::WEMPrimitiveValueList::copyProperties | ( | const WEMPrimitiveValueList & | valueList | ) |
Copy properties of the given primitive value list.
| void ml::WEMPrimitiveValueList::extendValues | ( | unsigned int | number, | |
| double | value | |||
| ) |
Extend list with given amount and initialize new values with given value.
| MLDataType ml::WEMPrimitiveValueList::getDataType | ( | void | ) | const [inline] |
| std::string ml::WEMPrimitiveValueList::getDescription | ( | ) | const [inline] |
| double ml::WEMPrimitiveValueList::getMaxValue | ( | ) | const [inline] |
| double ml::WEMPrimitiveValueList::getMeanValue | ( | ) | const [inline] |
| double ml::WEMPrimitiveValueList::getMinValue | ( | ) | const [inline] |
| unsigned int ml::WEMPrimitiveValueList::getNumValues | ( | ) | const [inline] |
| PrimitiveValueListTypes ml::WEMPrimitiveValueList::getPrimitiveValueListType | ( | ) | const [inline] |
| double ml::WEMPrimitiveValueList::getRMSDValue | ( | ) | const [inline] |
| double ml::WEMPrimitiveValueList::getStdValue | ( | ) | const [inline] |
| std::string ml::WEMPrimitiveValueList::getUnits | ( | ) | const [inline] |
| double ml::WEMPrimitiveValueList::getValue | ( | unsigned int | index | ) | const [inline] |
| void ml::WEMPrimitiveValueList::initializeValues | ( | unsigned int | number, | |
| double | value | |||
| ) |
Initialize X values with given value.
| bool ml::WEMPrimitiveValueList::isPersistent | ( | ) | const [inline] |
Should the value list be saved when saving the WEM?
Definition at line 64 of file WEMPrimitiveValueList.h.
| bool ml::WEMPrimitiveValueList::isValid | ( | ) | const |
Are the values valid? The description should be non-empty, the list should contain values and the minimum and maximum values should be set.
| unsigned int ml::WEMPrimitiveValueList::loadFrom | ( | char * | map, | |
| short | version, | |||
| bool | swapBytes | |||
| ) |
Load attributes from given memory map.
| unsigned int ml::WEMPrimitiveValueList::loadFrom | ( | std::istream & | instream, | |
| short | version, | |||
| bool | swapBytes | |||
| ) |
Load attributes from given input stream.
| void ml::WEMPrimitiveValueList::multiplyValues | ( | double | modifier | ) |
Multiply values with given modifier. Adjust min - max values.
| void ml::WEMPrimitiveValueList::resetValues | ( | ) |
Reset stored values.
| void ml::WEMPrimitiveValueList::saveTo | ( | std::ostream & | outstream | ) |
Save attributes to given output stream.
| void ml::WEMPrimitiveValueList::setDataType | ( | MLDataType | dataType | ) | [inline] |
| void ml::WEMPrimitiveValueList::setMinMaxValue | ( | double | minValue, | |
| double | maxValue | |||
| ) | [inline] |
Set min - max values, switch to fixed values.
Definition at line 80 of file WEMPrimitiveValueList.h.
| void ml::WEMPrimitiveValueList::setPersistence | ( | bool | persistent | ) | [inline] |
Set whether the value list should be saved when saving the WEM.
Definition at line 66 of file WEMPrimitiveValueList.h.
| void ml::WEMPrimitiveValueList::setPrimitiveValueListType | ( | PrimitiveValueListTypes | primitiveValueListType | ) | [inline] |
| void ml::WEMPrimitiveValueList::setUnits | ( | std::string | units | ) | [inline] |
| void ml::WEMPrimitiveValueList::setValue | ( | unsigned int | index, | |
| double | value | |||
| ) |
Store given value at given index.
If index exceeds the size of the vector, the value is appended.
| void ml::WEMPrimitiveValueList::setValueFrom | ( | unsigned int | index, | |
| unsigned int | source | |||
| ) | [inline] |
Copy value from index source to given index.
Definition at line 102 of file WEMPrimitiveValueList.h.
| void ml::WEMPrimitiveValueList::updateStatistics | ( | ) |
Update statistics: mean, std and rms.
1.5.8