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. More... | |
| Annotation1DPeakItem (const Annotation1DPeakItem &rhs) | |
| Copy constructor. More... | |
| virtual | ~Annotation1DPeakItem () |
| Destructor. More... | |
| virtual void | ensureWithinDataRange (Spectrum1DCanvas *const canvas) |
| Docu in base class. More... | |
| virtual void | draw (Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false) |
| Docu in base class. More... | |
| virtual void | move (const PointType &) |
| Docu in base class. More... | |
| void | setPosition (const PointType &position) |
| Sets the position of the label (in MZ / intensity coordinates) More... | |
| const PointType & | getPeakPosition () const |
| Sets the anker position of the label (peak) (in MZ / intensity coordinates) More... | |
| const PointType & | getPosition () const |
| Returns the position of the peak (in MZ / intensity coordinates) More... | |
| void | setColor (const QColor &color) |
| Set the color of the label. More... | |
| const QColor & | getColor () const |
| Returns the color of the label. More... | |
Public Member Functions inherited from Annotation1DItem | |
| virtual | ~Annotation1DItem () |
| Destructor. More... | |
| const QRectF & | boundingBox () const |
| Returns the current bounding box of this item on the canvas where it has last been drawn. More... | |
| bool | isSelected () const |
| Returns true if this item is currently selected on the canvas, else false. More... | |
| void | setSelected (bool selected) |
| Sets whether this item is currently selected on the canvas or not. More... | |
| void | setText (const QString &text) |
| Sets the text of the item. More... | |
| const QString & | getText () const |
| Returns the text of the item. More... | |
| virtual void | move (const PointType &delta)=0 |
| Moves the item; behaviour depends on item type and is implemented in the subclasses. More... | |
Protected Attributes | |
| PointType | peak_position_ |
| The position of the anker (peak) (in MZ / intensity coordinates) More... | |
| PointType | position_ |
| The position of the label (in MZ / intensity coordinates) More... | |
| QColor | color_ |
| The color of the label. More... | |
Protected Attributes inherited from Annotation1DItem | |
| QRectF | bounding_box_ |
| The current bounding box of this item on the canvas where it has last been drawn. More... | |
| bool | selected_ |
| Determines whether this item is currently selected on the canvas. More... | |
| QString | text_ |
| The displayed text. More... | |
Additional Inherited Members | |
Public Types inherited from Annotation1DItem | |
| typedef DPosition< 2 > | PointType |
| Type of the Points. More... | |
| typedef Real | IntensityType |
| Intensity type. More... | |
| typedef DoubleReal | CoordinateType |
| Coordinate type. More... | |
Protected Member Functions inherited from Annotation1DItem | |
| Annotation1DItem (const QString &text) | |
| Constructor. More... | |
| Annotation1DItem (const Annotation1DItem &rhs) | |
| Copy constructor. More... | |
| void | drawBoundingBox_ (QPainter &painter) |
| Draws the bounding_box_. More... | |
A peak annotation item.
| Annotation1DPeakItem | ( | const PointType & | peak_position, |
| const QString & | text, | ||
| const QColor & | color | ||
| ) |
Constructor.
| Annotation1DPeakItem | ( | const Annotation1DPeakItem & | rhs | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Docu in base class.
Implements Annotation1DItem.
|
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 |
Docu in base class.
| 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)
|
protected |
The color of the label.
|
protected |
The position of the anker (peak) (in MZ / intensity coordinates)
|
protected |
The position of the label (in MZ / intensity coordinates)
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:35 using doxygen 1.8.5 |