QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsRasterTransparency::TransparentThreeValuePixel Struct Reference

Defines the transparency for a RGB pixel value. More...

#include <qgsrastertransparency.h>

Public Member Functions

 TransparentThreeValuePixel (double red=0, double green=0, double blue=0, double opacity=0, double fuzzyToleranceRed=4 *std::numeric_limits< double >::epsilon(), double fuzzyToleranceGreen=4 *std::numeric_limits< double >::epsilon(), double fuzzyToleranceBlue=4 *std::numeric_limits< double >::epsilon())
 Constructor for TransparentThreeValuePixel.
bool operator!= (const QgsRasterTransparency::TransparentThreeValuePixel &other) const
bool operator== (const QgsRasterTransparency::TransparentThreeValuePixel &other) const

Public Attributes

double blue
 Blue pixel value.
double fuzzyToleranceBlue = 4 * std::numeric_limits<double>::epsilon()
 Fuzzy tolerance for blue values.
double fuzzyToleranceGreen = 4 * std::numeric_limits<double>::epsilon()
 Fuzzy tolerance for green values.
double fuzzyToleranceRed = 4 * std::numeric_limits<double>::epsilon()
 Fuzzy tolerance for red values.
double green
 Green pixel value.
double opacity = 0
 Opacity for pixel, between 0 and 1.0.
double red
 Red pixel value.

Detailed Description

Defines the transparency for a RGB pixel value.

Definition at line 46 of file qgsrastertransparency.h.

Constructor & Destructor Documentation

◆ TransparentThreeValuePixel()

QgsRasterTransparency::TransparentThreeValuePixel::TransparentThreeValuePixel ( double red = 0,
double green = 0,
double blue = 0,
double opacity = 0,
double fuzzyToleranceRed = 4 * std::numeric_limits<double>::epsilon(),
double fuzzyToleranceGreen = 4 * std::numeric_limits<double>::epsilon(),
double fuzzyToleranceBlue = 4 * std::numeric_limits<double>::epsilon() )
inline

Constructor for TransparentThreeValuePixel.

Parameters
redred pixel value
greengreen pixel value
blueblue pixel value
opacityopacity for pixel, between 0 and 1.0
fuzzyToleranceRed(since QGIS 3.40) allows specifying a tolerance for the red color component, where the pixel's red component can deviate from values specified here by a maximum of this tolerance amount
fuzzyToleranceGreen(since QGIS 3.40) allows specifying a tolerance for the green color component, where the pixel's green component can deviate from values specified here by a maximum of this tolerance amount
fuzzyToleranceBlue(since QGIS 3.40) allows specifying a tolerance for the blue color component, where the pixel's blue component can deviate from values specified here by a maximum of this tolerance amount
Since
QGIS 3.38

Definition at line 60 of file qgsrastertransparency.h.

Member Function Documentation

◆ operator!=()

bool QgsRasterTransparency::TransparentThreeValuePixel::operator!= ( const QgsRasterTransparency::TransparentThreeValuePixel & other) const
inline

Definition at line 141 of file qgsrastertransparency.h.

◆ operator==()

bool QgsRasterTransparency::TransparentThreeValuePixel::operator== ( const QgsRasterTransparency::TransparentThreeValuePixel & other) const
inline

Definition at line 131 of file qgsrastertransparency.h.

Member Data Documentation

◆ blue

double QgsRasterTransparency::TransparentThreeValuePixel::blue

Blue pixel value.

Definition at line 83 of file qgsrastertransparency.h.

◆ fuzzyToleranceBlue

double QgsRasterTransparency::TransparentThreeValuePixel::fuzzyToleranceBlue = 4 * std::numeric_limits<double>::epsilon()

Fuzzy tolerance for blue values.

If non zero, the pixel's blue component can deviate from values specified in this object by a maximum of this tolerance amount.

Since
QGIS 3.40

Definition at line 126 of file qgsrastertransparency.h.

◆ fuzzyToleranceGreen

double QgsRasterTransparency::TransparentThreeValuePixel::fuzzyToleranceGreen = 4 * std::numeric_limits<double>::epsilon()

Fuzzy tolerance for green values.

If non zero, the pixel's green component can deviate from values specified in this object by a maximum of this tolerance amount.

Since
QGIS 3.40

Definition at line 113 of file qgsrastertransparency.h.

◆ fuzzyToleranceRed

double QgsRasterTransparency::TransparentThreeValuePixel::fuzzyToleranceRed = 4 * std::numeric_limits<double>::epsilon()

Fuzzy tolerance for red values.

If non zero, the pixel's red component can deviate from values specified in this object by a maximum of this tolerance amount.

Since
QGIS 3.40

Definition at line 100 of file qgsrastertransparency.h.

◆ green

double QgsRasterTransparency::TransparentThreeValuePixel::green

Green pixel value.

Definition at line 78 of file qgsrastertransparency.h.

◆ opacity

double QgsRasterTransparency::TransparentThreeValuePixel::opacity = 0

Opacity for pixel, between 0 and 1.0.

Since
QGIS 3.38

Definition at line 90 of file qgsrastertransparency.h.

◆ red

double QgsRasterTransparency::TransparentThreeValuePixel::red

Red pixel value.

Definition at line 73 of file qgsrastertransparency.h.


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