IPlayback interface - represents the operations that can be performed on a IDataSource which has playback capabilities (e.g.
More...
IPlayback interface - represents the operations that can be performed on a IDataSource which has playback capabilities (e.g.
log, route replay)
◆ getCurrentPosition()
| virtual LargeInteger gem::sense::IPlayback::getCurrentPosition |
( |
| ) |
const |
|
pure virtual |
Return the current position (milliseconds from begin/departure/starting point).
- Returns
- The playback position in milliseconds.
◆ getDuration()
| virtual LargeInteger gem::sense::IPlayback::getDuration |
( |
| ) |
const |
|
pure virtual |
Return playback duration (milliseconds).
- Returns
- The duration of the playback in milliseconds.
◆ getLatestData()
| virtual DataPtr gem::sense::IPlayback::getLatestData |
( |
EDataType | dataType | ) |
const |
|
pure virtual |
- Parameters
-
- Returns
- If data source produces such a data type then it returns a shared data pointer, otherwise it returns an empty shared pointer.
◆ getLogPath()
| virtual String gem::sense::IPlayback::getLogPath |
( |
| ) |
|
|
pure virtual |
◆ getMaxSpeedMultiplier()
| virtual float gem::sense::IPlayback::getMaxSpeedMultiplier |
( |
| ) |
const |
|
pure virtual |
Get the max multiplier.
- Returns
- The maximum speed multiplier.
◆ getMinSpeedMultiplier()
| virtual float gem::sense::IPlayback::getMinSpeedMultiplier |
( |
| ) |
const |
|
pure virtual |
Get the min multiplier.
- Returns
- The minimum speed multiplier.
◆ getRoute()
| virtual Route gem::sense::IPlayback::getRoute |
( |
| ) |
|
|
pure virtual |
- Returns
- The route if it is a simulation data source.
◆ getSpeedMultiplier()
| virtual float gem::sense::IPlayback::getSpeedMultiplier |
( |
| ) |
const |
|
pure virtual |
Get the speed multiplier.
- Returns
- The playback speed multiplier.
◆ getState()
Return the playback state of this data source.
- Returns
- The playing state.
◆ pause()
| virtual int gem::sense::IPlayback::pause |
( |
| ) |
|
|
pure virtual |
◆ resume()
| virtual int gem::sense::IPlayback::resume |
( |
| ) |
|
|
pure virtual |
◆ setCurrentPosition()
Sets the current position.
- Parameters
-
| [in] | timeMS | - The new current position (milliseconds from begin/departure/starting point). |
- Returns
- Return the old position (milliseconds from begin)
◆ setLogPath()
| virtual int gem::sense::IPlayback::setLogPath |
( |
const String & | logPath | ) |
|
|
pure virtual |
Set log path.
- Parameters
-
| [in] | logPath | - The log path. |
- Returns
- Error code.
- See also
- error KNoError
◆ setLoopMode()
| virtual void gem::sense::IPlayback::setLoopMode |
( |
bool | value | ) |
|
|
pure virtual |
Play log continuously.
- Parameters
-
| value | The actual value to be set for loop mode. |
◆ setRoute()
| virtual int gem::sense::IPlayback::setRoute |
( |
const IRoute & | route | ) |
|
|
pure virtual |
Set route.
- Parameters
-
| [in] | route | The route used for generating data source data. |
- Returns
- Error code.
- See also
- error KNoError
◆ setSpeedMultiplier()
| virtual void gem::sense::IPlayback::setSpeedMultiplier |
( |
float | speedMultiplier | ) |
|
|
pure virtual |
Set the speed multiplier.
- Parameters
-
| [in] | speedMultiplier | - The speed multiplier. Can have values between 0.f and getMaxSpeedMultiplier |