Skip to content

OSMRouter

#include <osmrouter.h>

Inherits from Kuesa::Qt3D::KuesaNode, Qt3DCore::QNode

Public Types

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

Public Slots

Name
void setController(OSMController * controller)
void setViewMode(ViewMode viewMode)
void setMarkerType(MarkerType markerType)
void setMarkerScale(float markerScale)
void setCameraHeight(float cameraHeight)
void setPositionOnCameraOrbit(float position)
void setScreenSize(const QSize & screenSize)
void setLightAnimationsEnabled(bool enabled)

Public Signals

Name
void controllerChanged()
void viewModeChanged()
void markerTypeChanged()
void markerScaleChanged()
void pathChanged()
void carDistanceChanged()
void distanceToDestinationChanged()
void carSpeedChanged()
void cameraHeightChanged()
void positionOnCameraOrbitChanged()
void screenSizeChanged()
void destinationScreenPositionChanged()
void markerScreenPositionChanged()
void markerRotationChanged()
void destinationIsHiddenChanged()
void lightAnimationsEnabledChanged()

Public Functions

Name
OSMRouter(Qt3DCore::QNode * parent =nullptr)
~OSMRouter() override
OSMController * controller() const
Q_INVOKABLE void nextRoute()
Qt3DRender::QCamera * camera() const
ViewMode viewMode() const
MarkerType markerType() const
float markerScale() const
QVector< QVector2D > path() const
float carDistance() const
float distanceToDestination() const
float carSpeed() const
float cameraHeight() const
float positionOnCameraOrbit() const
OSMLabelModel * labelModel() const
QSize screenSize() const
QPointF destinationScreenPosition() const
QPointF markerScreenPosition() const
float markerRotation() const
bool destinationIsHidden() const
bool lightAnimationsEnabled() const

Public Properties

Name
OSMController * controller
Qt3DRender::QCamera * camera
ViewMode viewMode
MarkerType markerType
float markerScale
QVector< QVector2D > path
float carDistance
float distanceToDestination
float carSpeed
float cameraHeight
float positionOnCameraOrbit
OSMLabelModel * labelModel
QSize screenSize
QPointF destinationScreenPosition
QPointF markerScreenPosition
float markerRotation
bool destinationIsHidden
bool lightAnimationsEnabled

Additional inherited members

Public Slots inherited from Kuesa::Qt3D::KuesaNode

Name
void setSceneEntity(Kuesa::Qt3D::SceneEntity * sceneEntity)

Public Signals inherited from Kuesa::Qt3D::KuesaNode

Name
void sceneEntityChanged(Kuesa::Qt3D::SceneEntity * sceneEntity)

Public Functions inherited from Kuesa::Qt3D::KuesaNode

Name
KuesaNode(Qt3DCore::QNode * parent =nullptr)
SceneEntity * sceneEntity() const

Public Properties inherited from Kuesa::Qt3D::KuesaNode

Name
Kuesa::Qt3D::SceneEntity * sceneEntity

Protected Attributes inherited from Kuesa::Qt3D::KuesaNode

Name
SceneEntity * m_sceneEntity

Public Types Documentation

enum ViewMode

Enumerator Value Description
BehindCar
BirdsEye

enum MarkerType

Enumerator Value Description
Car
Arrow
None

Public Slots Documentation

slot setController

1
2
3
void setController(
    OSMController * controller
)

slot setViewMode

1
2
3
void setViewMode(
    ViewMode viewMode
)

slot setMarkerType

1
2
3
void setMarkerType(
    MarkerType markerType
)

slot setMarkerScale

1
2
3
void setMarkerScale(
    float markerScale
)

slot setCameraHeight

1
2
3
void setCameraHeight(
    float cameraHeight
)

slot setPositionOnCameraOrbit

1
2
3
void setPositionOnCameraOrbit(
    float position
)

slot setScreenSize

1
2
3
void setScreenSize(
    const QSize & screenSize
)

slot setLightAnimationsEnabled

1
2
3
void setLightAnimationsEnabled(
    bool enabled
)

Public Signals Documentation

signal controllerChanged

1
void controllerChanged()

signal viewModeChanged

1
void viewModeChanged()

signal markerTypeChanged

1
void markerTypeChanged()

signal markerScaleChanged

1
void markerScaleChanged()

signal pathChanged

1
void pathChanged()

signal carDistanceChanged

1
void carDistanceChanged()

signal distanceToDestinationChanged

1
void distanceToDestinationChanged()

signal carSpeedChanged

1
void carSpeedChanged()

signal cameraHeightChanged

1
void cameraHeightChanged()

signal positionOnCameraOrbitChanged

1
void positionOnCameraOrbitChanged()

signal screenSizeChanged

1
void screenSizeChanged()

signal destinationScreenPositionChanged

1
void destinationScreenPositionChanged()

signal markerScreenPositionChanged

1
void markerScreenPositionChanged()

signal markerRotationChanged

1
void markerRotationChanged()

signal destinationIsHiddenChanged

1
void destinationIsHiddenChanged()

signal lightAnimationsEnabledChanged

1
void lightAnimationsEnabledChanged()

Public Functions Documentation

function OSMRouter

1
2
3
explicit OSMRouter(
    Qt3DCore::QNode * parent =nullptr
)

function ~OSMRouter

1
~OSMRouter() override

function controller

1
OSMController * controller() const

function nextRoute

1
Q_INVOKABLE void nextRoute()

function camera

1
Qt3DRender::QCamera * camera() const

function viewMode

1
ViewMode viewMode() const

function markerType

1
MarkerType markerType() const

function markerScale

1
float markerScale() const

function path

1
QVector< QVector2D > path() const

function carDistance

1
float carDistance() const

function distanceToDestination

1
float distanceToDestination() const

function carSpeed

1
float carSpeed() const

function cameraHeight

1
float cameraHeight() const

function positionOnCameraOrbit

1
float positionOnCameraOrbit() const

function labelModel

1
OSMLabelModel * labelModel() const

function screenSize

1
QSize screenSize() const

function destinationScreenPosition

1
QPointF destinationScreenPosition() const

function markerScreenPosition

1
QPointF markerScreenPosition() const

function markerRotation

1
float markerRotation() const

function destinationIsHidden

1
bool destinationIsHidden() const

function lightAnimationsEnabled

1
bool lightAnimationsEnabled() const

Public Property Documentation

property controller

1
OSMController * controller;

property camera

1
Qt3DRender::QCamera * camera;

property viewMode

1
ViewMode viewMode;

property markerType

1
MarkerType markerType;

property markerScale

1
float markerScale;

property path

1
QVector< QVector2D > path;

property carDistance

1
float carDistance;

property distanceToDestination

1
float distanceToDestination;

property carSpeed

1
float carSpeed;

property cameraHeight

1
float cameraHeight;

property positionOnCameraOrbit

1
float positionOnCameraOrbit;

property labelModel

1
OSMLabelModel * labelModel;

property screenSize

1
QSize screenSize;

property destinationScreenPosition

1
QPointF destinationScreenPosition;

property markerScreenPosition

1
QPointF markerScreenPosition;

property markerRotation

1
float markerRotation;

property destinationIsHidden

1
bool destinationIsHidden;

property lightAnimationsEnabled

1
bool lightAnimationsEnabled;

Updated on 2022-10-18 at 11:12:51 +0200