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. | |
| void | setRightSplitter (DoubleReal pos) |
| Sets the value of the right splitter. | |
| void | setLeftSplitter (DoubleReal pos) |
| Sets the value of the left splitter. | |
| void | setLogMode (bool log_mode) |
| Enables/disables log mode. | |
Public Member Functions | |
| HistogramWidget (const Math::Histogram<> &distribution, QWidget *parent=0) | |
| Constructor. | |
| virtual | ~HistogramWidget () |
| Destructor. | |
| DoubleReal | getLeftSplitter () |
| Returns the value f the lower splitter. | |
| DoubleReal | getRightSplitter () |
| Returns the value of the upper splitter. | |
| void | setLegend (const String &legend) |
| Set axis legends. | |
Protected Slots | |
| void | showContextMenu (const QPoint &pos) |
| Context menu event. | |
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 | dist_ |
| The histogram to display. | |
| bool | show_splitters_ |
| Flag that indicates if splitters are shown. | |
| DoubleReal | left_splitter_ |
| Value of the right splitter. | |
| DoubleReal | 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. | |
| bool | log_mode_ |
| Flag that indicates the current mode. | |
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 ~HistogramWidget | ( | ) | [virtual] |
Destructor.
| DoubleReal getLeftSplitter | ( | ) |
Returns the value f the lower splitter.
| DoubleReal getRightSplitter | ( | ) |
Returns the value of the upper splitter.
| void invalidate_ | ( | ) | [protected] |
Repaints the contents to the buffer and calls update().
| void mouseMoveEvent | ( | QMouseEvent * | ) | [protected] |
| void mousePressEvent | ( | QMouseEvent * | ) | [protected] |
| void mouseReleaseEvent | ( | QMouseEvent * | ) | [protected] |
| void paintEvent | ( | QPaintEvent * | ) | [protected] |
| void resizeEvent | ( | QResizeEvent * | ) | [protected] |
| void setLeftSplitter | ( | DoubleReal | pos | ) | [slot] |
Sets the value of the left splitter.
| void setLegend | ( | const String & | legend | ) |
Set axis legends.
| void setLogMode | ( | bool | log_mode | ) | [slot] |
Enables/disables log mode.
| void setRightSplitter | ( | DoubleReal | pos | ) | [slot] |
Sets the value of the right splitter.
| void showContextMenu | ( | const QPoint & | pos | ) | [protected, slot] |
Context menu event.
| void showSplitters | ( | bool | on | ) | [slot] |
Shows the splitters if on is true. Hides them otherwise.
AxisWidget* bottom_axis_ [protected] |
X axis.
Math::Histogram dist_ [protected] |
The histogram to display.
DoubleReal left_splitter_ [protected] |
Value of the right splitter.
bool log_mode_ [protected] |
Flag that indicates the current mode.
UInt moving_splitter_ [protected] |
The splitter that is currently dragged (0=none, 1=left, 2=right).
DoubleReal right_splitter_ [protected] |
Value of the right splitter.
bool show_splitters_ [protected] |
Flag that indicates if splitters are shown.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1 |