Widget which can visualize a histogram. More...
#include <OpenMS/VISUAL/HistogramWidget.h>
Public Slots | |
| void | showSplitters (bool on) |
Shows the splitters if on is true. Hides them otherwise. More... | |
| void | setRightSplitter (DoubleReal pos) |
| Sets the value of the right splitter. More... | |
| void | setLeftSplitter (DoubleReal pos) |
| Sets the value of the left splitter. More... | |
| void | setLogMode (bool log_mode) |
| Enables/disables log mode. More... | |
Public Member Functions | |
| HistogramWidget (const Math::Histogram<> &distribution, QWidget *parent=0) | |
| Constructor. More... | |
| virtual | ~HistogramWidget () |
| Destructor. More... | |
| DoubleReal | getLeftSplitter () |
| Returns the value f the lower splitter. More... | |
| DoubleReal | getRightSplitter () |
| Returns the value of the upper splitter. More... | |
| void | setLegend (const String &legend) |
| Set axis legends. More... | |
Protected Slots | |
| void | showContextMenu (const QPoint &pos) |
| Context menu event. More... | |
Protected Member Functions | |
| void | invalidate_ () |
| Repaints the contents to the buffer and calls update() More... | |
reimplemented Qt events | |
| void | paintEvent (QPaintEvent *) |
| void | mousePressEvent (QMouseEvent *) |
| void | mouseReleaseEvent (QMouseEvent *) |
| void | mouseMoveEvent (QMouseEvent *) |
| void | resizeEvent (QResizeEvent *) |
Protected Attributes | |
| Math::Histogram | dist_ |
| The histogram to display. More... | |
| bool | show_splitters_ |
| Flag that indicates if splitters are shown. More... | |
| DoubleReal | left_splitter_ |
| Value of the right splitter. More... | |
| DoubleReal | right_splitter_ |
| Value of the right splitter. More... | |
| UInt | moving_splitter_ |
| The splitter that is currently dragged (0=none, 1=left, 2=right) More... | |
| AxisWidget * | bottom_axis_ |
| X axis. More... | |
| UInt | margin_ |
| Margin around plot. More... | |
| QPixmap | buffer_ |
| Internal buffer for the double buffering. More... | |
| bool | log_mode_ |
| Flag that indicates the current mode. More... | |
Widget which can visualize a histogram.
It can also be used to define a left and right boundary inside the values. It supports normal and log scaling via the context menu.
| HistogramWidget | ( | const Math::Histogram<> & | distribution, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
| DoubleReal getLeftSplitter | ( | ) |
Returns the value f the lower splitter.
| DoubleReal getRightSplitter | ( | ) |
Returns the value of the upper splitter.
|
protected |
Repaints the contents to the buffer and calls update()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
slot |
Sets the value of the left splitter.
| void setLegend | ( | const String & | legend | ) |
Set axis legends.
|
slot |
Enables/disables log mode.
|
slot |
Sets the value of the right splitter.
|
protectedslot |
Context menu event.
|
slot |
Shows the splitters if on is true. Hides them otherwise.
|
protected |
X axis.
|
protected |
Internal buffer for the double buffering.
|
protected |
The histogram to display.
|
protected |
Value of the right splitter.
|
protected |
Flag that indicates the current mode.
|
protected |
Margin around plot.
|
protected |
The splitter that is currently dragged (0=none, 1=left, 2=right)
|
protected |
Value of the right splitter.
|
protected |
Flag that indicates if splitters are shown.
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:35 using doxygen 1.8.5 |