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