QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
27 return QStringLiteral(
"bearing" );
32 return QObject::tr(
"Bearing" );
47 switch ( mDirectionFormat )
51 value = fmod( value, 360.0 );
57 if ( res != QLatin1String(
"0" ) && res != QLatin1String(
"180" ) )
59 res += QChar( 176 ) + ( value < 0 ? QObject::tr(
"W" ) : QObject::tr(
"E" ) );
68 value = fmod( value, 360.0 );
78 value = fmod( value, 360.0 );
94 std::unique_ptr< QgsBearingNumericFormat > res = qgis::make_unique< QgsBearingNumericFormat >();
103 res.insert( QStringLiteral(
"direction_format" ),
static_cast< int >( mDirectionFormat ) );
109 return mDirectionFormat;