casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
casa::Colorbar Class Reference

#include <Colorbar.qo.h>

List of all members.

Public Slots

void setRange (float min, float max)
void setMinimum (float min)
void setMaximum (float min)
void setNumColors (int nc)
void setColormap (const QString &nm)
void changeColor (int, float, float, const QString &)

Public Member Functions

 Colorbar (QWidget *parent=0)
 ~Colorbar ()
QSize minimumSizeHint () const
QSize sizeHint () const

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mouseDoubleClickEvent (QMouseEvent *event)
void resizeEvent (QResizeEvent *)
void paintEvent (QPaintEvent *event)
void refreshBar ()
void setColorTable ()
void calcLinearMaps ()
void getLinearColor (Float &r, Float &g, Float &b, Float v)
void getTableColor (Float &r, Float &g, Float &b, Float v)

Protected Attributes

int numColors
QString cmapname
Vector< FloatrMap
Vector< FloatgMap
Vector< FloatbMap
float min
float max

Detailed Description

Definition at line 15 of file Colorbar.qo.h.


Constructor & Destructor Documentation

casa::Colorbar::Colorbar ( QWidget *  parent = 0)

Member Function Documentation

void casa::Colorbar::calcLinearMaps ( ) [protected]
void casa::Colorbar::changeColor ( int  ,
float  ,
float  ,
const QString &   
) [slot]
void casa::Colorbar::getLinearColor ( Float r,
Float g,
Float b,
Float  v 
) [protected]
void casa::Colorbar::getTableColor ( Float r,
Float g,
Float b,
Float  v 
) [protected]
void casa::Colorbar::mouseDoubleClickEvent ( QMouseEvent *  event) [protected]
void casa::Colorbar::mouseMoveEvent ( QMouseEvent *  event) [protected]
void casa::Colorbar::mousePressEvent ( QMouseEvent *  event) [protected]
void casa::Colorbar::paintEvent ( QPaintEvent *  event) [protected]
void casa::Colorbar::refreshBar ( ) [protected]
void casa::Colorbar::resizeEvent ( QResizeEvent *  ) [protected]
void casa::Colorbar::setColormap ( const QString &  nm) [slot]
void casa::Colorbar::setColorTable ( ) [protected]
void casa::Colorbar::setMaximum ( float  min) [slot]
void casa::Colorbar::setMinimum ( float  min) [slot]
void casa::Colorbar::setNumColors ( int  nc) [slot]
void casa::Colorbar::setRange ( float  min,
float  max 
) [slot]
QSize casa::Colorbar::sizeHint ( ) const

Member Data Documentation

Definition at line 49 of file Colorbar.qo.h.

QString casa::Colorbar::cmapname [protected]

Definition at line 45 of file Colorbar.qo.h.

Definition at line 48 of file Colorbar.qo.h.

float casa::Colorbar::max [protected]

Definition at line 57 of file Colorbar.qo.h.

float casa::Colorbar::min [protected]

Definition at line 56 of file Colorbar.qo.h.

int casa::Colorbar::numColors [protected]

Definition at line 44 of file Colorbar.qo.h.

Definition at line 47 of file Colorbar.qo.h.


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