KOSMIndoorMap::SceneController

Search for usage in LXR

KOSMIndoorMap::SceneController Class Reference

#include <scenecontroller.h>

Public Member Functions

OSM::Element hoveredElement () const
 
void overlaySourceUpdated ()
 
void setHoveredElement (OSM::Element element)
 
void setMapData (const MapData &data)
 
void setOverlaySources (std::vector< QPointer< AbstractOverlaySource > > &&overlays)
 
void setStyleSheet (const MapCSSStyle *styleSheet)
 
void setView (const View *view)
 
void updateScene (SceneGraph &sg) const
 

Detailed Description

Creates/updates the scene graph based on a given style sheet and view.

Definition at line 37 of file scenecontroller.h.

Constructor & Destructor Documentation

◆ SceneController()

SceneController::SceneController ( )
explicit

Definition at line 71 of file scenecontroller.cpp.

Member Function Documentation

◆ hoveredElement()

OSM::Element SceneController::hoveredElement ( ) const
nodiscard

Set currently hovered element.

Definition at line 796 of file scenecontroller.cpp.

◆ overlaySourceUpdated()

void SceneController::overlaySourceUpdated ( )

Overlay dirty state tracking.

Definition at line 111 of file scenecontroller.cpp.

◆ setHoveredElement()

void SceneController::setHoveredElement ( OSM::Element element)

Definition at line 801 of file scenecontroller.cpp.

◆ setMapData()

void SceneController::setMapData ( const MapData & data)

Definition at line 77 of file scenecontroller.cpp.

◆ setOverlaySources()

void SceneController::setOverlaySources ( std::vector< QPointer< AbstractOverlaySource > > && overlays)

Definition at line 105 of file scenecontroller.cpp.

◆ setStyleSheet()

void SceneController::setStyleSheet ( const MapCSSStyle * styleSheet)

Definition at line 92 of file scenecontroller.cpp.

◆ setView()

void SceneController::setView ( const View * view)

Definition at line 98 of file scenecontroller.cpp.

◆ updateScene()

void SceneController::updateScene ( SceneGraph & sg) const

Creates or updates sg based on the currently set style and view settings.

When possible, provide the scene graph of the previous run to re-use scene graph elements that didn't change.

Definition at line 117 of file scenecontroller.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.