PCL
pcl::GradientBrush::Stop Struct Reference

Gradient stop. More...

#include <Brush.h>

Public Member Functions

 Stop ()=default
 
 Stop (const Stop &)=default
 
 Stop (double p, RGBA c)
 
bool operator< (const Stop &x) const
 
bool operator== (const Stop &x) const
 

Public Attributes

RGBA color = 0xff000000
 Stop color encoded as a 32-bit AARRGGBB value.
 
double position = 0
 Stop position in the [0,1] range, where 0 and 1 correspond, respectively, to the starting and end locations of the gradient area.
 

Detailed Description

A gradient brush interpolates color values from an ordered list of gradient stops. A gradient stop is formed by a position in the [0,1] range and a RGBA color value.

Definition at line 358 of file Brush.h.

Constructor & Destructor Documentation

◆ Stop() [1/3]

pcl::GradientBrush::Stop::Stop ( )
default

Constructs a default gradient stop.

◆ Stop() [2/3]

pcl::GradientBrush::Stop::Stop ( double  p,
RGBA  c 
)
inline

Constructs a gradient stop at the specified position p with the color c.

Definition at line 372 of file Brush.h.

◆ Stop() [3/3]

pcl::GradientBrush::Stop::Stop ( const Stop )
default

Copy constructor.

Member Function Documentation

◆ operator<()

bool pcl::GradientBrush::Stop::operator< ( const Stop x) const
inline

Less than relational operator. Used to enforce ordering of gradient stop lists.

Gradient stop comparison is exclusively based on stop positions; stop colors are irrelevant for ordering.

Definition at line 398 of file Brush.h.

References position.

◆ operator==()

bool pcl::GradientBrush::Stop::operator== ( const Stop x) const
inline

Equality operator. Used to enforce ordering of gradient stop lists.

Definition at line 386 of file Brush.h.

References color, and position.


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