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 setDebugShadowMapSettings(
bool enabled, Qt::Corner corner,
double size );
441 bool debugShadowMapEnabled() const;
443 Qt::Corner debugShadowMapCorner() const;
445 double debugShadowMapSize() const;
452 void setDebugDepthMapSettings(
bool enabled, Qt::Corner corner,
double size );
454 bool debugDepthMapEnabled() const;
456 Qt::Corner debugDepthMapCorner() const;
458 double debugDepthMapSize() const;
481 float fieldOfView() const;
487 void setFieldOfView( const
float fieldOfView );
499 void setProjectionType( const
Qt3DRender::QCameraLens::ProjectionType projectionType )
SIP_SKIP;
520 double cameraMovementSpeed()
const;
526 void setCameraMovementSpeed(
double movementSpeed );
533 void setOutputDpi(
const double dpi );
540 double outputDpi()
const;
583 bool isSkyboxEnabled() const;
590 void setIsSkyboxEnabled(
bool enabled );
597 bool isFpsCounterEnabled() const;
604 void setIsFpsCounterEnabled(
bool fpsCounterEnabled );
611 bool terrainRenderingEnabled() const;
618 void setTerrainRenderingEnabled(
bool terrainRenderingEnabled );
626 Qgis::RendererUsage rendererUsage() const;
634 void setRendererUsage(
Qgis::RendererUsage rendererUsage );
641 Qgis::ViewSyncModeFlags viewSyncMode() const;
648 void setViewSyncMode(
Qgis::ViewSyncModeFlags mode );
655 bool viewFrustumVisualizationEnabled() const;
662 void setViewFrustumVisualizationEnabled(
bool enabled );
681 bool isDebugOverlayEnabled() const;
691 void setIsDebugOverlayEnabled(
bool debugOverlayEnabled );
698 bool showExtentIn2DView() const;
704 void setShowExtentIn2DView(
bool show );
713 void settingsChanged();
716 void backgroundColorChanged();
718 void selectionColorChanged();
726 void layersChanged();
729 void terrainGeneratorChanged();
731 void terrainVerticalScaleChanged();
733 void mapTileResolutionChanged();
735 void maxTerrainScreenErrorChanged();
737 void maxTerrainGroundErrorChanged();
743 void terrainElevationOffsetChanged(
float newElevation );
749 void terrainShadingChanged();
755 void terrainMapThemeChanged();
761 void renderersChanged();
764 void showTerrainBoundingBoxesChanged();
766 void showTerrainTilesInfoChanged();
772 void showCameraViewCenterChanged();
778 void showCameraRotationCenterChanged();
784 void showLightSourceOriginsChanged();
787 void showLabelsChanged();
793 void eyeDomeLightingEnabledChanged();
799 void eyeDomeLightingStrengthChanged();
805 void eyeDomeLightingDistanceChanged();
811 void debugShadowMapSettingsChanged();
817 void debugDepthMapSettingsChanged();
823 void pointLightsChanged();
829 void lightSourcesChanged();
835 void directionalLightsChanged();
841 void fieldOfViewChanged();
847 void projectionTypeChanged();
853 void cameraNavigationModeChanged();
859 void cameraMovementSpeedChanged();
865 void skyboxSettingsChanged();
871 void shadowSettingsChanged();
878 void ambientOcclusionSettingsChanged();
884 void fpsCounterEnabledChanged(
bool fpsCounterEnabled );
891 void viewFrustumVisualizationEnabledChanged();
897 void axisSettingsChanged();
903 void debugOverlayEnabledChanged(
bool debugOverlayEnabled );
910 void extentChanged();
917 void showExtentIn2DViewChanged();
926 void connectChangedSignalsToSettingsChanged();
932 QColor mBackgroundColor = Qt::black;
933 QColor mSelectionColor;
934 double mTerrainVerticalScale = 1;
935 std::unique_ptr<QgsTerrainGenerator> mTerrainGenerator;
936 int mMapTileResolution = 512;
937 float mMaxTerrainScreenError = 3.f;
938 float mMaxTerrainGroundError = 1.f;
939 float mTerrainElevationOffset = 0.0f;
940 bool mTerrainShadingEnabled =
false;
942 QString mTerrainMapTheme;
943 bool mShowTerrainBoundingBoxes =
false;
944 bool mShowTerrainTileInfo =
false;
945 bool mShowCameraViewCenter =
false;
946 bool mShowCameraRotationCenter =
false;
947 bool mShowLightSources =
false;
948 bool mShowLabels =
false;
949 QList< QgsLightSource * > mLightSources;
950 float mFieldOfView = 45.0f;
951 Qt3DRender::QCameraLens::ProjectionType mProjectionType = Qt3DRender::QCameraLens::PerspectiveProjection;
953 double mCameraMovementSpeed = 5.0;
954 QList<QgsMapLayerRef> mLayers;
960 bool mIsFpsCounterEnabled =
false;
962 bool mIsSkyboxEnabled =
false;
967 bool mEyeDomeLightingEnabled =
false;
968 double mEyeDomeLightingStrength = 1000.0;
969 int mEyeDomeLightingDistance = 1;
972 bool mVisualizeViewFrustum =
false;
974 bool mDebugShadowMapEnabled =
false;
975 Qt::Corner mDebugShadowMapCorner = Qt::Corner::TopLeftCorner;
976 double mDebugShadowMapSize = 0.2;
978 bool mDebugDepthMapEnabled =
false;
979 Qt::Corner mDebugDepthMapCorner = Qt::Corner::TopRightCorner;
980 double mDebugDepthMapSize = 0.2;
982 bool mTerrainRenderingEnabled =
true;
988 bool mIsDebugOverlayEnabled =
false;
992 bool mShowExtentIn2DView =
false;
The class is used as a container of context for various read/write operations on other objects.