-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qgs-ification of classes for chunked rendering
- Loading branch information
Showing
29 changed files
with
436 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#ifndef QGSCHUNKBOUNDSENTITY_P_H | ||
#define QGSCHUNKBOUNDSENTITY_P_H | ||
|
||
///@cond PRIVATE | ||
|
||
// | ||
// W A R N I N G | ||
// ------------- | ||
// | ||
// This file is not part of the QGIS API. It exists purely as an | ||
// implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||
// | ||
|
||
#include <Qt3DCore/QEntity> | ||
|
||
class AABB; | ||
class AABBMesh; | ||
|
||
|
||
/** \ingroup 3d | ||
* Draws bounds of axis aligned bounding boxes | ||
* \since QGIS 3.0 | ||
*/ | ||
class QgsChunkBoundsEntity : public Qt3DCore::QEntity | ||
{ | ||
public: | ||
//! Constructs the entity | ||
QgsChunkBoundsEntity( Qt3DCore::QNode *parent = nullptr ); | ||
|
||
//! Sets a list of bounding boxes to be rendered by the entity | ||
void setBoxes( const QList<AABB> &bboxes ); | ||
|
||
private: | ||
AABBMesh *aabbMesh; | ||
}; | ||
|
||
/// @endcond | ||
|
||
#endif // QGSCHUNKBOUNDSENTITY_P_H |
Oops, something went wrong.