A peak annotation item. More...
#include <OpenMS/VISUAL/ANNOTATION/Annotation1DPeakItem.h>
Public Member Functions | |
| Annotation1DPeakItem (const PointType &peak_position, const QString &text, const QColor &color) | |
| Constructor. | |
| Annotation1DPeakItem (const Annotation1DPeakItem &rhs) | |
| Copy constructor. | |
| virtual | ~Annotation1DPeakItem () |
| Destructor. | |
| virtual void | ensureWithinDataRange (Spectrum1DCanvas *const canvas) |
| Docu in base class. | |
| virtual void | draw (Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false) |
| Docu in base class. | |
| virtual void | move (const PointType &) |
| Docu in base class. | |
| void | setPosition (const PointType &position) |
| Sets the position of the label (in MZ / intensity coordinates). | |
| const PointType & | getPeakPosition () const |
| Sets the anker position of the label (peak) (in MZ / intensity coordinates). | |
| const PointType & | getPosition () const |
| Returns the position of the peak (in MZ / intensity coordinates). | |
| void | setColor (const QColor &color) |
| Set the color of the label. | |
| const QColor & | getColor () const |
| Returns the color of the label. | |
Protected Attributes | |
| PointType | peak_position_ |
| The position of the anker (peak) (in MZ / intensity coordinates). | |
| PointType | position_ |
| The position of the label (in MZ / intensity coordinates). | |
| QColor | color_ |
| The color of the label. | |
A peak annotation item.
| Annotation1DPeakItem | ( | const PointType & | peak_position, | |
| const QString & | text, | |||
| const QColor & | color | |||
| ) |
Constructor.
| Annotation1DPeakItem | ( | const Annotation1DPeakItem & | rhs | ) |
Copy constructor.
| virtual ~Annotation1DPeakItem | ( | ) | [virtual] |
Destructor.
| virtual void draw | ( | Spectrum1DCanvas *const | canvas, | |
| QPainter & | painter, | |||
| bool | flipped = false | |||
| ) | [virtual] |
Docu in base class.
Implements Annotation1DItem.
| virtual void ensureWithinDataRange | ( | Spectrum1DCanvas *const | canvas | ) | [virtual] |
Docu in base class.
Implements Annotation1DItem.
| const QColor& getColor | ( | ) | const |
Returns the color of the label.
| const PointType& getPeakPosition | ( | ) | const |
Sets the anker position of the label (peak) (in MZ / intensity coordinates).
| const PointType& getPosition | ( | ) | const |
Returns the position of the peak (in MZ / intensity coordinates).
| virtual void move | ( | const PointType & | ) | [virtual] |
Docu in base class.
Implements Annotation1DItem.
| void setColor | ( | const QColor & | color | ) |
Set the color of the label.
| void setPosition | ( | const PointType & | position | ) |
Sets the position of the label (in MZ / intensity coordinates).
QColor color_ [protected] |
The color of the label.
PointType peak_position_ [protected] |
The position of the anker (peak) (in MZ / intensity coordinates).
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:57 using doxygen 1.7.1 |