70 void resolveReferences(
const QgsProject &project );
182 void setBackgroundColor(
const QColor &color );
184 QColor backgroundColor()
const;
187 void setSelectionColor(
const QColor &color );
189 QColor selectionColor()
const;
199 void setLayers(
const QList<QgsMapLayer *> &layers );
209 QList<QgsMapLayer *> layers()
const;
247 Q_DECL_DEPRECATED
void setTerrainVerticalScale(
double zScale )
SIP_DEPRECATED;
254 Q_DECL_DEPRECATED
double terrainVerticalScale() const
SIP_DEPRECATED;
262 Q_DECL_DEPRECATED
void setMapTileResolution(
int res )
SIP_DEPRECATED;
278 Q_DECL_DEPRECATED
void setMaxTerrainScreenError(
double error )
SIP_DEPRECATED;
289 Q_DECL_DEPRECATED
double maxTerrainScreenError() const
SIP_DEPRECATED;
297 Q_DECL_DEPRECATED
void setMaxTerrainGroundError(
double error )
SIP_DEPRECATED;
307 Q_DECL_DEPRECATED
double maxTerrainGroundError() const
SIP_DEPRECATED;
314 Q_DECL_DEPRECATED
void setTerrainElevationOffset(
double offset )
SIP_DEPRECATED;
321 Q_DECL_DEPRECATED
double terrainElevationOffset() const
SIP_DEPRECATED;
354 void setTerrainShadingEnabled(
bool enabled );
362 bool isTerrainShadingEnabled() const;
383 void setTerrainMapTheme( const QString &theme );
391 QString terrainMapTheme() const;
398 void setShowTerrainBoundingBoxes(
bool enabled );
400 bool showTerrainBoundingBoxes() const;
402 void setShowTerrainTilesInfo(
bool enabled );
404 bool showTerrainTilesInfo() const;
410 void setShowCameraViewCenter(
bool enabled );
416 bool showCameraViewCenter() const;
422 void setShowCameraRotationCenter(
bool enabled );
428 bool showCameraRotationCenter() const;
434 void setShowLightSourceOrigins(
bool enabled );
440 bool showLightSourceOrigins() const;
443 void setShowLabels(
bool enabled );
445 bool showLabels() const;
452 void setEyeDomeLightingEnabled(
bool enabled );
454 bool eyeDomeLightingEnabled() const;
461 void setEyeDomeLightingStrength(
double strength );
463 double eyeDomeLightingStrength() const;
470 void setEyeDomeLightingDistance(
int distance );
472 int eyeDomeLightingDistance() const;
479 void setStopUpdates(
bool enabled );
485 bool stopUpdates() const;
494 void setDebugShadowMapSettings(
bool enabled, Qt::Corner corner,
double size );
496 bool debugShadowMapEnabled() const;
498 Qt::Corner debugShadowMapCorner() const;
500 double debugShadowMapSize() const;
509 void setDebugDepthMapSettings(
bool enabled, Qt::Corner corner,
double size );
511 bool debugDepthMapEnabled() const;
513 Qt::Corner debugDepthMapCorner() const;
515 double debugDepthMapSize() const;
538 float fieldOfView() const;
544 void setFieldOfView( const
float fieldOfView );
556 void setProjectionType( const
Qt3DRender::QCameraLens::ProjectionType projectionType )
SIP_SKIP;
577 double cameraMovementSpeed()
const;
583 void setCameraMovementSpeed(
double movementSpeed );
590 void setOutputDpi(
const double dpi );
597 double outputDpi()
const;
640 bool isSkyboxEnabled() const;
647 void setIsSkyboxEnabled(
bool enabled );
654 bool isFpsCounterEnabled() const;
661 void setIsFpsCounterEnabled(
bool fpsCounterEnabled );
668 bool terrainRenderingEnabled() const;
675 void setTerrainRenderingEnabled(
bool terrainRenderingEnabled );
683 Qgis::RendererUsage rendererUsage() const;
691 void setRendererUsage(
Qgis::RendererUsage rendererUsage );
698 Qgis::ViewSyncModeFlags viewSyncMode() const;
705 void setViewSyncMode(
Qgis::ViewSyncModeFlags mode );
712 bool viewFrustumVisualizationEnabled() const;
719 void setViewFrustumVisualizationEnabled(
bool enabled );
738 bool isDebugOverlayEnabled() const;
748 void setIsDebugOverlayEnabled(
bool debugOverlayEnabled );
755 bool showExtentIn2DView() const;
761 void setShowExtentIn2DView(
bool show );
767 void setShowDebugPanel(
bool enabled );
773 bool showDebugPanel() const;
782 void settingsChanged();
785 void backgroundColorChanged();
787 void selectionColorChanged();
795 void layersChanged();
798 void terrainGeneratorChanged();
805 void terrainSettingsChanged();
837 Q_DECL_DEPRECATED
void terrainElevationOffsetChanged(
double newElevation )
SIP_DEPRECATED;
843 void terrainShadingChanged();
849 void terrainMapThemeChanged();
855 void renderersChanged();
858 void showTerrainBoundingBoxesChanged();
860 void showTerrainTilesInfoChanged();
866 void showCameraViewCenterChanged();
872 void showCameraRotationCenterChanged();
878 void showLightSourceOriginsChanged();
881 void showLabelsChanged();
887 void stopUpdatesChanged();
893 void eyeDomeLightingEnabledChanged();
899 void eyeDomeLightingStrengthChanged();
905 void eyeDomeLightingDistanceChanged();
911 void debugShadowMapSettingsChanged();
917 void debugDepthMapSettingsChanged();
923 void pointLightsChanged();
929 void lightSourcesChanged();
935 void directionalLightsChanged();
941 void fieldOfViewChanged();
947 void projectionTypeChanged();
953 void cameraNavigationModeChanged();
959 void cameraMovementSpeedChanged();
965 void skyboxSettingsChanged();
971 void shadowSettingsChanged();
978 void ambientOcclusionSettingsChanged();
984 void fpsCounterEnabledChanged(
bool fpsCounterEnabled );
991 void viewFrustumVisualizationEnabledChanged();
997 void axisSettingsChanged();
1003 void debugOverlayEnabledChanged(
bool debugOverlayEnabled );
1010 void extentChanged();
1017 void showExtentIn2DViewChanged();
1024 void showDebugPanelChanged(
bool shown );
1031 void originChanged();
1040 void connectChangedSignalsToSettingsChanged();
1046 QColor mBackgroundColor = Qt::black;
1047 QColor mSelectionColor;
1048 std::unique_ptr<QgsTerrainGenerator> mTerrainGenerator;
1049 std::unique_ptr<QgsAbstractTerrainSettings> mTerrainSettings;
1050 bool mTerrainShadingEnabled =
false;
1052 QString mTerrainMapTheme;
1053 bool mShowTerrainBoundingBoxes =
false;
1054 bool mShowTerrainTileInfo =
false;
1055 bool mShowCameraViewCenter =
false;
1056 bool mShowCameraRotationCenter =
false;
1057 bool mShowLightSources =
false;
1058 bool mShowLabels =
false;
1059 bool mStopUpdates =
false;
1060 bool mShowDebugPanel =
false;
1061 QList<QgsLightSource *> mLightSources;
1062 float mFieldOfView = 45.0f;
1063 Qt3DRender::QCameraLens::ProjectionType mProjectionType = Qt3DRender::QCameraLens::PerspectiveProjection;
1065 double mCameraMovementSpeed = 5.0;
1066 QList<QgsMapLayerRef> mLayers;
1072 bool mIsFpsCounterEnabled =
false;
1074 bool mIsSkyboxEnabled =
false;
1079 bool mEyeDomeLightingEnabled =
false;
1080 double mEyeDomeLightingStrength = 1000.0;
1081 int mEyeDomeLightingDistance = 1;
1084 bool mVisualizeViewFrustum =
false;
1086 bool mDebugShadowMapEnabled =
false;
1087 Qt::Corner mDebugShadowMapCorner = Qt::Corner::TopLeftCorner;
1088 double mDebugShadowMapSize = 0.2;
1090 bool mDebugDepthMapEnabled =
false;
1091 Qt::Corner mDebugDepthMapCorner = Qt::Corner::BottomLeftCorner;
1092 double mDebugDepthMapSize = 0.2;
1094 bool mTerrainRenderingEnabled =
true;
1100 bool mIsDebugOverlayEnabled =
false;
1104 bool mShowExtentIn2DView =
false;
The class is used as a container of context for various read/write operations on other objects.