Parameters to control how locations are created from a simulated route of travel (Polyline). More...
| Header | #include <Simulation |
| Since | Esri |
| Inherits | Esri |
This class was introduced in Esri::ArcGISRuntime 100.8.
Public Functions
| Simulation | |
| Simulation | |
| virtual | ~ |
| double | horizontal |
| void | set |
| void | set |
| void | set |
| void | set |
| QDate | start |
| double | velocity() const |
| double | vertical |
Detailed Description
This object can be provided as an input to the SimulatedLocationDataSource::setLocationsWithPolyline(Polyline, SimulationParameters) method to specify the start time for the first location, travel velocity (meters per second), and horizontal and vertical accuracy of locations.
Member Function Documentation
SimulationParameters::SimulationParameters (const QDateTime &startTime , double velocity, double horizontalAccuracy , double verticalAccuracy , QObject *parent = nullptr)
Creates a new SimulationParameters parameters object.
- startTime - Date and time of the first location. Each subsequent location will increment its timestamp by one second.
- velocity - Rate of travel, in meters per second. Default value is
10.0. Note that very small values for velocity may greatly increase the number of locations created. - horizontalAccuracy - The horizontal accuracy to assign to generated locations. Default value is
0.0. - verticalAccuracy - The vertical accuracy to assign to generated locations. Default value is
0.0. - parent - The optional parent QObject.
SimulationParameters::SimulationParameters (QObject *parent = nullptr)
Creates a SimulationParameters parameters object with an optional parent.
[override virtual] SimulationParameters::~SimulationParameters ()
Destructor.
double SimulationParameters::horizontalAccuracy () const
Returns horizontal accuracy, default value is 0.0.
See also setHorizontalAccuracy().
void SimulationParameters::setHorizontalAccuracy (double horizontalAccuracy )
Sets the horizontalAccuracy to horizontalAccuracy.
See also horizontalAccuracy.
void SimulationParameters::setStartTime (const QDateTime &startTime )
Sets the startTime to startTime.
See also startTime.
void SimulationParameters::setVelocity (double velocity)
Sets the velocity to velocity.
See also velocity.
void SimulationParameters::setVerticalAccuracy (double verticalAccuracy )
Sets the verticalAccuracy to verticalAccuracy.
See also verticalAccuracy.
QDateTime SimulationParameters::startTime () const
Returns date and time of first location.
See also setStartTime().
double SimulationParameters::velocity() const
Returns rate of travel, in meters per sec, default value is 10.0.
Pay attention to very small values as these may greatly increase the count of locations.
See also setVelocity().
double SimulationParameters::verticalAccuracy () const
Returns vertical accuracy, default value is 0.0.
See also setVerticalAccuracy().