QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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
20#include "qgstiledscenetile.h"
21
27
29{
30 qDeleteAll( mChildren );
31 mChildren.clear();
32}
33
35{
36 return mTile.get();
37}
38
40{
41 child->mParent = this;
42 mChildren.append( child );
43}
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.