MeVisLab Toolbox Reference
ml::LUTRGBAPoint Class Reference

A LUT sampling point with index position and RGBA channel values,. More...

#include <mlLUTFLinear.h>

Public Member Functions

 LUTRGBAPoint ()
 Default constructor. More...
 
 LUTRGBAPoint (double posArg, double rArg, double gArg, double bArg, double aArg)
 Explicit value constructor. More...
 
double pos () const
 Get index position of point. More...
 
void setPos (double posArg)
 Set index position of point. More...
 
double & operator[] (int idx)
 Access the components, 0 = pos, 1 = r , 2 = g, 3 = b, 4 = a No check for validity of idx! More...
 
const double & operator[] (int idx) const
 Access the components, 0 = pos, 1 = r , 2 = g, 3 = b, 4 = a No check for validity of idx! (Const version) More...
 
bool operator< (const LUTRGBAPoint &p) const
 "Less than" comparison operator, refers to index position More...
 
bool operator> (const LUTRGBAPoint &p) const
 "Greater than" comparison operator, refers to index position More...
 
double r () const
 Access the color/alpha components. More...
 
void setR (double rArg)
 
double g () const
 
void setG (double gArg)
 
double b () const
 
void setB (double bArg)
 
double a () const
 
void setA (double aArg)
 
void setL (double lArg)
 Set R, G, B components to luminance l. More...
 
double l () const
 Return luminance (assuming that R == G == B) More...
 
void setRGBA (double rArg, double gArg, double bArg, double aArg)
 
void setRGB (double rArg, double gArg, double bArg)
 

Detailed Description

A LUT sampling point with index position and RGBA channel values,.

Definition at line 29 of file mlLUTFLinear.h.

Constructor & Destructor Documentation

◆ LUTRGBAPoint() [1/2]

ml::LUTRGBAPoint::LUTRGBAPoint ( )

Default constructor.

◆ LUTRGBAPoint() [2/2]

ml::LUTRGBAPoint::LUTRGBAPoint ( double  posArg,
double  rArg,
double  gArg,
double  bArg,
double  aArg 
)

Explicit value constructor.

Member Function Documentation

◆ a()

double ml::LUTRGBAPoint::a ( ) const
inline

Definition at line 49 of file mlLUTFLinear.h.

◆ b()

double ml::LUTRGBAPoint::b ( ) const
inline

Definition at line 47 of file mlLUTFLinear.h.

◆ g()

double ml::LUTRGBAPoint::g ( ) const
inline

Definition at line 45 of file mlLUTFLinear.h.

◆ l()

double ml::LUTRGBAPoint::l ( ) const
inline

Return luminance (assuming that R == G == B)

Definition at line 58 of file mlLUTFLinear.h.

◆ operator<()

bool ml::LUTRGBAPoint::operator< ( const LUTRGBAPoint p) const
inline

"Less than" comparison operator, refers to index position

Definition at line 91 of file mlLUTFLinear.h.

References pos().

◆ operator>()

bool ml::LUTRGBAPoint::operator> ( const LUTRGBAPoint p) const
inline

"Greater than" comparison operator, refers to index position

Definition at line 96 of file mlLUTFLinear.h.

References pos().

◆ operator[]() [1/2]

double& ml::LUTRGBAPoint::operator[] ( int  idx)
inline

Access the components, 0 = pos, 1 = r , 2 = g, 3 = b, 4 = a No check for validity of idx!

Definition at line 79 of file mlLUTFLinear.h.

◆ operator[]() [2/2]

const double& ml::LUTRGBAPoint::operator[] ( int  idx) const
inline

Access the components, 0 = pos, 1 = r , 2 = g, 3 = b, 4 = a No check for validity of idx! (Const version)

Definition at line 86 of file mlLUTFLinear.h.

◆ pos()

double ml::LUTRGBAPoint::pos ( ) const
inline

Get index position of point.

Definition at line 38 of file mlLUTFLinear.h.

Referenced by operator<(), and operator>().

◆ r()

double ml::LUTRGBAPoint::r ( ) const
inline

Access the color/alpha components.

Definition at line 43 of file mlLUTFLinear.h.

◆ setA()

void ml::LUTRGBAPoint::setA ( double  aArg)
inline

Definition at line 50 of file mlLUTFLinear.h.

◆ setB()

void ml::LUTRGBAPoint::setB ( double  bArg)
inline

Definition at line 48 of file mlLUTFLinear.h.

◆ setG()

void ml::LUTRGBAPoint::setG ( double  gArg)
inline

Definition at line 46 of file mlLUTFLinear.h.

◆ setL()

void ml::LUTRGBAPoint::setL ( double  lArg)
inline

Set R, G, B components to luminance l.

Definition at line 53 of file mlLUTFLinear.h.

◆ setPos()

void ml::LUTRGBAPoint::setPos ( double  posArg)
inline

Set index position of point.

Definition at line 40 of file mlLUTFLinear.h.

◆ setR()

void ml::LUTRGBAPoint::setR ( double  rArg)
inline

Definition at line 44 of file mlLUTFLinear.h.

◆ setRGB()

void ml::LUTRGBAPoint::setRGB ( double  rArg,
double  gArg,
double  bArg 
)
inline

Definition at line 69 of file mlLUTFLinear.h.

◆ setRGBA()

void ml::LUTRGBAPoint::setRGBA ( double  rArg,
double  gArg,
double  bArg,
double  aArg 
)
inline

Definition at line 62 of file mlLUTFLinear.h.


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