16#ifndef QGS3DMAPSCENEENTITY_P_H
17#define QGS3DMAPSCENEENTITY_P_H
30#include <Qt3DCore/QEntity>
45class Qgs3DMapSceneEntity :
public Qt3DCore::QEntity
50 Qgs3DMapSceneEntity( Qt3DCore::QNode *parent =
nullptr )
54 mGpuMemoryLimit = settings.
value( QStringLiteral(
"map3d/gpuMemoryLimit" ), 500.0,
QgsSettings::App ).toDouble();
63 QMatrix4x4 viewProjectionMatrix;
67 virtual void handleSceneUpdate(
const SceneState &state ) { Q_UNUSED( state ) }
70 virtual int pendingJobsCount()
const {
return 0; }
73 virtual bool needsUpdate()
const {
return false; }
80 void setGpuMemoryLimit(
double gpuMemoryLimit ) { mGpuMemoryLimit = gpuMemoryLimit; }
83 double gpuMemoryLimit()
const {
return mGpuMemoryLimit; }
86 bool hasReachedGpuMemoryLimit()
const {
return mHasReachedGpuMemoryLimit; }
90 void setHasReachedGpuMemoryLimit(
bool reached ) { mHasReachedGpuMemoryLimit = reached; }
94 void pendingJobsCountChanged();
97 void newEntityCreated( Qt3DCore::QEntity *entity );
101 double mGpuMemoryLimit = 500.0;
103 bool mHasReachedGpuMemoryLimit =
false;
A template based class for storing ranges (lower to upper values).
This class is a composition of two QSettings instances:
QVariant value(const QString &key, const QVariant &defaultValue=QVariant(), Section section=NoSection) const
Returns the value for setting key.