QGIS API Documentation 3.41.0-Master (3291e9ff48b)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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 44 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 58 of file qgsrastertransparency.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 139 of file qgsrastertransparency.h.

◆ operator==()

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

Definition at line 129 of file qgsrastertransparency.h.

Member Data Documentation

◆ blue

double QgsRasterTransparency::TransparentThreeValuePixel::blue

Blue pixel value.

Definition at line 81 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 124 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 111 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 98 of file qgsrastertransparency.h.

◆ green

double QgsRasterTransparency::TransparentThreeValuePixel::green

Green pixel value.

Definition at line 76 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 88 of file qgsrastertransparency.h.

◆ red

double QgsRasterTransparency::TransparentThreeValuePixel::red

Red pixel value.

Definition at line 71 of file qgsrastertransparency.h.


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