QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
qgstiledscenenode.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenenode.h
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 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#ifndef QGSTILEDSCENENODE_H
20#define QGSTILEDSCENENODE_H
21
22#include "qgis.h"
23
24#define SIP_NO_FILE
25
27
36{
37 public:
38
45
46 QgsTiledSceneNode( const QgsTiledSceneNode &other ) = delete;
48
50
55
63
67 QgsTiledSceneNode *parentNode() const { return mParent; }
68
72 QList< QgsTiledSceneNode * > children() const { return mChildren; }
73
74 private:
75
76#ifdef SIP_RUN
78#endif
79
80 std::unique_ptr< QgsTiledSceneTile > mTile;
81
82 QgsTiledSceneNode *mParent = nullptr;
83 QList< QgsTiledSceneNode * > mChildren;
84
85};
86
87#endif // QGSTILEDSCENENODE_H
Allows representing QgsTiledSceneTiles in a hierarchical tree.
void addChild(QgsTiledSceneNode *child)
Adds a child to this node.
QgsTiledSceneNode & operator=(const QgsTiledSceneNode &other)=delete
QgsTiledSceneNode * parentNode() const
Returns the parent of this node.
QList< QgsTiledSceneNode * > children() const
Returns this node's children.
QgsTiledSceneNode(const QgsTiledSceneNode &other)=delete
QgsTiledSceneTile * tile()
Returns the tile associated with the node.
Represents an individual tile from a tiled scene data source.
#define SIP_TRANSFER
Definition qgis_sip.h:36