![]() |
OpenMS
|
Container for annotations to content of Plot1DCanvas. More...
#include <OpenMS/VISUAL/ANNOTATION/Annotations1DContainer.h>
Public Types | |
| using | Base = std::list< Annotation1DItem * > |
| using | Iterator = Base::iterator |
| Iterator for the 1D annotations. More... | |
| using | ConstIterator = std::list< Annotation1DItem * >::const_iterator |
| Const iterator for the 1D annotations. More... | |
| using | PointType = DPosition< 2 > |
| Type of the Points. More... | |
| using | CoordinateType = double |
| 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) const |
Selects the item at pos on the canvas, if it exists. More... | |
| void | deselectItemAt (const QPoint &pos) const |
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... | |
| 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... | |
Protected Member Functions | |
| void | deleteAllItems_ () const |
| call delete on all pointers in the container, without modifying the container More... | |
Protected 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 Plot1DCanvas.
| using Base = std::list<Annotation1DItem *> |
| using ConstIterator = std::list<Annotation1DItem *>::const_iterator |
Const iterator for the 1D annotations.
| using CoordinateType = double |
Coordinate type.
Default constructor.
| Annotations1DContainer | ( | const Annotations1DContainer & | rhs | ) |
Copy constructor.
|
virtual |
Destructor.
|
protected |
call delete on all pointers in the container, without modifying the container
| void deselectAll | ( | ) |
Deselects all items.
| void deselectItemAt | ( | const QPoint & | pos | ) | const |
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 @p 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 | ) | const |
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_.
|
protected |
The pen used to draw items.
|
protected |
The pen used to draw selected items.