This class represents a Level in formit Core.
It contains a reference to the WSM Level object and also stores name and elevation for convenience.
#include <FormItCoreTypes.h>
Public Member Functions | |
| LevelData ()=default | |
| Constructor. | |
| LevelData (WSM::ObjectHistoryID const &id, double elevation, 1::string name, double area) | |
| WSM::ObjectHistoryID const & | getID () const |
| getID() function. | |
| double | getElevation () const |
| getElevation() function. | |
| double | getArea () const |
| getArea() function. | |
| FORMIT_CORE_EXPORT double | getAreaForObjects (size_t nHistoryId, 1::vector< size_t > const &aObjectIds) |
| getAreaForObjects() function. | |
| const ::string & | getName () const |
| getName() function. | |
| void | set (WSM::ObjectHistoryID const &id, double elevation, 1::string name, double area) |
| set() function. | |
| void | setElevation (double elevation) |
| setElevation() function. | |
| bool | operator< (const LevelData &aOther) const |
| bool | operator<= (const LevelData &aOther) const |
| bool | operator> (const LevelData &aOther) const |
| bool | operator>= (const LevelData &aOther) const |
Public Attributes | |
| WSM::ObjectHistoryID | mID |
| identifier | |
| double | mElevation = 0.0 |
| elevation | |
| double | mArea = 0.0 |
| ::string | mName |
| level name | |
|
default |
Constructor.
|
inline |
|
inline |
getArea() function.
| FORMIT_CORE_EXPORT double FormIt::LevelData::getAreaForObjects | ( | size_t | nHistoryId, |
| 1::vector< size_t > const & | aObjectIds | ||
| ) |
getAreaForObjects() function.
| [in] | nHistoryId | ID of the given History |
| [in] | aObjectIds | Vector of objects for which to calculate the level area |
|
inline |
getElevation() function.
|
inline |
getID() function.
|
inline |
getName() function.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
set() function.
| [in] | id | |
| [in] | elevation | |
| [in] | name | |
| [in] | area |
|
inline |
setElevation() function.
| [in] | elevation |
| double FormIt::LevelData::mArea = 0.0 |
| double FormIt::LevelData::mElevation = 0.0 |
elevation
| WSM::ObjectHistoryID FormIt::LevelData::mID |
identifier
| ::string FormIt::LevelData::mName |
level name