|  | OpenMS
    2.6.0
    | 
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 double | 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 poson the canvas, if it exists.  More... | |
| void | deselectItemAt (const QPoint &pos) | 
| Deselects the item at poson 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... | |
| std::vector< Annotation1DItem * > | getSelectedItems () | 
| Returns 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... | |
Container for annotations to content of Spectrum1DCanvas.
| typedef std::list<Annotation1DItem *>::const_iterator ConstIterator | 
Const iterator for the 1D annotations.
| typedef double 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_.
| std::vector<Annotation1DItem*> getSelectedItems | ( | ) | 
Returns the selected items.
| 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.
 1.8.16
 1.8.16