QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
qgstiledscenenode.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenenode.cpp
3 --------------------
4 begin : June 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#include "qgstiledscenenode.h"
19#include "qgstiledscenetile.h"
20
22 : mTile( tile )
23{
24
25}
26
28{
29 qDeleteAll( mChildren );
30 mChildren.clear();
31}
32
34{
35 return mTile.get();
36}
37
39{
40 child->mParent = this;
41 mChildren.append( child );
42}
Allows representing QgsTiledSceneTiles in a hierarchical tree.
void addChild(QgsTiledSceneNode *child)
Adds a child to this node.
QgsTiledSceneNode(QgsTiledSceneTile *tile)
Constructor for QgsTiledSceneNode, for the specified tile.
QgsTiledSceneTile * tile()
Returns the tile associated with the node.
Represents an individual tile from a tiled scene data source.