8 #include <QtGui/QColor> 9 #include <QtGui/QPainter> 10 #include <QtOpenGL/QGLWidget> 55 virtual void draw(QPainter* painter,QRectF &source,QRectF &target) = 0;
62 virtual void renderOnGl(QGLWidget &widget,QRectF &source,QRectF &target){};
void addPenStyle(QPainter *painter)
DrawItem(int posX, int posY, int groupNr, const QColor &color)
bool operator==(const DrawItem &other)
void setGroupNr(int groupNr)
virtual void draw(QPainter *painter, QRectF &source, QRectF &target)=0
Qt::PenCapStyle penCapStyle
Qt::PenStyle getPenStyle()
virtual void renderOnGl(QGLWidget &widget, QRectF &source, QRectF &target)
void setColor(const QColor &color)
virtual DrawType getType()=0
void setPosFactor(float fx, float fy)
void setPenStyle(Qt::PenStyle penStyle)
void setLineWidth(int lineWidth)
Qt::PenCapStyle getPenCapStyle()
void setPenCapStyle(Qt::PenCapStyle penCapStyle)