24 #ifndef GRAPHICSVIEWADAPTER_H
25 #define GRAPHICSVIEWADAPTER_H
30 #include "../drawers/graphicsitem.h"
115 virtual void clear();
141 double x2,
double y2,
205 #endif // GRAPHICSVIEWADAPTER_H
GraphicsItem * getGraphicItem(int keyIndex, RoleType role)
Get a single graphics element specified by its index and its role.
virtual GraphicsItem * drawChart(const std::vector< Point > &points, PenType pen=PEN_THIN_BLACK)=0
Abstract function: Draw a chart (polygon).
std::uint32_t RoleType
Type of a user role that can be set in a GraphicsItem (bitwise flag).
GraphicsItem::RoleType RoleType
Structure holding the coordinates of a single point.
virtual void drawStroboscope(const ComplexVector &data)=0
std::list< GraphicsItem * > GraphicItemsList
A list of GraphicItem (global)
FillTypes
Available filling colors (e.g. to fill rectangles)
virtual GraphicsItem * drawFilledRect(double x, double y, double w, double h, PenType pen=PEN_THIN_BLACK, FillTypes fill=FILL_RED)=0
Abstract function: Draw a filled rectangle.
GraphicItemsList mGraphicItems
List of all graphic items in the view.
double x
Real-valued x coordinate between 0 and 1.
GraphicItemsList getGraphicItemsByRole(RoleType role)
Get a list of graphic items that match with the given role.
GraphicItemsList & getGraphicItems()
Get the list of the graphic items.
std::vector< std::complex< double >> ComplexVector
Abstract function: Draw stroboscope.
~GraphicsViewAdapter()
Destructor clearing the view.
PenType
Available pen types for drawing.
Abstract base class for implementations rendering graphics.
Class for a single item in a graphics view.
double y
Real-valued y coordinate between 0 and 1.
virtual GraphicsItem * drawLine(double x1, double y1, double x2, double y2, PenType pen=PEN_THIN_BLACK)=0
Abstract function: Draw a line.
GraphicsItem * getGraphicItemByRole(RoleType role)
Get the first of all graphics elements with a given role.
GraphicsViewAdapter()
Empty constructor.
GraphicsItem::RoleType RoleType
virtual void clear()
Clear the graphics panel.