Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

Annotation1DPeakItem Class Reference

A peak annotation item. More...

#include <OpenMS/VISUAL/ANNOTATION/Annotation1DPeakItem.h>

Inheritance diagram for Annotation1DPeakItem:
Annotation1DItem

List of all members.

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 PointTypegetPeakPosition () const
 Sets the anker position of the label (peak) (in MZ / intensity coordinates).
const PointTypegetPosition () 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.

Detailed Description

A peak annotation item.

See also:
Annotation1DItem

Constructor & Destructor Documentation

Annotation1DPeakItem ( const PointType peak_position,
const QString &  text,
const QColor &  color 
)

Constructor.

Copy constructor.

virtual ~Annotation1DPeakItem (  )  [virtual]

Destructor.


Member Function Documentation

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).


Member Data Documentation

QColor color_ [protected]

The color of the label.

The position of the anker (peak) (in MZ / intensity coordinates).

PointType position_ [protected]

The position of the label (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