48 #ifndef _MIRA_POINTVECTOROBJECT_H_ 49 #define _MIRA_POINTVECTOROBJECT_H_ 53 #include <QAbstractGraphicsShapeItem> 66 template <
typename Po
intType>
74 void setData(
const std::vector<PointType>& data);
77 void setData(
const std::vector<std::pair<PointType, QColor>>& data);
79 void setWidth(qreal width);
80 void setColor(
const QColor& color);
85 QRectF boundingRect()
const;
88 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget = NULL);
91 void addPoint(qreal x, qreal y, QColor color = QColor::Invalid);
QRectF mBoundingRect
Definition: PointVectorObject.h:97
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Definition: PointVectorObject.h:67
QVector< ColouredPoint > mData
Definition: PointVectorObject.h:96
Class for 2D, 3D and N-dimensional points.
qreal mWidth
Definition: PointVectorObject.h:100
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
FrameworkVis export macro declaration.
QColor mColor
Definition: PointVectorObject.h:101
QRectF mBoundingRectAdjusted
Definition: PointVectorObject.h:98
QPair< QPointF, QColor > ColouredPoint
Definition: PointVectorObject.h:94