QGIS API Documentation 4.1.0-Master (64dc32379c2)
Loading...
Searching...
No Matches
QgsFixedGradientBackgroundSettings Class Reference

Background settings for a two-color vertical gradient rendered behind the 3D scene. More...

#include <qgsfixedgradientbackgroundsettings.h>

Inheritance diagram for QgsFixedGradientBackgroundSettings:

Public Member Functions

 QgsFixedGradientBackgroundSettings ()=default
QColor bottomColor () const
 Returns the color at the bottom of the gradient.
QgsFixedGradientBackgroundSettingsclone () const override
 Returns a deep copy of this background settings object.
void readXml (const QDomElement &element, const QgsReadWriteContext &context) override
 Reads settings from a DOM element.
void setBottomColor (const QColor &color)
 Sets the color at the bottom of the gradient.
void setTopColor (const QColor &color)
 Sets the color at the top of the gradient.
QColor topColor () const
 Returns the color at the top of the gradient.
Qgis::Map3DBackgroundType type () const override
 Returns the unique type for this background settings class.
void writeXml (QDomElement &element, const QgsReadWriteContext &context) const override
 Writes settings to a DOM element.
Public Member Functions inherited from QgsAbstract3DMapBackgroundSettings
virtual ~QgsAbstract3DMapBackgroundSettings ()=default

Detailed Description

Background settings for a two-color vertical gradient rendered behind the 3D scene.

Since
QGIS 4.2

Definition at line 31 of file qgsfixedgradientbackgroundsettings.h.

Constructor & Destructor Documentation

◆ QgsFixedGradientBackgroundSettings()

QgsFixedGradientBackgroundSettings::QgsFixedGradientBackgroundSettings ( )
default

Member Function Documentation

◆ bottomColor()

QColor QgsFixedGradientBackgroundSettings::bottomColor ( ) const
inline

Returns the color at the bottom of the gradient.

See also
setBottomColor()

Definition at line 61 of file qgsfixedgradientbackgroundsettings.h.

◆ clone()

QgsFixedGradientBackgroundSettings * QgsFixedGradientBackgroundSettings::clone ( ) const
overridevirtual

Returns a deep copy of this background settings object.

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 26 of file qgsfixedgradientbackgroundsettings.cpp.

◆ readXml()

void QgsFixedGradientBackgroundSettings::readXml ( const QDomElement & element,
const QgsReadWriteContext & context )
overridevirtual

Reads settings from a DOM element.

See also
writeXml()

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 32 of file qgsfixedgradientbackgroundsettings.cpp.

◆ setBottomColor()

void QgsFixedGradientBackgroundSettings::setBottomColor ( const QColor & color)
inline

Sets the color at the bottom of the gradient.

See also
bottomColor()

Definition at line 68 of file qgsfixedgradientbackgroundsettings.h.

◆ setTopColor()

void QgsFixedGradientBackgroundSettings::setTopColor ( const QColor & color)
inline

Sets the color at the top of the gradient.

See also
topColor()

Definition at line 54 of file qgsfixedgradientbackgroundsettings.h.

◆ topColor()

QColor QgsFixedGradientBackgroundSettings::topColor ( ) const
inline

Returns the color at the top of the gradient.

See also
setTopColor()

Definition at line 47 of file qgsfixedgradientbackgroundsettings.h.

◆ type()

Qgis::Map3DBackgroundType QgsFixedGradientBackgroundSettings::type ( ) const
inlineoverridevirtual

Returns the unique type for this background settings class.

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 36 of file qgsfixedgradientbackgroundsettings.h.

◆ writeXml()

void QgsFixedGradientBackgroundSettings::writeXml ( QDomElement & element,
const QgsReadWriteContext & context ) const
overridevirtual

Writes settings to a DOM element.

See also
readXml()

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 38 of file qgsfixedgradientbackgroundsettings.cpp.


The documentation for this class was generated from the following files: