27 #ifndef PLOTMSANNOTATOR_H_
28 #define PLOTMSANNOTATOR_H_
118 const QMap<PlotMSAction::Type, QAction*>& actionMap,
154 QMultiMap<PlotCanvas*, PlotShapeRectanglePtr>
itsARect_;
void attach(PlotCanvas *canvas)
Overrides PlotTool::attach().
~PlotMSAnnotator()
Destructor.
QMultiMap< PlotCanvas *, PlotShapeRectanglePtr > itsARect_
Rectangle annotations.
PlotAreaFillPtr itsTextFill_
void setTextOutline(const PlotLinePtr outline)
PlotFontPtr textFont() const
Gets/Sets the current text properties (null means default for PlotAnnotation object).
Subclass of PlotMouseTool for drawing/managing annotations on the plot canvases of PlotMSApp...
void plotsChanged(const PlotMSPlotManager &manager)
Implements PlotMSPlotManagerWatcher::plotChanged().
void handleMouseEvent(const PlotEvent &event)
Implements PlotMouseTool::handleMouseEvent().
void setRectangleAreaFill(const PlotAreaFillPtr fill)
void setRectangleLine(const PlotLinePtr line)
PlotMSPlotter * guiParent
PlotFontPtr itsTextFont_
Current text properties.
PlotLinePtr rectangleLine() const
Gets/Sets the current rectangle properties (null means default for PlotShapeRectangle object)...
PlotFactoryPtr itsFactory_
Parent.
void setActive(bool isActive=true)
Overrides PlotTool::setActive().
PlotMSAnnotator(PlotMSPlotter *parent, Mode startingMode=TEXT)
Non-Static //.
void setDefaults()
Sets properties to their defaults.
QAction * itsAnnotateAction_
Actions to keep updated.
QMultiMap< PlotCanvas *, PlotAnnotationPtr > itsAText_
Text annotations.
void setTextFont(const PlotFontPtr font)
Interface for any class that wants to be notified when the plots in the manager have changed...
QMap< Mode, QAction * > itsModeActions_
PlotLinePtr textOutline() const
void setDrawingMode(Mode mode)
PlotLinePtr itsRectLine_
Current rectangle properties.
PlotCanvas is an area for different PlotItems to be attached and drawn.
PlotAreaFillPtr itsRectFill_
Mode drawingMode() const
Gets/Sets the current drawing mode.
void setActions(QAction *annotateAction, const QMap< PlotMSAction::Type, QAction * > &actionMap, PlotFactoryPtr factory)
Sets the annotate and mode actions and the factory to the given.
void clearRectangles(PlotCanvas *canvas=NULL)
PlotAreaFillPtr textBackground() const
High(ish)-level plotter class that manages the GUI (semi-) transparently to the rest of PlotMS...
void setTextBackground(const PlotAreaFillPtr background)
Class which manages PlotMSPlots for plotms.
PlotLinePtr itsTextOutline_
void detach()
Overrides PlotTool::detach().
Mode itsMode_
Current drawing mode.
void clearAll(PlotCanvas *canvas=NULL)
PlotAreaFillPtr rectangleAreaFill() const
void clearText(PlotCanvas *canvas=NULL)
Clears all text/rectangle annotations off the given canvas.