JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

for building palettes from list of colors and position values, using JKQTPBuildColorPaletteLUTLinInterpolateSorted(), ... More...

#include <jkqtpbasicimagetools.h>

Inheritance diagram for JKQTPPaletteList:
[legend]
Collaboration diagram for JKQTPPaletteList:
[legend]

Public Types

typedef QList< parameter_typeListType
 
typedef QPair< double, QRgb > parameter_type
 

Public Member Functions

 JKQTPPaletteList ()
 
 JKQTPPaletteList (const ListType &other)
 
template<typename InputIterator , JKQTPIsInputIteratorTrait< InputIterator > = true>
 JKQTPPaletteList (InputIterator first, InputIterator last)
 
 JKQTPPaletteList (ListType &&other)
 
 JKQTPPaletteList (qsizetype size)
 
 JKQTPPaletteList (qsizetype size, parameter_type value)
 
 JKQTPPaletteList (std::initializer_list< QColor > args)
 
 JKQTPPaletteList (std::initializer_list< QPair< double, QColor > > args)
 
template<class T >
 JKQTPPaletteList (std::initializer_list< QPair< double, QRgb > > args)
 
 JKQTPPaletteList (std::initializer_list< QRgb > args)
 
double getMaxPosition () const
 returns the maximum value of the double-component
 
void getMinMaxPosition (double &mi, double &ma, double *avgDelta=nullptr) const
 returns the minimum and maximum value of the double-component, as well as the avg. increment between two such values
 
double getMinPosition () const
 returns the minimum value of the double-component
 
JKQTPPaletteListoperator<< (QColor color)
 
JKQTPPaletteListoperator<< (QRgb rgb)
 
void push_back (double pos, QColor color)
 
void push_back (double pos, QRgb rgb)
 
void push_back (QColor color)
 
void push_back (QRgb rgb)
 
void reverse ()
 reverse colors
 
void sort ()
 sorty by position
 

Detailed Description

Member Typedef Documentation

◆ ListType

◆ parameter_type

typedef QPair<double, QRgb> JKQTPPaletteList::parameter_type

Constructor & Destructor Documentation

◆ JKQTPPaletteList() [1/10]

JKQTPPaletteList::JKQTPPaletteList ( )
inline

◆ JKQTPPaletteList() [2/10]

JKQTPPaletteList::JKQTPPaletteList ( qsizetype  size)
inline

◆ JKQTPPaletteList() [3/10]

JKQTPPaletteList::JKQTPPaletteList ( qsizetype  size,
parameter_type  value 
)
inline

◆ JKQTPPaletteList() [4/10]

template<class T >
JKQTPPaletteList::JKQTPPaletteList ( std::initializer_list< QPair< double, QRgb > >  args)
inline

◆ JKQTPPaletteList() [5/10]

JKQTPPaletteList::JKQTPPaletteList ( std::initializer_list< QRgb >  args)
inline

◆ JKQTPPaletteList() [6/10]

JKQTPPaletteList::JKQTPPaletteList ( std::initializer_list< QColor >  args)
inline

◆ JKQTPPaletteList() [7/10]

JKQTPPaletteList::JKQTPPaletteList ( std::initializer_list< QPair< double, QColor > >  args)
inline

◆ JKQTPPaletteList() [8/10]

template<typename InputIterator , JKQTPIsInputIteratorTrait< InputIterator > = true>
JKQTPPaletteList::JKQTPPaletteList ( InputIterator  first,
InputIterator  last 
)
inline

◆ JKQTPPaletteList() [9/10]

JKQTPPaletteList::JKQTPPaletteList ( ListType &&  other)
inline

◆ JKQTPPaletteList() [10/10]

JKQTPPaletteList::JKQTPPaletteList ( const ListType other)
inline

Member Function Documentation

◆ getMaxPosition()

double JKQTPPaletteList::getMaxPosition ( ) const
inline

returns the maximum value of the double-component

◆ getMinMaxPosition()

void JKQTPPaletteList::getMinMaxPosition ( double &  mi,
double &  ma,
double *  avgDelta = nullptr 
) const
inline

returns the minimum and maximum value of the double-component, as well as the avg. increment between two such values

◆ getMinPosition()

double JKQTPPaletteList::getMinPosition ( ) const
inline

returns the minimum value of the double-component

◆ operator<<() [1/2]

JKQTPPaletteList & JKQTPPaletteList::operator<< ( QColor  color)
inline

◆ operator<<() [2/2]

JKQTPPaletteList & JKQTPPaletteList::operator<< ( QRgb  rgb)
inline

◆ push_back() [1/4]

void JKQTPPaletteList::push_back ( double  pos,
QColor  color 
)
inline

◆ push_back() [2/4]

void JKQTPPaletteList::push_back ( double  pos,
QRgb  rgb 
)
inline

◆ push_back() [3/4]

void JKQTPPaletteList::push_back ( QColor  color)
inline

◆ push_back() [4/4]

void JKQTPPaletteList::push_back ( QRgb  rgb)
inline

◆ reverse()

void JKQTPPaletteList::reverse ( )
inline

reverse colors

◆ sort()

void JKQTPPaletteList::sort ( )
inline

sorty by position


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