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 );
   231     void setShowLabels( 
bool enabled );
   237     void backgroundColorChanged();
   239     void selectionColorChanged();
   241     void layersChanged();
   243     void terrainGeneratorChanged();
   245     void terrainVerticalScaleChanged();
   247     void mapTileResolutionChanged();
   249     void maxTerrainScreenErrorChanged();
   251     void maxTerrainGroundErrorChanged();
   253     void showTerrainBoundingBoxesChanged();
   255     void showTerrainTilesInfoChanged();
   257     void showLabelsChanged();
   263     QColor mBackgroundColor = Qt::black;   
   264     QColor mSelectionColor; 
   265     double mTerrainVerticalScale = 1;   
   266     std::unique_ptr<QgsTerrainGenerator> mTerrainGenerator;  
   267     int mMapTileResolution = 512;   
   268     float mMaxTerrainScreenError = 3.f;   
   269     float mMaxTerrainGroundError = 1.f;  
   270     bool mShowTerrainBoundingBoxes = 
false;  
   271     bool mShowTerrainTileInfo = 
false;  
   272     bool mShowLabels = 
false; 
   273     QList<QgsMapLayerRef> mLayers;   
   274     QList<QgsAbstract3DRenderer *> mRenderers;  
   275     bool mSkyboxEnabled = 
false;  
   276     QString mSkyboxFileBase; 
   277     QString mSkyboxFileExtension; 
   284 #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. 
 
bool showTerrainBoundingBoxes() const
Returns whether to display bounding boxes of terrain tiles (for debugging) 
 
QgsCoordinateReferenceSystem crs() const
Returns coordinate reference system used in the 3D scene. 
 
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. 
 
QString skyboxFileBase() const
Returns base part of filenames of skybox (see setSkybox()) 
 
const QgsPathResolver & pathResolver() const
Returns the path resolver for conversion between relative and absolute paths during rendering operati...
 
3 Definition of the world 
 
QgsVector3D origin() const
Returns coordinates in map CRS at which 3D scene has origin (0,0,0) 
 
bool hasSkyboxEnabled() const
Returns whether skybox is enabled. 
 
bool showTerrainTilesInfo() const
Returns whether to display extra tile info on top of terrain tiles (for debugging) ...
 
Reads and writes project states. 
 
Contains information about the context in which a coordinate transform is executed. 
 
void setOrigin(const QgsVector3D &origin)
Sets coordinates in map CRS at which our 3D world has origin (0,0,0) 
 
bool showLabels() const
Returns whether to display labels on terrain tiles. 
 
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. 
 
QList< QgsAbstract3DRenderer * > renderers() const
Returns list of extra 3D renderers. 
 
This class represents a coordinate reference system (CRS). 
 
QString skyboxFileExtension() const
Returns extension part of filenames of skybox (see setSkybox()) 
 
Resolves relative paths into absolute paths and vice versa. 
 
QgsTerrainGenerator * terrainGenerator() const
Returns terrain generator. It takes care of producing terrain tiles from the input data...