Container for annotations to content of Spectrum1DCanvas. More...
#include <OpenMS/VISUAL/ANNOTATION/Annotations1DContainer.h>
Public Types | |
| typedef std::list < Annotation1DItem * > ::iterator | Iterator |
| Iterator for the 1D annotations. More... | |
| typedef std::list < Annotation1DItem * > ::const_iterator | ConstIterator |
| Const iterator for the 1D annotations. More... | |
| typedef DPosition< 2 > | PointType |
| Type of the Points. More... | |
| typedef DoubleReal | CoordinateType |
| Coordinate type. More... | |
Public Member Functions | |
| Annotations1DContainer () | |
| Default constructor. More... | |
| Annotations1DContainer (const Annotations1DContainer &rhs) | |
| Copy constructor. More... | |
| Annotations1DContainer & | operator= (const Annotations1DContainer &rhs) |
| Assignment operator. More... | |
| virtual | ~Annotations1DContainer () |
| Destructor. More... | |
| Annotation1DItem * | getItemAt (const QPoint &pos) const |
Returns a pointer to the item at pos, or 0, if not existent. More... | |
| void | selectItemAt (const QPoint &pos) |
Selects the item at pos on the canvas, if it exists. More... | |
| void | deselectItemAt (const QPoint &pos) |
Deselects the item at pos on the canvas, if it exists. More... | |
| void | selectAll () |
| Selects all items. More... | |
| void | deselectAll () |
| Deselects all items. More... | |
| void | removeSelectedItems () |
| Removes the selected items. More... | |
| void | setPen (const QPen &pen) |
| Sets the pen_. More... | |
| const QPen & | getPen () const |
| Returns the pen_. More... | |
| void | setSelectedPen (const QPen &pen) |
| Sets the selected_pen_. More... | |
| const QPen & | getSelectedPen () const |
| Returns the selected_pen_. More... | |
Public Attributes | |
| QPen | pen_ |
| The pen used to draw items. More... | |
| QPen | selected_pen_ |
| The pen used to draw selected items. More... | |
Public Attributes inherited from list< T > | |
| T | elements |
| STL member. More... | |
Container for annotations to content of Spectrum1DCanvas.
| typedef std::list<Annotation1DItem *>::const_iterator ConstIterator |
Const iterator for the 1D annotations.
| typedef DoubleReal CoordinateType |
Coordinate type.
| typedef std::list<Annotation1DItem *>::iterator Iterator |
Iterator for the 1D annotations.
Default constructor.
| Annotations1DContainer | ( | const Annotations1DContainer & | rhs | ) |
Copy constructor.
|
virtual |
Destructor.
| void deselectAll | ( | ) |
Deselects all items.
| void deselectItemAt | ( | const QPoint & | pos | ) |
Deselects the item at pos on the canvas, if it exists.
| Annotation1DItem* getItemAt | ( | const QPoint & | pos | ) | const |
Returns a pointer to the item at pos, or 0, if not existent.
If more than one item's bounding box encloses pos , the one in the foreground is returned.
| const QPen& getPen | ( | ) | const |
Returns the pen_.
| const QPen& getSelectedPen | ( | ) | const |
Returns the selected_pen_.
| Annotations1DContainer& operator= | ( | const Annotations1DContainer & | rhs | ) |
Assignment operator.
| void removeSelectedItems | ( | ) |
Removes the selected items.
| void selectAll | ( | ) |
Selects all items.
| void selectItemAt | ( | const QPoint & | pos | ) |
Selects the item at pos on the canvas, if it exists.
| void setPen | ( | const QPen & | pen | ) |
Sets the pen_.
| void setSelectedPen | ( | const QPen & | pen | ) |
Sets the selected_pen_.
| QPen pen_ |
The pen used to draw items.
| QPen selected_pen_ |
The pen used to draw selected items.
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:35 using doxygen 1.8.5 |