QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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
25
27{
28 qDeleteAll( mChildren );
29 mChildren.clear();
30}
31
33{
34 return mTile.get();
35}
36
38{
39 child->mParent = this;
40 mChildren.append( child );
41}
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.