CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | List of all members
jocassview::LogColorMap Class Reference

a logarithmic color map More...

#include <logcolor_map.h>

+ Inheritance diagram for jocassview::LogColorMap:
+ Collaboration diagram for jocassview::LogColorMap:

Public Member Functions

 LogColorMap (const QColor &from, const QColor &to)
 constructor More...
 
QRgb rgb (const QwtInterval &interval, double value) const
 return the rgb value for a given value More...
 

Detailed Description

a logarithmic color map

based upon code found here https://stackoverflow.com/questions/7745506/qwtplotspectrogram-using-a-logarithmic-color-scale

Definition at line 22 of file logcolor_map.h.

Constructor & Destructor Documentation

LogColorMap::LogColorMap ( const QColor from,
const QColor to 
)

constructor

Parameters
fromthe first color stop
tothe last color stop

Definition at line 21 of file logcolor_map.cpp.

Member Function Documentation

QRgb LogColorMap::rgb ( const QwtInterval &  interval,
double  value 
) const

return the rgb value for a given value

Returns
the rgb value
Parameters
interval
value

Definition at line 27 of file logcolor_map.cpp.


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