47 #ifndef _MIRA_POLYGONTOOL2D_H_ 48 #define _MIRA_POLYGONTOOL2D_H_ 52 #include <QGraphicsPolygonItem> 62 PathPointItem(qreal radius = 2.0, QGraphicsItem* parent = NULL);
68 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*);
79 (
"Category",
"Interact")
80 (
"Description",
"Define a polygon in the 2D view")
88 template<
typename Reflector>
void reflect(Reflector& r) {
96 void setPen(QPen pen);
97 void setBrush(QBrush brush);
100 virtual void onMousePressed(QMouseEvent* e);
101 virtual void onMouseReleased(QMouseEvent* e);
103 virtual void activate();
104 virtual void deactivate();
105 virtual void reset();
107 virtual QIcon getIcon();
111 virtual QGraphicsItem* setupScene(QGraphicsScene* mgr);
118 void updatePenAndBrush();
virtual QRectF boundingRect() const
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
#define MIRA_REFLECT_BASE(reflector, BaseClass)
Macro that can be used to reflect the base class easily.
Definition: ReflectorInterface.h:912
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
The primary interface between a Visualization and the container of the visualization (e...
Definition: Visualization.h:65
#define MIRA_META_OBJECT(classIdentifier, MetaInfo)
Use this MACRO instead of MIRA_OBJECT if you like to add meta information to your class...
Definition: FactoryMacros.h:204
void reflect(Reflector &r, LogRecord &record)
Non-intrusive reflector for LogRecord.
Definition: LoggingCore.h:137
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
Simple Wrapper for Boost::geometry polygon.
PathPointItem(qreal radius=2.0, QGraphicsItem *parent=NULL)
const qreal RADIUS
Definition: PolygonTool2D.h:70
boost::geometry::model::ring< Point2f > Polygon2f
A 2D polygon with 32 bit floating precision.
Definition: Polygon.h:131
Definition: PolygonTool2D.h:59