QGIS API Documentation 3.43.0-Master (52e71951ee5)
Public Member Functions | List of all members
QgsGpsToolsInterface Class Referenceabstract

Abstract interface class for the QGIS GPS tools. More...

#include <qgsgpstoolsinterface.h>

Public Member Functions

virtual ~QgsGpsToolsInterface ()=default
 
virtual void createFeatureFromGpsTrack ()=0
 Creates a feature from the current GPS track.
 
virtual void setGpsPanelConnection (QgsGpsConnection *connection)=0
 Sets a GPS connection to use within the GPS Panel widget.
 
virtual void setGpsTrackLineSymbol (QgsLineSymbol *symbol)=0
 Sets the line symbol of the GPS track and changes the QgsAppGpsDigitizing::settingTrackLineSymbol setting.
 

Detailed Description

Abstract interface class for the QGIS GPS tools.

Since
QGIS 3.44

Definition at line 30 of file qgsgpstoolsinterface.h.

Constructor & Destructor Documentation

◆ ~QgsGpsToolsInterface()

virtual QgsGpsToolsInterface::~QgsGpsToolsInterface ( )
virtualdefault

Member Function Documentation

◆ createFeatureFromGpsTrack()

virtual void QgsGpsToolsInterface::createFeatureFromGpsTrack ( )
pure virtual

Creates a feature from the current GPS track.

The geometry type of the feature is determined by the layer set via QgsProjectGpsSettings::destinationLayer().

The created geometry will be automatically commited depending on the status of QgsProjectGpsSettings::automaticallyCommitFeatures().

◆ setGpsPanelConnection()

virtual void QgsGpsToolsInterface::setGpsPanelConnection ( QgsGpsConnection connection)
pure virtual

Sets a GPS connection to use within the GPS Panel widget.

Any existing GPS connection used by the widget will be disconnected and replaced with this connection. The connection is automatically registered within the QgsApplication::gpsConnectionRegistry().

◆ setGpsTrackLineSymbol()

virtual void QgsGpsToolsInterface::setGpsTrackLineSymbol ( QgsLineSymbol symbol)
pure virtual

Sets the line symbol of the GPS track and changes the QgsAppGpsDigitizing::settingTrackLineSymbol setting.

If there is a current GPS track, its appearance is updated according to the symbol.


The documentation for this class was generated from the following file: