UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
ZqbScaledPalette Class Reference

#include <zqb_scaled_palette.hpp>

Inheritance diagram for ZqbScaledPalette:
ZqbPalette ZqbPalette

Public Member Functions

 ZqbScaledPalette (const QColor &c=Qt::black)
 
 ZqbScaledPalette (int n, const QColor &c1, const QColor &c2)
 
 ZqbScaledPalette (int n, const QColor &c1, const QColor &c2, const QColor &c3)
 
 ZqbScaledPalette (const ZqbScaledPalette &zscpal)
 
 ZqbScaledPalette (const ZqbPalette &zpal)
 
ZqbScaledPaletteoperator= (const ZqbScaledPalette &zscpal)
 
ZqbScaledPaletteoperator= (const ZqbPalette &zpal)
 
virtual int colorIndex (double coord) const
 
virtual void coordRange (int index, double coord[2]) const
 
virtual const QColor & color (double coord) const
 
const QColor & operator() (double coord) const
 
virtual void setRange (double lowi, double highi)
 
virtual void setRange (double lh[2])
 
virtual void getRange (double lh[2]) const
 
 ZqbScaledPalette (const QColor &c=Qt::black)
 
 ZqbScaledPalette (int n, const QColor &c1, const QColor &c2)
 
 ZqbScaledPalette (int n, const QColor &c1, const QColor &c2, const QColor &c3)
 
 ZqbScaledPalette (const ZqbScaledPalette &zscpal)
 
 ZqbScaledPalette (const ZqbPalette &zpal)
 
ZqbScaledPaletteoperator= (const ZqbScaledPalette &zscpal)
 
ZqbScaledPaletteoperator= (const ZqbPalette &zpal)
 
virtual int colorIndex (double coord) const
 
virtual void coordRange (int index, double coord[2]) const
 
virtual const QColor & color (double coord) const
 
const QColor & operator() (double coord) const
 
virtual void setRange (double lowi, double highi)
 
virtual void setRange (double lh[2])
 
virtual void getRange (double lh[2]) const
 
- Public Member Functions inherited from ZqbPalette
 ZqbPalette (const QColor &c=Qt::black)
 
 ZqbPalette (int n, const QColor &c1, const QColor &c2)
 
 ZqbPalette (int n, const QColor &c1, const QColor &c2, const QColor &c3)
 
 ZqbPalette (const ZqbPalette &zpal)
 
virtual ~ZqbPalette ()
 
ZqbPaletteoperator= (const ZqbPalette &zpal)
 
virtual void revertColorsOrder ()
 
virtual int numberOfColors () const
 
virtual const QColor & color (int index) const
 
const QColor & operator[] (int index) const
 
virtual QColor & color (int index)
 
QColor & operator[] (int index)
 
virtual int colorIndex (const QColor &c) const
 
const int operator[] (const QColor &c) const
 
virtual void drawPalette (QPixmap &pixmap, Qt::Orientation eOrient) const
 
virtual int addColor (const QColor &c)
 
ZqbPaletteoperator+= (const QColor &c)
 
virtual int addPalette (const ZqbPalette &pal)
 
ZqbPaletteoperator+= (const ZqbPalette &pal)
 
void expandToColor (int n, const QColor &c)
 
int addColors (int n, const QColor &c1, const QColor &c2)
 
int addColors (int n, const QColor &c1, const QColor &c2, const QColor &c3)
 
 ZqbPalette (const QColor &c=Qt::black)
 
 ZqbPalette (int n, const QColor &c1, const QColor &c2)
 
 ZqbPalette (int n, const QColor &c1, const QColor &c2, const QColor &c3)
 
 ZqbPalette (const ZqbPalette &zpal)
 
virtual ~ZqbPalette ()
 
ZqbPaletteoperator= (const ZqbPalette &zpal)
 
virtual void revertColorsOrder ()
 
virtual int numberOfColors () const
 
virtual const QColor & color (int index) const
 
const QColor & operator[] (int index) const
 
virtual QColor & color (int index)
 
QColor & operator[] (int index)
 
virtual int colorIndex (const QColor &c) const
 
int operator[] (const QColor &c) const
 
virtual void drawPalette (QPixmap &pixmap, Qt::Orientation eOrient) const
 
virtual int addColor (const QColor &c)
 
ZqbPaletteoperator+= (const QColor &c)
 
virtual int addPalette (const ZqbPalette &pal)
 
ZqbPaletteoperator+= (const ZqbPalette &pal)
 
void expandToColor (int n, const QColor &c)
 
int addColors (int n, const QColor &c1, const QColor &c2)
 
int addColors (int n, const QColor &c1, const QColor &c2, const QColor &c3)
 

Protected Attributes

double m_fRange [2]
 

Detailed Description

Color palette with real coordinate scale to convert coordinate to some color.

Constructor & Destructor Documentation

ZqbScaledPalette::ZqbScaledPalette ( const QColor &  c = Qt::black)

Create scaled palette with default range {0.0 100.0} and with one given color (black by default).

ZqbScaledPalette::ZqbScaledPalette ( int  n,
const QColor &  c1,
const QColor &  c2 
)

Create scaled palette with default range {0.0 100.0} and with vector of n colors distributed smoothly from first color to the second.

ZqbScaledPalette::ZqbScaledPalette ( int  n,
const QColor &  c1,
const QColor &  c2,
const QColor &  c3 
)

Create scaled palette with default range {0.0 100.0} and with vector of n colors distributed smoothly from first color to the third via the second. White color (Qt::white()) is advised as the second color.

ZqbScaledPalette::ZqbScaledPalette ( const ZqbScaledPalette zscpal)

Create copy of the scaled palette.

ZqbScaledPalette::ZqbScaledPalette ( const ZqbPalette zpal)

Create copy of the palette with default range {0.0 100.0}.

ZqbScaledPalette::ZqbScaledPalette ( const QColor &  c = Qt::black)

Create scaled palette with default range {0.0 100.0} and with one given color (black by default).

ZqbScaledPalette::ZqbScaledPalette ( int  n,
const QColor &  c1,
const QColor &  c2 
)

Create scaled palette with default range {0.0 100.0} and with vector of n colors distributed smoothly from first color to the second.

ZqbScaledPalette::ZqbScaledPalette ( int  n,
const QColor &  c1,
const QColor &  c2,
const QColor &  c3 
)

Create scaled palette with default range {0.0 100.0} and with vector of n colors distributed smoothly from first color to the third via the second. White color (Qt::white()) is advised as the second color.

ZqbScaledPalette::ZqbScaledPalette ( const ZqbScaledPalette zscpal)

Create copy of the scaled palette.

ZqbScaledPalette::ZqbScaledPalette ( const ZqbPalette zpal)

Create copy of the palette with default range {0.0 100.0}.

Member Function Documentation

virtual const QColor& ZqbScaledPalette::color ( double  coord) const
virtual

Get color by coordinate.

virtual const QColor& ZqbScaledPalette::color ( double  coord) const
virtual

Get color by coordinate.

virtual int ZqbScaledPalette::colorIndex ( double  coord) const
virtual

Get index of the color by given coordinate.

virtual int ZqbScaledPalette::colorIndex ( double  coord) const
virtual

Get index of the color by given coordinate.

virtual void ZqbScaledPalette::coordRange ( int  index,
double  coord[2] 
) const
virtual

Get range of coordinates for given color index.

virtual void ZqbScaledPalette::coordRange ( int  index,
double  coord[2] 
) const
virtual

Get range of coordinates for given color index.

virtual void ZqbScaledPalette::getRange ( double  lh[2]) const
virtual

Get range of coordinates for low color index and high color index.

virtual void ZqbScaledPalette::getRange ( double  lh[2]) const
virtual

Get range of coordinates for low color index and high color index.

const QColor& ZqbScaledPalette::operator() ( double  coord) const
inline

Get color by coordinate. Synonymous for color()

const QColor& ZqbScaledPalette::operator() ( double  coord) const
inline

Get color by coordinate. Synonymous for color()

ZqbScaledPalette& ZqbScaledPalette::operator= ( const ZqbScaledPalette zscpal)

Assign the scaled palette.

ZqbScaledPalette& ZqbScaledPalette::operator= ( const ZqbScaledPalette zscpal)

Assign the scaled palette.

ZqbScaledPalette& ZqbScaledPalette::operator= ( const ZqbPalette zpal)

Assign the usual palette and don't touch the range.

ZqbScaledPalette& ZqbScaledPalette::operator= ( const ZqbPalette zpal)

Assign the usual palette and don't touch the range.

virtual void ZqbScaledPalette::setRange ( double  lowi,
double  highi 
)
virtual

Set transformation by given coordinates for low color index and high color index.

virtual void ZqbScaledPalette::setRange ( double  lowi,
double  highi 
)
virtual

Set transformation by given coordinates for low color index and high color index.

virtual void ZqbScaledPalette::setRange ( double  lh[2])
inlinevirtual

Set transformation by given minimum and maximum values. Synonymous for setRange().

virtual void ZqbScaledPalette::setRange ( double  lh[2])
inlinevirtual

Set transformation by given minimum and maximum values. Synonymous for setRange().

Member Data Documentation

double ZqbScaledPalette::m_fRange
protected

Range of coordinates used for color scale.


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