QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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:
44
45 QgsTiledSceneNode( const QgsTiledSceneNode &other ) = delete;
47
49
54
62
66 QgsTiledSceneNode *parentNode() const { return mParent; }
67
71 QList< QgsTiledSceneNode * > children() const { return mChildren; }
72
73 private:
74#ifdef SIP_RUN
76#endif
77
78 std::unique_ptr< QgsTiledSceneTile > mTile;
79
80 QgsTiledSceneNode *mParent = nullptr;
81 QList< QgsTiledSceneNode * > mChildren;
82};
83
84#endif // QGSTILEDSCENENODE_H
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.
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:35