QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
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
47 QgsTiledSceneNode( const QgsTiledSceneNode &other ) = delete;
50
52
57
65
69 QgsTiledSceneNode *parentNode() const { return mParent; }
70
74 QList< QgsTiledSceneNode * > children() const { return mChildren; }
75
76 private:
77
78#ifdef SIP_RUN
80#endif
81
82 std::unique_ptr< QgsTiledSceneTile > mTile;
83
84 QgsTiledSceneNode *mParent = nullptr;
85 QList< QgsTiledSceneNode * > mChildren;
86
87};
88
89#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 cannot be copied.
QgsTiledSceneNode * parentNode() const
Returns the parent of this node.
QList< QgsTiledSceneNode * > children() const
Returns this node's children.
QgsTiledSceneNode(const QgsTiledSceneNode &other)=delete
QgsTiledSceneNode cannot be copied.
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