Skip to content

OsmController

#include <osmcontroller.h>

Inherits from SceneController, Serenity::Entity

Public Types

Name
enum class ViewMode { BehindCar, BirdsEye}
enum class MarkerType { Car, Arrow, None}

Public Functions

Name
OsmController(Serenity::LayerManager * layerManager, KDGui::Window * window)
~OsmController()
virtual void cleanup() override

Public Attributes

Name
KDBindings::Property<::Serenity::Camera * > camera
KDBindings::Property< ViewMode > viewMode
KDBindings::Property< MarkerType > markerType
KDBindings::Property< float > markerScale
KDBindings::Property< float > speedScale
KDBindings::Property< float > carDistance
const String RouteOpaqueLayerName
const String RoadOpaqueLayerName
const String AreaOpaqueLayerName
const String AreaParkOpaqueLayerName
const String GroundOpaqueLayerName

Additional inherited members

Public Functions inherited from SceneController

Name
SceneController(Serenity::LayerManager * layerManager)
~SceneController() override
void deleteLater()

Protected Attributes inherited from SceneController

Name
Kuesa::Serenity::AssetCollections m_assetCollections
Serenity::LayerManager * m_layerManager

Public Types Documentation

enum ViewMode

Enumerator Value Description
BehindCar
BirdsEye

enum MarkerType

Enumerator Value Description
Car
Arrow
None

Public Functions Documentation

function OsmController

1
2
3
4
explicit OsmController(
    Serenity::LayerManager * layerManager,
    KDGui::Window * window
)

function ~OsmController

1
~OsmController()

function cleanup

1
virtual void cleanup() override

Reimplements: SceneController::cleanup

Public Attributes Documentation

variable camera

1
KDBindings::Property<::Serenity::Camera * > camera { nullptr };

variable viewMode

1
KDBindings::Property< ViewMode > viewMode { ViewMode::BehindCar };

variable markerType

1
KDBindings::Property< MarkerType > markerType { MarkerType::Car };

variable markerScale

1
KDBindings::Property< float > markerScale { 1.0f };

variable speedScale

1
KDBindings::Property< float > speedScale { 0.05f };

variable carDistance

1
KDBindings::Property< float > carDistance { 0.0f };

variable RouteOpaqueLayerName

1
static const String RouteOpaqueLayerName = StringLiteral("OSMControllerRouteOpaqueLayer");

variable RoadOpaqueLayerName

1
static const String RoadOpaqueLayerName = StringLiteral("OSMControllerRoadOpaqueLayer");

variable AreaOpaqueLayerName

1
static const String AreaOpaqueLayerName = StringLiteral("OSMControllerAreaOpaqueLayer");

variable AreaParkOpaqueLayerName

1
static const String AreaParkOpaqueLayerName = StringLiteral("OSMControllerAreaParkOpaqueLayer");

variable GroundOpaqueLayerName

1
static const String GroundOpaqueLayerName = StringLiteral("OSMControllerGroundOpaqueLayer");

Updated on 2023-07-03 at 11:02:08 +0000