![]() |
OGS
|
A Station (observation site) is basically a Point with some additional information.
Additional information is largely optional (except for a name, but even this may be empty). It may include a name, a stratigraphy (only for the derived class StationBore), time series data from data loggers (as a SensorData-object), etc.
#include <Station.h>
Public Member Functions | |
| Station (double x=0.0, double y=0.0, double z=0.0, std::string name="") | |
| Constructor. | |
| Station (Point const *coords, std::string name="") | |
| Station (Station const &src) | |
| std::string const & | getName () const |
| Returns the name of the station. | |
| void | setName (std::string const &name) |
| double | getStationValue () const |
| Returns the specific value for this station. | |
| void | setStationValue (double station_value) |
| void | addSensorDataFromCSV (const std::string &file_name) |
| Allows to add sensor data from a CSV file to the observation site. | |
| const SensorData * | getSensorData () const |
| Returns all the sensor data for this observation site. | |
Public Member Functions inherited from GeoLib::Point | |
| Point ()=default | |
| Point (double x1, double x2, double x3, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
| Point (MathLib::Point3d const &x, std::size_t id) | |
| Point (std::array< double, 3 > const &x, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
| GEOTYPE | getGeoType () const override |
| return a geometry type | |
Public Member Functions inherited from MathLib::Point3dWithID | |
| Point3dWithID (double x0, double x1, double x2, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
| Point3dWithID (std::array< double, 3 > const &coords, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
| Point3dWithID (MathLib::Point3d const &pnt, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
| Point3dWithID () | |
| std::size_t | getID () const |
Public Member Functions inherited from MathLib::Point3d | |
| Point3d () | |
| Point3d (std::array< double, 3 > x) | |
| virtual | ~Point3d ()=default |
| Point3d (Point3d const &)=default | |
| Point3d & | operator= (Point3d const &)=default |
| const double & | operator[] (std::size_t idx) const |
| const access operator The access to the point coordinates is like the access to a field. Code example: | |
| double & | operator[] (std::size_t idx) |
| access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ). | |
| const double * | data () const |
| double * | data () |
| Eigen::Vector3d const & | asEigenVector3d () const |
| Eigen::Vector3d & | asEigenVector3d () |
Public Member Functions inherited from GeoLib::GeoObject | |
| virtual | ~GeoObject ()=default |
Static Public Member Functions | |
| static Station * | createStation (const std::string &line) |
| static Station * | createStation (const std::string &name, double x, double y, double z) |
| Creates a new station object based on the given parameters. | |
Private Attributes | |
| std::string | _name |
| double | _station_value {0.0} |
| std::unique_ptr< SensorData > | _sensor_data {nullptr} |
Additional Inherited Members | |
Protected Member Functions inherited from MathLib::Point3dWithID | |
| void | setID (std::size_t id) |
| Sets the ID of a node to the given value. | |
Protected Attributes inherited from GeoLib::Point | |
| friend | PointVec |
|
explicit |
Constructor.
Constructor initialising a Station object
| x | The x-coordinate of the station. |
| y | The y-coordinate of the station. |
| z | The z-coordinate of the station. |
| name | The name of the station. |
Definition at line 25 of file Station.cpp.
Referenced by createStation(), and createStation().
|
explicit |
Definition at line 31 of file Station.cpp.
| GeoLib::Station::Station | ( | Station const & | src | ) |
Constructor copies the source object
| src | the Station object that should be copied |
Definition at line 36 of file Station.cpp.
|
inline |
Allows to add sensor data from a CSV file to the observation site.
Definition at line 83 of file Station.h.
References _sensor_data.
Referenced by GeoLib::IO::XmlStnInterface::readStations().
|
static |
Creates a Station-object from information contained in a string (assuming the string has the right format)
Definition at line 46 of file Station.cpp.
References Station(), INFO(), BaseLib::replaceString(), and BaseLib::splitString().
Referenced by convertPoints(), and FileIO::SHPInterface::readStations().
|
static |
Creates a new station object based on the given parameters.
Definition at line 71 of file Station.cpp.
References Station().
|
inline |
Returns the name of the station.
Definition at line 60 of file Station.h.
References _name.
Referenced by DiagramPrefsDialog::DiagramPrefsDialog(), DiagramPrefsDialog::DiagramPrefsDialog(), StratScene::StratScene(), and GeoLib::IO::XmlStnInterface::readStratigraphy().
|
inline |
Returns all the sensor data for this observation site.
Definition at line 89 of file Station.h.
References _sensor_data.
Referenced by DiagramPrefsDialog::DiagramPrefsDialog(), and MainWindow::showDiagramPrefsDialog().
|
inline |
Returns the specific value for this station.
Definition at line 73 of file Station.h.
References _station_value.
Referenced by VtkStationSource::RequestData().
|
inline |
|
inline |
Allows to set a specific value for this station (e.g. for classification)
Definition at line 77 of file Station.h.
References _station_value.
Referenced by GeoLib::IO::XmlStnInterface::readStations().
|
private |
|
private |
Definition at line 94 of file Station.h.
Referenced by addSensorDataFromCSV(), and getSensorData().
|
private |
Definition at line 93 of file Station.h.
Referenced by getStationValue(), and setStationValue().