#include <OpenMS/VISUAL/HistogramWidget.h>
It can also be used to define a left and right boundary inside the values.
Public Slots | |
void | showSplitters (bool on) |
Shows the splitters if on is true. Hides them otherwise. | |
void | setRightSplitter (Real pos) |
Sets the value of the right splitter. | |
void | setLeftSplitter (Real pos) |
Sets the value of the left splitter. | |
Public Member Functions | |
HistogramWidget (const Math::Histogram< UInt, Real > &distribution, QWidget *parent=0) | |
Constructor. | |
virtual | ~HistogramWidget () |
Destructor. | |
Real | getLeftSplitter () |
Returns the value f the lower splitter. | |
Real | getRightSplitter () |
Returns the value of the upper splitter. | |
void | setLegend (const String &legend) |
set axis legends | |
Protected Member Functions | |
void | invalidate_ () |
repaints the contents to the buffer and calls update() | |
reimplemented Qt events | |
void | paintEvent (QPaintEvent *) |
void | mousePressEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | resizeEvent (QResizeEvent *) |
Protected Attributes | |
Math::Histogram< UInt, Real > | dist_ |
the histogram to display | |
bool | show_splitters_ |
Flag that indicates if splitters are shown. | |
Real | left_splitter_ |
value of the right splitter | |
Real | right_splitter_ |
value of the right splitter | |
UInt | moving_splitter_ |
the splitter that is currently dragged (0=none, 1=left, 2=right) | |
AxisWidget * | bottom_axis_ |
x axis | |
UInt | margin_ |
margin around plot | |
QPixmap | buffer_ |
internal buffer for the double buffering |
HistogramWidget | ( | const Math::Histogram< UInt, Real > & | distribution, | |
QWidget * | parent = 0 | |||
) |
Constructor.
virtual ~HistogramWidget | ( | ) | [virtual] |
Destructor.
Real getLeftSplitter | ( | ) |
Returns the value f the lower splitter.
Real getRightSplitter | ( | ) |
Returns the value of the upper splitter.
void setLegend | ( | const String & | legend | ) |
set axis legends
void showSplitters | ( | bool | on | ) | [slot] |
Shows the splitters if on
is true. Hides them otherwise.
void setRightSplitter | ( | Real | pos | ) | [slot] |
Sets the value of the right splitter.
void setLeftSplitter | ( | Real | pos | ) | [slot] |
Sets the value of the left splitter.
void invalidate_ | ( | ) | [protected] |
repaints the contents to the buffer and calls update()
void paintEvent | ( | QPaintEvent * | ) | [protected] |
void mousePressEvent | ( | QMouseEvent * | ) | [protected] |
void mouseReleaseEvent | ( | QMouseEvent * | ) | [protected] |
void mouseMoveEvent | ( | QMouseEvent * | ) | [protected] |
void resizeEvent | ( | QResizeEvent * | ) | [protected] |
Math::Histogram<UInt,Real> dist_ [protected] |
the histogram to display
bool show_splitters_ [protected] |
Flag that indicates if splitters are shown.
Real left_splitter_ [protected] |
value of the right splitter
Real right_splitter_ [protected] |
value of the right splitter
UInt moving_splitter_ [protected] |
the splitter that is currently dragged (0=none, 1=left, 2=right)
AxisWidget* bottom_axis_ [protected] |
x axis
QPixmap buffer_ [protected] |
internal buffer for the double buffering
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |