QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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 = std::make_unique< QgsBearingNumericFormat >();
103 res.insert( QStringLiteral(
"direction_format" ),
static_cast< int >( mDirectionFormat ) );
109 return mDirectionFormat;
The class is used as a container of context for various read/write operations on other objects.
A context for numeric formats.