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;
441 void setDebugShadowMapSettings(
bool enabled, Qt::Corner corner,
double size );
443 bool debugShadowMapEnabled() const;
445 Qt::Corner debugShadowMapCorner() const;
447 double debugShadowMapSize() const;
456 void setDebugDepthMapSettings(
bool enabled, Qt::Corner corner,
double size );
458 bool debugDepthMapEnabled() const;
460 Qt::Corner debugDepthMapCorner() const;
462 double debugDepthMapSize() const;
485 float fieldOfView() const;
491 void setFieldOfView( const
float fieldOfView );
503 void setProjectionType( const
Qt3DRender::QCameraLens::ProjectionType projectionType )
SIP_SKIP;
524 double cameraMovementSpeed()
const;
530 void setCameraMovementSpeed(
double movementSpeed );
537 void setOutputDpi(
const double dpi );
544 double outputDpi()
const;
587 bool isSkyboxEnabled() const;
594 void setIsSkyboxEnabled(
bool enabled );
601 bool isFpsCounterEnabled() const;
608 void setIsFpsCounterEnabled(
bool fpsCounterEnabled );
615 bool terrainRenderingEnabled() const;
622 void setTerrainRenderingEnabled(
bool terrainRenderingEnabled );
630 Qgis::RendererUsage rendererUsage() const;
638 void setRendererUsage(
Qgis::RendererUsage rendererUsage );
645 Qgis::ViewSyncModeFlags viewSyncMode() const;
652 void setViewSyncMode(
Qgis::ViewSyncModeFlags mode );
659 bool viewFrustumVisualizationEnabled() const;
666 void setViewFrustumVisualizationEnabled(
bool enabled );
685 bool isDebugOverlayEnabled() const;
695 void setIsDebugOverlayEnabled(
bool debugOverlayEnabled );
702 bool showExtentIn2DView() const;
708 void setShowExtentIn2DView(
bool show );
717 void settingsChanged();
720 void backgroundColorChanged();
722 void selectionColorChanged();
730 void layersChanged();
733 void terrainGeneratorChanged();
735 void terrainVerticalScaleChanged();
737 void mapTileResolutionChanged();
739 void maxTerrainScreenErrorChanged();
741 void maxTerrainGroundErrorChanged();
747 void terrainElevationOffsetChanged(
float newElevation );
753 void terrainShadingChanged();
759 void terrainMapThemeChanged();
765 void renderersChanged();
768 void showTerrainBoundingBoxesChanged();
770 void showTerrainTilesInfoChanged();
776 void showCameraViewCenterChanged();
782 void showCameraRotationCenterChanged();
788 void showLightSourceOriginsChanged();
791 void showLabelsChanged();
797 void eyeDomeLightingEnabledChanged();
803 void eyeDomeLightingStrengthChanged();
809 void eyeDomeLightingDistanceChanged();
815 void debugShadowMapSettingsChanged();
821 void debugDepthMapSettingsChanged();
827 void pointLightsChanged();
833 void lightSourcesChanged();
839 void directionalLightsChanged();
845 void fieldOfViewChanged();
851 void projectionTypeChanged();
857 void cameraNavigationModeChanged();
863 void cameraMovementSpeedChanged();
869 void skyboxSettingsChanged();
875 void shadowSettingsChanged();
882 void ambientOcclusionSettingsChanged();
888 void fpsCounterEnabledChanged(
bool fpsCounterEnabled );
895 void viewFrustumVisualizationEnabledChanged();
901 void axisSettingsChanged();
907 void debugOverlayEnabledChanged(
bool debugOverlayEnabled );
914 void extentChanged();
921 void showExtentIn2DViewChanged();
930 void connectChangedSignalsToSettingsChanged();
936 QColor mBackgroundColor = Qt::black;
937 QColor mSelectionColor;
938 double mTerrainVerticalScale = 1;
939 std::unique_ptr<QgsTerrainGenerator> mTerrainGenerator;
940 int mMapTileResolution = 512;
941 float mMaxTerrainScreenError = 3.f;
942 float mMaxTerrainGroundError = 1.f;
943 float mTerrainElevationOffset = 0.0f;
944 bool mTerrainShadingEnabled =
false;
946 QString mTerrainMapTheme;
947 bool mShowTerrainBoundingBoxes =
false;
948 bool mShowTerrainTileInfo =
false;
949 bool mShowCameraViewCenter =
false;
950 bool mShowCameraRotationCenter =
false;
951 bool mShowLightSources =
false;
952 bool mShowLabels =
false;
953 QList< QgsLightSource * > mLightSources;
954 float mFieldOfView = 45.0f;
955 Qt3DRender::QCameraLens::ProjectionType mProjectionType = Qt3DRender::QCameraLens::PerspectiveProjection;
957 double mCameraMovementSpeed = 5.0;
958 QList<QgsMapLayerRef> mLayers;
964 bool mIsFpsCounterEnabled =
false;
966 bool mIsSkyboxEnabled =
false;
971 bool mEyeDomeLightingEnabled =
false;
972 double mEyeDomeLightingStrength = 1000.0;
973 int mEyeDomeLightingDistance = 1;
976 bool mVisualizeViewFrustum =
false;
978 bool mDebugShadowMapEnabled =
false;
979 Qt::Corner mDebugShadowMapCorner = Qt::Corner::TopLeftCorner;
980 double mDebugShadowMapSize = 0.2;
982 bool mDebugDepthMapEnabled =
false;
983 Qt::Corner mDebugDepthMapCorner = Qt::Corner::TopRightCorner;
984 double mDebugDepthMapSize = 0.2;
986 bool mTerrainRenderingEnabled =
true;
992 bool mIsDebugOverlayEnabled =
false;
996 bool mShowExtentIn2DView =
false;
The class is used as a container of context for various read/write operations on other objects.