QGIS API Documentation 4.1.0-Master (0cdd3ae6384)
Loading...
Searching...
No Matches
QgsRasterReliefColor Class Reference

Defines elevation range and color for raster relief coloring. More...

#include <qgsrasterlayerutils.h>

Public Member Functions

 QgsRasterReliefColor (const QColor &c, double min, double max)
 Constructor for QgsRasterReliefColor.
bool operator!= (const QgsRasterReliefColor &other) const
bool operator== (const QgsRasterReliefColor &other) const

Public Attributes

QColor color
 Color.
double maxElevation = 0
 Elevation range maximum.
double minElevation = 0
 Elevation range minimum.

Detailed Description

Defines elevation range and color for raster relief coloring.

Note
Prior to 4.2 this was available as QgsRelief::ReliefColor.
Since
QGIS 4.2

Definition at line 46 of file qgsrasterlayerutils.h.

Constructor & Destructor Documentation

◆ QgsRasterReliefColor()

QgsRasterReliefColor::QgsRasterReliefColor ( const QColor & c,
double min,
double max )
inline

Constructor for QgsRasterReliefColor.

Parameters
ccolor
minelevation range minimum
maxelevation range maximum

Definition at line 55 of file qgsrasterlayerutils.h.

Member Function Documentation

◆ operator!=()

bool QgsRasterReliefColor::operator!= ( const QgsRasterReliefColor & other) const
inline

Definition at line 73 of file qgsrasterlayerutils.h.

◆ operator==()

bool QgsRasterReliefColor::operator== ( const QgsRasterReliefColor & other) const
inline

Definition at line 68 of file qgsrasterlayerutils.h.

Member Data Documentation

◆ color

QColor QgsRasterReliefColor::color

Color.

Definition at line 62 of file qgsrasterlayerutils.h.

◆ maxElevation

double QgsRasterReliefColor::maxElevation = 0

Elevation range maximum.

Definition at line 66 of file qgsrasterlayerutils.h.

◆ minElevation

double QgsRasterReliefColor::minElevation = 0

Elevation range minimum.

Definition at line 64 of file qgsrasterlayerutils.h.


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