KOSMIndoorMap::SceneGraph

Search for usage in LXR

KOSMIndoorMap::SceneGraph Class Reference

#include <scenegraph.h>

Public Types

typedef std::pair< std::size_t, std::size_t > LayerOffset
 
typedef std::vector< SceneGraphItem >::const_iterator SceneGraphItemIter
 

Public Member Functions

 SceneGraph (const SceneGraph &)=delete
 
 SceneGraph (SceneGraph &&)
 
void addItem (SceneGraphItem &&item)
 
QColor backgroundColor () const
 
void beginSwap ()
 
void clear ()
 
int currentFloorLevel () const
 
void endSwap ()
 
template<typename T >
std::unique_ptr< SceneGraphItemPayloadfindOrCreatePayload (OSM::Element e, int level, LayerSelectorKey layerSelector)
 
const std::vector< SceneGraphItem > & items () const
 
SceneGraphItemIter itemsBegin (LayerOffset layer) const
 
SceneGraphItemIter itemsEnd (LayerOffset layer) const
 
const std::vector< LayerOffset > & layerOffsets () const
 
SceneGraphoperator= (const SceneGraph &)=delete
 
SceneGraphoperator= (SceneGraph &&other)
 
void setBackgroundColor (const QColor &bg)
 
void setCurrentFloorLevel (int level)
 
void setZoomLevel (int zoom)
 
int zoomLevel () const
 
void zSort ()
 

Detailed Description

Scene graph of the currently displayed level.

Definition at line 28 of file scenegraph.h.

Member Typedef Documentation

◆ LayerOffset

std::pair<std::size_t, std::size_t> KOSMIndoorMap::SceneGraph::LayerOffset

Definition at line 61 of file scenegraph.h.

◆ SceneGraphItemIter

std::vector<SceneGraphItem>::const_iterator KOSMIndoorMap::SceneGraph::SceneGraphItemIter

Definition at line 64 of file scenegraph.h.

Member Function Documentation

◆ addItem()

void SceneGraph::addItem ( SceneGraphItem && item)

Definition at line 30 of file scenegraph.cpp.

◆ backgroundColor()

QColor SceneGraph::backgroundColor ( ) const

Canvas background color.

Definition at line 99 of file scenegraph.cpp.

◆ beginSwap()

void SceneGraph::beginSwap ( )

Definition at line 66 of file scenegraph.cpp.

◆ clear()

void SceneGraph::clear ( )

Clears all data from the scene graph.

Definition at line 20 of file scenegraph.cpp.

◆ currentFloorLevel()

int SceneGraph::currentFloorLevel ( ) const

Definition at line 89 of file scenegraph.cpp.

◆ endSwap()

void SceneGraph::endSwap ( )

Definition at line 74 of file scenegraph.cpp.

◆ findOrCreatePayload()

template<typename T >
std::unique_ptr< SceneGraphItemPayload > KOSMIndoorMap::SceneGraph::findOrCreatePayload ( OSM::Element e,
int level,
LayerSelectorKey layerSelector )

Definition at line 88 of file scenegraph.h.

◆ items()

const std::vector< SceneGraphItem > & SceneGraph::items ( ) const

Definition at line 145 of file scenegraph.cpp.

◆ itemsBegin()

SceneGraph::SceneGraphItemIter SceneGraph::itemsBegin ( SceneGraph::LayerOffset layer) const

Definition at line 135 of file scenegraph.cpp.

◆ itemsEnd()

SceneGraph::SceneGraphItemIter SceneGraph::itemsEnd ( SceneGraph::LayerOffset layer) const

Definition at line 140 of file scenegraph.cpp.

◆ layerOffsets()

const std::vector< SceneGraph::LayerOffset > & SceneGraph::layerOffsets ( ) const

Definition at line 130 of file scenegraph.cpp.

◆ setBackgroundColor()

void SceneGraph::setBackgroundColor ( const QColor & bg)

Definition at line 104 of file scenegraph.cpp.

◆ setCurrentFloorLevel()

void SceneGraph::setCurrentFloorLevel ( int level)

Definition at line 94 of file scenegraph.cpp.

◆ setZoomLevel()

void SceneGraph::setZoomLevel ( int zoom)

Definition at line 84 of file scenegraph.cpp.

◆ zoomLevel()

int SceneGraph::zoomLevel ( ) const

Definition at line 79 of file scenegraph.cpp.

◆ zSort()

void SceneGraph::zSort ( )

Definition at line 35 of file scenegraph.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 Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.