casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casa::Colorbar Class Reference

#include <Colorbar.qo.h>

Inheritance diagram for casa::Colorbar:

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
 
casacore::Vector< float > rMap
 
casacore::Vector< float > gMap
 
casacore::Vector< float > bMap
 
float min
 
float max
 

Detailed Description

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

Constructor & Destructor Documentation

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

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
QSize casa::Colorbar::minimumSizeHint ( ) const
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

casacore::Vector<float> casa::Colorbar::bMap
protected

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

QString casa::Colorbar::cmapname
protected

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

casacore::Vector<float> casa::Colorbar::gMap
protected

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.

casacore::Vector<float> casa::Colorbar::rMap
protected

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


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