Class Tracker
Inherits the following classes: QObject
Public Types
| Type | Name |
|---|---|
| enum | MeasureType |
Public Properties
| Type | Name |
|---|---|
| property bool | conjunction |
| property QgsFeature | feature |
| property FeatureModel * | featureModel |
| property bool | filterAccuracy |
| property bool | isActive |
| property bool | isReplaying |
| property bool | isSuspended |
| property double | maximumDistance |
| property MeasureType | measureType |
| property double | minimumDistance |
| property RubberbandModel * | rubberbandModel |
| property bool | sensorCapture |
| property QDateTime | startPositionTimestamp |
| property double | timeInterval |
| property QgsVectorLayer * | vectorLayer |
| property bool | visible |
Public Signals
| Type | Name |
|---|---|
| signal void | conjunctionChanged |
| signal void | featureChanged |
| signal void | featureCreated |
| signal void | featureModelChanged |
| signal void | filterAccuracyChanged |
| signal void | isActiveChanged |
| signal void | isReplayingChanged |
| signal void | isSuspendedChanged |
| signal void | maximumDistanceChanged |
| signal void | measureTypeChanged |
| signal void | minimumDistanceChanged |
| signal void | rubberbandModelChanged |
| signal void | sensorCaptureChanged |
| signal void | startPositionTimestampChanged |
| signal void | timeIntervalChanged |
| signal void | vectorLayerChanged |
| signal void | visibleChanged |
Public Functions
| Type | Name |
|---|---|
| Tracker (QgsVectorLayer * vectorLayer) |
|
| bool | conjunction () const Returns TRUE if all constraints need to be fulfilled between each tracked point. |
| QgsFeature | feature () const Returns the created feature. |
| FeatureModel * | featureModel () const Returns the feature model used to generate the track attributes. |
| bool | filterAccuracy () const Returns TRUE if GNSS accuracy filtering is enabled. |
| bool | isActive () const Returns whether the tracker has been started. |
| bool | isReplaying () const Returns whether the tracker is replaying positions. |
| bool | isSuspended () const Returns whether the track has been suspended. |
| double | maximumDistance () const Returns the maximum distance tolerated beyond which a position will be considered errenous. |
| MeasureType | measureType () const Returns the measure type used with the tracker geometry's M dimension when available. |
| double | minimumDistance () const Returns the minimum distance constraint between each tracked point. |
| Q_INVOKABLE void | processPositionInformation (const GnssPositionInformation & positionInformation, const QgsPoint & projectedPosition) Process the given position information and projected position passed onto the tracker. |
| void | replayPositionInformationList (const QList< GnssPositionInformation > & positionInformationList, QgsQuickCoordinateTransformer * coordinateTransformer=nullptr) Replays a list of position information taking into account the tracker settings. |
| RubberbandModel * | rubberbandModel () const Returns the rubber band model used to generate the track geometry. |
| bool | sensorCapture () const Returns if TRUE, newly captured sensor data is needed between each tracked point. |
| void | setConjunction (bool conjunction) Sets where all constraints need to be fulfilled between each tracked point. |
| void | setFeature (const QgsFeature & feature) Sets the created feature. |
| void | setFeatureModel (FeatureModel * featureModel) Sets the feature model used to generate the track attributes. |
| void | setFilterAccuracy (bool enabled) Sets whether GNSS accuracy filtering is enabled. |
| void | setMaximumDistance (double maximumDistance) Sets the maximum distance tolerated beyond which a position will be considered errenous. |
| void | setMeasureType (MeasureType type) Sets the measure type used with the tracker geometry's M dimension when available. |
| void | setMinimumDistance (double minimumDistance) Sets the minimum distance constraint between each tracked point. |
| void | setRubberbandModel (RubberbandModel * rubberbandModel) Sets the rubber band model used to generate the track geometry. |
| void | setSensorCapture (bool capture) Sets whether newly captured sensor data is needed between each tracked point. |
| void | setStartPositionTimestamp (const QDateTime & startPositionTimestamp) Sets the timestamp of the first recorded point. |
| void | setTimeInterval (double timeInterval) Sets the minimum time interval constraint between each tracked point. |
| void | setVectorLayer (QgsVectorLayer * vectorLayer) Sets the current layer. |
| void | setVisible (bool visible) Sets whether the tracker rubberband is visible. |
| void | start (const GnssPositionInformation & positionInformation=GnssPositionInformation(), const QgsPoint & projectedPosition=QgsPoint()) Starts tracking. |
| QDateTime | startPositionTimestamp () const Returns the timestamp of the first recorded point. |
| void | stop () Stops tracking. |
| void | suspendUntilReplay () |
| double | timeInterval () const Returns the minimum time interval constraint between each tracked point. |
| QgsVectorLayer * | vectorLayer () const Returns the current layer. |
| bool | visible () const Returns TRUE if the tracker rubberband is visible. |
Public Types Documentation
enum MeasureType
enum Tracker::MeasureType {
SecondsSinceStart = 0,
Timestamp,
GroundSpeed,
Bearing,
HorizontalAccuracy,
VerticalAccuracy,
PDOP,
HDOP,
VDOP
};
Public Properties Documentation
property conjunction [1/2]
bool Tracker::conjunction;
property feature [1/2]
QgsFeature Tracker::feature;
property featureModel [1/2]
FeatureModel * Tracker::featureModel;
property filterAccuracy [1/2]
bool Tracker::filterAccuracy;
property isActive [1/2]
bool Tracker::isActive;
property isReplaying [1/2]
bool Tracker::isReplaying;
property isSuspended [1/2]
bool Tracker::isSuspended;
property maximumDistance [1/2]
double Tracker::maximumDistance;
property measureType [1/2]
MeasureType Tracker::measureType;
property minimumDistance [1/2]
double Tracker::minimumDistance;
property rubberbandModel [1/2]
RubberbandModel * Tracker::rubberbandModel;
property sensorCapture [1/2]
bool Tracker::sensorCapture;
property startPositionTimestamp [1/2]
QDateTime Tracker::startPositionTimestamp;
property timeInterval [1/2]
double Tracker::timeInterval;
property vectorLayer [1/2]
QgsVectorLayer * Tracker::vectorLayer;
property visible [1/2]
bool Tracker::visible;
Public Signals Documentation
signal conjunctionChanged
void Tracker::conjunctionChanged;
signal featureChanged
void Tracker::featureChanged;
signal featureCreated
void Tracker::featureCreated;
signal featureModelChanged
void Tracker::featureModelChanged;
signal filterAccuracyChanged
void Tracker::filterAccuracyChanged;
signal isActiveChanged
void Tracker::isActiveChanged;
signal isReplayingChanged
void Tracker::isReplayingChanged;
signal isSuspendedChanged
void Tracker::isSuspendedChanged;
signal maximumDistanceChanged
void Tracker::maximumDistanceChanged;
signal measureTypeChanged
void Tracker::measureTypeChanged;
signal minimumDistanceChanged
void Tracker::minimumDistanceChanged;
signal rubberbandModelChanged
void Tracker::rubberbandModelChanged;
signal sensorCaptureChanged
void Tracker::sensorCaptureChanged;
signal startPositionTimestampChanged
void Tracker::startPositionTimestampChanged;
signal timeIntervalChanged
void Tracker::timeIntervalChanged;
signal vectorLayerChanged
void Tracker::vectorLayerChanged;
signal visibleChanged
void Tracker::visibleChanged;
Public Functions Documentation
function Tracker
explicit Tracker::Tracker (
QgsVectorLayer * vectorLayer
)
function conjunction [2/2]
Returns TRUE if all constraints need to be fulfilled between each tracked point.
inline bool Tracker::conjunction () const
function feature [2/2]
Returns the created feature.
QgsFeature Tracker::feature () const
function featureModel [2/2]
Returns the feature model used to generate the track attributes.
FeatureModel * Tracker::featureModel () const
function filterAccuracy [2/2]
Returns TRUE if GNSS accuracy filtering is enabled.
bool Tracker::filterAccuracy () const
function isActive [2/2]
Returns whether the tracker has been started.
inline bool Tracker::isActive () const
function isReplaying [2/2]
Returns whether the tracker is replaying positions.
inline bool Tracker::isReplaying () const
function isSuspended [2/2]
Returns whether the track has been suspended.
inline bool Tracker::isSuspended () const
function maximumDistance [2/2]
Returns the maximum distance tolerated beyond which a position will be considered errenous.
inline double Tracker::maximumDistance () const
function measureType [2/2]
Returns the measure type used with the tracker geometry's M dimension when available.
inline MeasureType Tracker::measureType () const
function minimumDistance [2/2]
Returns the minimum distance constraint between each tracked point.
inline double Tracker::minimumDistance () const
function processPositionInformation
Process the given position information and projected position passed onto the tracker.
Q_INVOKABLE void Tracker::processPositionInformation (
const GnssPositionInformation & positionInformation,
const QgsPoint & projectedPosition
)
function replayPositionInformationList
Replays a list of position information taking into account the tracker settings.
void Tracker::replayPositionInformationList (
const QList< GnssPositionInformation > & positionInformationList,
QgsQuickCoordinateTransformer * coordinateTransformer=nullptr
)
function rubberbandModel [2/2]
Returns the rubber band model used to generate the track geometry.
RubberbandModel * Tracker::rubberbandModel () const
function sensorCapture [2/2]
Returns if TRUE, newly captured sensor data is needed between each tracked point.
inline bool Tracker::sensorCapture () const
function setConjunction
Sets where all constraints need to be fulfilled between each tracked point.
void Tracker::setConjunction (
bool conjunction
)
function setFeature
Sets the created feature.
void Tracker::setFeature (
const QgsFeature & feature
)
function setFeatureModel
Sets the feature model used to generate the track attributes.
void Tracker::setFeatureModel (
FeatureModel * featureModel
)
function setFilterAccuracy
Sets whether GNSS accuracy filtering is enabled.
void Tracker::setFilterAccuracy (
bool enabled
)
function setMaximumDistance
Sets the maximum distance tolerated beyond which a position will be considered errenous.
void Tracker::setMaximumDistance (
double maximumDistance
)
function setMeasureType
Sets the measure type used with the tracker geometry's M dimension when available.
void Tracker::setMeasureType (
MeasureType type
)
function setMinimumDistance
Sets the minimum distance constraint between each tracked point.
void Tracker::setMinimumDistance (
double minimumDistance
)
function setRubberbandModel
Sets the rubber band model used to generate the track geometry.
void Tracker::setRubberbandModel (
RubberbandModel * rubberbandModel
)
function setSensorCapture
Sets whether newly captured sensor data is needed between each tracked point.
void Tracker::setSensorCapture (
bool capture
)
function setStartPositionTimestamp
Sets the timestamp of the first recorded point.
inline void Tracker::setStartPositionTimestamp (
const QDateTime & startPositionTimestamp
)
function setTimeInterval
Sets the minimum time interval constraint between each tracked point.
void Tracker::setTimeInterval (
double timeInterval
)
function setVectorLayer
Sets the current layer.
void Tracker::setVectorLayer (
QgsVectorLayer * vectorLayer
)
function setVisible
Sets whether the tracker rubberband is visible.
void Tracker::setVisible (
bool visible
)
function start
Starts tracking.
void Tracker::start (
const GnssPositionInformation & positionInformation=GnssPositionInformation (),
const QgsPoint & projectedPosition=QgsPoint()
)
function startPositionTimestamp [2/2]
Returns the timestamp of the first recorded point.
inline QDateTime Tracker::startPositionTimestamp () const
function stop
Stops tracking.
void Tracker::stop ()
function suspendUntilReplay
void Tracker::suspendUntilReplay ()
function timeInterval [2/2]
Returns the minimum time interval constraint between each tracked point.
inline double Tracker::timeInterval () const
function vectorLayer [2/2]
Returns the current layer.
inline QgsVectorLayer * Tracker::vectorLayer () const
function visible [2/2]
Returns TRUE if the tracker rubberband is visible.
inline bool Tracker::visible () const
The documentation for this class was generated from the following file src/core/tracker.h