16 #ifndef QGS3DMAPSETTINGS_H 17 #define QGS3DMAPSETTINGS_H 64 void resolveReferences(
const QgsProject &project );
128 void setBackgroundColor(
const QColor &color );
130 QColor backgroundColor()
const;
133 void setSelectionColor(
const QColor &color );
135 QColor selectionColor()
const;
145 void setTerrainVerticalScale(
double zScale );
147 double terrainVerticalScale()
const;
150 void setLayers(
const QList<QgsMapLayer *> &layers );
152 QList<QgsMapLayer *> layers()
const;
158 void setMapTileResolution(
int res );
164 int mapTileResolution()
const;
170 void setMaxTerrainScreenError(
float error );
179 float maxTerrainScreenError()
const;
185 void setMaxTerrainGroundError(
float error );
193 float maxTerrainGroundError()
const;
204 void setRenderers(
const QList<QgsAbstract3DRenderer *> &renderers SIP_TRANSFER );
206 QList<QgsAbstract3DRenderer *>
renderers()
const {
return mRenderers; }
214 void setSkybox(
bool enabled,
const QString &fileBase = QString(),
const QString &fileExtension = QString() );
223 void setShowTerrainBoundingBoxes(
bool enabled );
227 void setShowTerrainTilesInfo(
bool enabled );
235 void setShowCameraViewCenter(
bool enabled );
243 void setShowLabels(
bool enabled );
249 void backgroundColorChanged();
251 void selectionColorChanged();
253 void layersChanged();
255 void terrainGeneratorChanged();
257 void terrainVerticalScaleChanged();
259 void mapTileResolutionChanged();
261 void maxTerrainScreenErrorChanged();
263 void maxTerrainGroundErrorChanged();
265 void showTerrainBoundingBoxesChanged();
267 void showTerrainTilesInfoChanged();
273 void showCameraViewCenterChanged();
275 void showLabelsChanged();
281 QColor mBackgroundColor = Qt::black;
282 QColor mSelectionColor;
283 double mTerrainVerticalScale = 1;
284 std::unique_ptr<QgsTerrainGenerator> mTerrainGenerator;
285 int mMapTileResolution = 512;
286 float mMaxTerrainScreenError = 3.f;
287 float mMaxTerrainGroundError = 1.f;
288 bool mShowTerrainBoundingBoxes =
false;
289 bool mShowTerrainTileInfo =
false;
290 bool mShowCameraViewCenter =
false;
291 bool mShowLabels =
false;
292 QList<QgsMapLayerRef> mLayers;
293 QList<QgsAbstract3DRenderer *> mRenderers;
294 bool mSkyboxEnabled =
false;
295 QString mSkyboxFileBase;
296 QString mSkyboxFileExtension;
303 #endif // QGS3DMAPSETTINGS_H The class is used as a container of context for various read/write operations on other objects...
3 Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double preci...
Base class for all map layer types.
Base class for all renderers that may to participate in 3D view.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
const QgsPathResolver & pathResolver() const
Returns the path resolver for conversion between relative and absolute paths during rendering operati...
bool showLabels() const
Returns whether to display labels on terrain tiles.
const QgsCoordinateReferenceSystem & crs
QString skyboxFileBase() const
Returns base part of filenames of skybox (see setSkybox())
3 Definition of the world
bool hasSkyboxEnabled() const
Returns whether skybox is enabled.
Reads and writes project states.
Contains information about the context in which a coordinate transform is executed.
bool showCameraViewCenter() const
Returns whether to show camera's view center as a sphere (for debugging)
void setOrigin(const QgsVector3D &origin)
Sets coordinates in map CRS at which our 3D world has origin (0,0,0)
void setPathResolver(const QgsPathResolver &resolver)
Sets the path resolver for conversion between relative and absolute paths during rendering operations...
3 Base class for generators of terrain.
QgsVector3D origin() const
Returns coordinates in map CRS at which 3D scene has origin (0,0,0)
QList< QgsAbstract3DRenderer * > renderers() const
Returns list of extra 3D renderers.
This class represents a coordinate reference system (CRS).
QgsCoordinateReferenceSystem crs() const
Returns coordinate reference system used in the 3D scene.
QString skyboxFileExtension() const
Returns extension part of filenames of skybox (see setSkybox())
Resolves relative paths into absolute paths and vice versa.
bool showTerrainTilesInfo() const
Returns whether to display extra tile info on top of terrain tiles (for debugging) ...
QgsTerrainGenerator * terrainGenerator() const
Returns terrain generator. It takes care of producing terrain tiles from the input data...
bool showTerrainBoundingBoxes() const
Returns whether to display bounding boxes of terrain tiles (for debugging)