QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsterraintileentity_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsterraintileentity_p.h
3  --------------------------------------
4  Date : July 2017
5  Copyright : (C) 2017 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSTERRAINTILEENTITY_P_H
17 #define QGSTERRAINTILEENTITY_P_H
18 
20 
21 //
22 // W A R N I N G
23 // -------------
24 //
25 // This file is not part of the QGIS API. It exists purely as an
26 // implementation detail. This header file may change from version to
27 // version without notice, or even be removed.
28 //
29 
30 class QgsTerrainTextureImage;
31 
32 #include <Qt3DCore/QEntity>
33 
34 #include "qgschunknode_p.h"
35 
43 class QgsTerrainTileEntity : public Qt3DCore::QEntity
44 {
45  Q_OBJECT
46  public:
48  QgsTerrainTileEntity( QgsChunkNodeId tileId, Qt3DCore::QNode *parent = nullptr )
49  : Qt3DCore::QEntity( parent )
50  , mTileId( tileId )
51  {
52  }
53 
55  QgsChunkNodeId tileId() const { return mTileId; }
56 
61  void setTextureImage( QgsTerrainTextureImage *textureImage ) { mTextureImage = textureImage; }
63  QgsTerrainTextureImage *textureImage() { return mTextureImage; }
64 
65  private:
66  QgsChunkNodeId mTileId;
67  QgsTerrainTextureImage *mTextureImage = nullptr;
68 };
69 
71 
72 #endif // QGSTERRAINTILEENTITY_P_H
qgschunknode_p.h
Qt3DCore
Definition: qgsabstract3drenderer.h:30