Class PositioningInformationModel
ClassList > PositioningInformationModel
Inherits the following classes: QStandardItemModel
Public Types
| Type | Name |
|---|---|
| enum | Roles |
Public Properties
| Type | Name |
|---|---|
| property double | antennaHeight |
| property QgsCoordinateReferenceSystem | coordinateDisplayCrs |
| property Qgis::DistanceUnit | distanceUnits |
| property Positioning * | positioningSource |
Public Signals
| Type | Name |
|---|---|
| signal void | antennaHeightChanged |
| signal void | coordinateDisplayCrsChanged |
| signal void | distanceUnitsChanged |
| signal void | positioningSourceChanged |
Public Functions
| Type | Name |
|---|---|
| PositioningInformationModel (QObject * parent=nullptr) |
|
| double | antennaHeight () const Returns the antenna height. |
| QgsCoordinateReferenceSystem | coordinateDisplayCrs () const Returns the coordinate display CRS. |
| Qgis::DistanceUnit | distanceUnits () const Returns the distance units. |
| Positioning * | positioningSource () const Returns the positioning source. |
| void | refreshData () Refreshes the data in the model. |
| QHash< int, QByteArray > | roleNames () override const Returns the names of the roles used by the model. |
| void | setAntennaHeight (double antennaHeight) Sets the antenna height. |
| void | setCoordinateDisplayCrs (const QgsCoordinateReferenceSystem & coordinateDisplayCrs) Sets the coordinate display CRS. |
| bool | setData (const QModelIndex & index, const QVariant & value, int role) override Sets the data for the given index. |
| void | setDistanceUnits (Qgis::DistanceUnit distanceUnits) Sets the distance units. |
| void | setPositioningSource (Positioning * positioningSource) Updates the positioning source and reconnects the positionInformationChanged signal to refreshData, while disconnecting the previous connection. |
| void | updateInfo (const QString & name, const QVariant & value) Updates the information in the model with the given name and value. |
Public Types Documentation
enum Roles
enum PositioningInformationModel::Roles {
NameRole = Qt::UserRole,
ValueRole = Qt::UserRole + 1
};
Public Properties Documentation
property antennaHeight [1/2]
double PositioningInformationModel::antennaHeight;
property coordinateDisplayCrs [1/2]
QgsCoordinateReferenceSystem PositioningInformationModel::coordinateDisplayCrs;
property distanceUnits [1/2]
Qgis::DistanceUnit PositioningInformationModel::distanceUnits;
property positioningSource [1/2]
Positioning * PositioningInformationModel::positioningSource;
Public Signals Documentation
signal antennaHeightChanged
void PositioningInformationModel::antennaHeightChanged;
signal coordinateDisplayCrsChanged
void PositioningInformationModel::coordinateDisplayCrsChanged;
signal distanceUnitsChanged
void PositioningInformationModel::distanceUnitsChanged;
signal positioningSourceChanged
void PositioningInformationModel::positioningSourceChanged;
Public Functions Documentation
function PositioningInformationModel
PositioningInformationModel::PositioningInformationModel (
QObject * parent=nullptr
)
function antennaHeight [2/2]
Returns the antenna height.
double PositioningInformationModel::antennaHeight () const
function coordinateDisplayCrs [2/2]
Returns the coordinate display CRS.
QgsCoordinateReferenceSystem PositioningInformationModel::coordinateDisplayCrs () const
function distanceUnits [2/2]
Returns the distance units.
Qgis::DistanceUnit PositioningInformationModel::distanceUnits () const
function positioningSource [2/2]
Returns the positioning source.
Positioning * PositioningInformationModel::positioningSource () const
function refreshData
Refreshes the data in the model.
void PositioningInformationModel::refreshData ()
function roleNames
Returns the names of the roles used by the model.
QHash< int, QByteArray > PositioningInformationModel::roleNames () override const
function setAntennaHeight
Sets the antenna height.
void PositioningInformationModel::setAntennaHeight (
double antennaHeight
)
Parameters:
antennaHeightThe new antenna height
function setCoordinateDisplayCrs
Sets the coordinate display CRS.
void PositioningInformationModel::setCoordinateDisplayCrs (
const QgsCoordinateReferenceSystem & coordinateDisplayCrs
)
Parameters:
coordinateDisplayCrsThe new CRS
function setData
Sets the data for the given index.
bool PositioningInformationModel::setData (
const QModelIndex & index,
const QVariant & value,
int role
) override
Parameters:
indexThe index to set the data forvalueThe new valueroleThe role of the data
function setDistanceUnits
Sets the distance units.
void PositioningInformationModel::setDistanceUnits (
Qgis::DistanceUnit distanceUnits
)
Parameters:
distanceUnitsThe new distance units
function setPositioningSource
Updates the positioning source and reconnects the positionInformationChanged signal to refreshData, while disconnecting the previous connection.
void PositioningInformationModel::setPositioningSource (
Positioning * positioningSource
)
Parameters:
positioningSourceThe new positioning source to update with
function updateInfo
Updates the information in the model with the given name and value.
void PositioningInformationModel::updateInfo (
const QString & name,
const QVariant & value
)
Parameters:
nameThe name of the information to updatevalueThe new value
The documentation for this class was generated from the following file src/core/positioning/positioninginformationmodel.h