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

Annotation1DDistanceItem Class Reference

An annotation item which represents a measured distance between two peaks. More...

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

Inheritance diagram for Annotation1DDistanceItem:
Annotation1DItem

List of all members.

Public Member Functions

 Annotation1DDistanceItem (const QString &text, const PointType &start_point, const PointType &end_point)
 Constructor.
 Annotation1DDistanceItem (const Annotation1DDistanceItem &rhs)
 Copy constructor.
virtual ~Annotation1DDistanceItem ()
 Destructor.
virtual void ensureWithinDataRange (Spectrum1DCanvas *const canvas)
 Ensures that the item has coordinates within the visible area of the canvas.
virtual void draw (Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false)
 Draws the item on painter.
virtual void move (const PointType &delta)
 Moves the item; behaviour depends on item type and is implemented in the subclasses.
void setStartPoint (const PointType &start)
 Sets the start point of the measured distance line.
void setEndPoint (const PointType &end)
 Sets the peak index of the end peak of the measurement.
const PointTypegetStartPoint () const
 Returns the start point as (MZ,intensity).
const PointTypegetEndPoint () const
 Returns the end point as (MZ,intensity).
void setTicks (const std::vector< DoubleReal > &ticks)
 Set tick lines for the distance item.

Protected Attributes

PointType start_point_
 The start point of the measured distance line.
PointType end_point_
 The end point of the measured distance line.
std::vector< DoubleRealticks_
 Additional tick lines for the distance item.

Detailed Description

An annotation item which represents a measured distance between two peaks.

See also:
Annotation1DItem

Constructor & Destructor Documentation

Annotation1DDistanceItem ( const QString &  text,
const PointType start_point,
const PointType end_point 
)

Constructor.

Copy constructor.

virtual ~Annotation1DDistanceItem (  )  [virtual]

Destructor.


Member Function Documentation

virtual void draw ( Spectrum1DCanvas *const   canvas,
QPainter &  painter,
bool  flipped = false 
) [virtual]

Draws the item on painter.

Implements Annotation1DItem.

virtual void ensureWithinDataRange ( Spectrum1DCanvas *const   canvas  )  [virtual]

Ensures that the item has coordinates within the visible area of the canvas.

Implements Annotation1DItem.

const PointType& getEndPoint (  )  const

Returns the end point as (MZ,intensity).

const PointType& getStartPoint (  )  const

Returns the start point as (MZ,intensity).

virtual void move ( const PointType delta  )  [virtual]

Moves the item; behaviour depends on item type and is implemented in the subclasses.

Implements Annotation1DItem.

void setEndPoint ( const PointType end  ) 

Sets the peak index of the end peak of the measurement.

void setStartPoint ( const PointType start  ) 

Sets the start point of the measured distance line.

void setTicks ( const std::vector< DoubleReal > &  ticks  ) 

Set tick lines for the distance item.


Member Data Documentation

PointType end_point_ [protected]

The end point of the measured distance line.

PointType start_point_ [protected]

The start point of the measured distance line.

std::vector<DoubleReal> ticks_ [protected]

Additional tick lines for the distance item.


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:57 using doxygen 1.7.1