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;
226 void setTerrainVerticalScale(
double zScale );
228 double terrainVerticalScale()
const;
234 void setMapTileResolution(
int res );
240 int mapTileResolution()
const;
246 void setMaxTerrainScreenError(
float error );
255 float maxTerrainScreenError()
const;
261 void setMaxTerrainGroundError(
float error );
269 float maxTerrainGroundError()
const;
276 void setTerrainElevationOffset(
float offset );
281 float terrainElevationOffset()
const;
314 void setTerrainShadingEnabled(
bool enabled );
322 bool isTerrainShadingEnabled() const;
343 void setTerrainMapTheme( const QString &theme );
351 QString terrainMapTheme() const;
358 void setShowTerrainBoundingBoxes(
bool enabled );
360 bool showTerrainBoundingBoxes() const;
362 void setShowTerrainTilesInfo(
bool enabled );
364 bool showTerrainTilesInfo() const;
370 void setShowCameraViewCenter(
bool enabled );
376 bool showCameraViewCenter() const;
382 void setShowCameraRotationCenter(
bool enabled );
388 bool showCameraRotationCenter() const;
394 void setShowLightSourceOrigins(
bool enabled );
400 bool showLightSourceOrigins() const;
403 void setShowLabels(
bool enabled );
405 bool showLabels() const;
412 void setEyeDomeLightingEnabled(
bool enabled );
414 bool eyeDomeLightingEnabled() const;
421 void setEyeDomeLightingStrength(
double strength );
423 double eyeDomeLightingStrength() const;
430 void setEyeDomeLightingDistance(
int distance );
432 int eyeDomeLightingDistance() const;
439 void setStopUpdates(
bool enabled );
445 bool stopUpdates() const;
454 void setDebugShadowMapSettings(
bool enabled, Qt::Corner corner,
double size );
456 bool debugShadowMapEnabled() const;
458 Qt::Corner debugShadowMapCorner() const;
460 double debugShadowMapSize() const;
469 void setDebugDepthMapSettings(
bool enabled, Qt::Corner corner,
double size );
471 bool debugDepthMapEnabled() const;
473 Qt::Corner debugDepthMapCorner() const;
475 double debugDepthMapSize() const;
498 float fieldOfView() const;
504 void setFieldOfView( const
float fieldOfView );
516 void setProjectionType( const
Qt3DRender::QCameraLens::ProjectionType projectionType )
SIP_SKIP;
537 double cameraMovementSpeed()
const;
543 void setCameraMovementSpeed(
double movementSpeed );
550 void setOutputDpi(
const double dpi );
557 double outputDpi()
const;
600 bool isSkyboxEnabled() const;
607 void setIsSkyboxEnabled(
bool enabled );
614 bool isFpsCounterEnabled() const;
621 void setIsFpsCounterEnabled(
bool fpsCounterEnabled );
628 bool terrainRenderingEnabled() const;
635 void setTerrainRenderingEnabled(
bool terrainRenderingEnabled );
643 Qgis::RendererUsage rendererUsage() const;
651 void setRendererUsage(
Qgis::RendererUsage rendererUsage );
658 Qgis::ViewSyncModeFlags viewSyncMode() const;
665 void setViewSyncMode(
Qgis::ViewSyncModeFlags mode );
672 bool viewFrustumVisualizationEnabled() const;
679 void setViewFrustumVisualizationEnabled(
bool enabled );
698 bool isDebugOverlayEnabled() const;
708 void setIsDebugOverlayEnabled(
bool debugOverlayEnabled );
715 bool showExtentIn2DView() const;
721 void setShowExtentIn2DView(
bool show );
727 void setShowDebugPanel(
bool enabled );
733 bool showDebugPanel() const;
742 void settingsChanged();
745 void backgroundColorChanged();
747 void selectionColorChanged();
755 void layersChanged();
758 void terrainGeneratorChanged();
760 void terrainVerticalScaleChanged();
762 void mapTileResolutionChanged();
764 void maxTerrainScreenErrorChanged();
766 void maxTerrainGroundErrorChanged();
772 void terrainElevationOffsetChanged(
float newElevation );
778 void terrainShadingChanged();
784 void terrainMapThemeChanged();
790 void renderersChanged();
793 void showTerrainBoundingBoxesChanged();
795 void showTerrainTilesInfoChanged();
801 void showCameraViewCenterChanged();
807 void showCameraRotationCenterChanged();
813 void showLightSourceOriginsChanged();
816 void showLabelsChanged();
822 void stopUpdatesChanged();
828 void eyeDomeLightingEnabledChanged();
834 void eyeDomeLightingStrengthChanged();
840 void eyeDomeLightingDistanceChanged();
846 void debugShadowMapSettingsChanged();
852 void debugDepthMapSettingsChanged();
858 void pointLightsChanged();
864 void lightSourcesChanged();
870 void directionalLightsChanged();
876 void fieldOfViewChanged();
882 void projectionTypeChanged();
888 void cameraNavigationModeChanged();
894 void cameraMovementSpeedChanged();
900 void skyboxSettingsChanged();
906 void shadowSettingsChanged();
913 void ambientOcclusionSettingsChanged();
919 void fpsCounterEnabledChanged(
bool fpsCounterEnabled );
926 void viewFrustumVisualizationEnabledChanged();
932 void axisSettingsChanged();
938 void debugOverlayEnabledChanged(
bool debugOverlayEnabled );
945 void extentChanged();
952 void showExtentIn2DViewChanged();
959 void showDebugPanelChanged(
bool shown );
968 void connectChangedSignalsToSettingsChanged();
974 QColor mBackgroundColor = Qt::black;
975 QColor mSelectionColor;
976 double mTerrainVerticalScale = 1;
977 std::unique_ptr<QgsTerrainGenerator> mTerrainGenerator;
978 int mMapTileResolution = 512;
979 float mMaxTerrainScreenError = 3.f;
980 float mMaxTerrainGroundError = 1.f;
981 float mTerrainElevationOffset = 0.0f;
982 bool mTerrainShadingEnabled =
false;
984 QString mTerrainMapTheme;
985 bool mShowTerrainBoundingBoxes =
false;
986 bool mShowTerrainTileInfo =
false;
987 bool mShowCameraViewCenter =
false;
988 bool mShowCameraRotationCenter =
false;
989 bool mShowLightSources =
false;
990 bool mShowLabels =
false;
991 bool mStopUpdates =
false;
992 bool mShowDebugPanel =
false;
993 QList< QgsLightSource * > mLightSources;
994 float mFieldOfView = 45.0f;
995 Qt3DRender::QCameraLens::ProjectionType mProjectionType = Qt3DRender::QCameraLens::PerspectiveProjection;
997 double mCameraMovementSpeed = 5.0;
998 QList<QgsMapLayerRef> mLayers;
1004 bool mIsFpsCounterEnabled =
false;
1006 bool mIsSkyboxEnabled =
false;
1011 bool mEyeDomeLightingEnabled =
false;
1012 double mEyeDomeLightingStrength = 1000.0;
1013 int mEyeDomeLightingDistance = 1;
1016 bool mVisualizeViewFrustum =
false;
1018 bool mDebugShadowMapEnabled =
false;
1019 Qt::Corner mDebugShadowMapCorner = Qt::Corner::TopLeftCorner;
1020 double mDebugShadowMapSize = 0.2;
1022 bool mDebugDepthMapEnabled =
false;
1023 Qt::Corner mDebugDepthMapCorner = Qt::Corner::BottomLeftCorner;
1024 double mDebugDepthMapSize = 0.2;
1026 bool mTerrainRenderingEnabled =
true;
1032 bool mIsDebugOverlayEnabled =
false;
1036 bool mShowExtentIn2DView =
false;
The class is used as a container of context for various read/write operations on other objects.