14#include <QtGui/qpen.h>
15#include <QtGui/qbrush.h>
35 virtual QSizeF getPreferredGraphicsItemSize(
void)
const override;
40 virtual void paintCustomItem(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect)
override;
43 void paintTriangle(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect,
const GraphicsTriangleItemCfg* _triangleConfig);
44 void paintKite(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect,
const GraphicsTriangleItemCfg* _triangleConfig);
45 void paintIceCone(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect,
const GraphicsTriangleItemCfg* _triangleConfig);
53 void setTriangleSize(
const Size2DD& _size);
54 void setTriangleSize(
const QSizeF& _size);
55 const Size2DD& getTriangleSize(
void)
const;
62 void setOutline(
const OutlineF& _outline);
63 const OutlineF& getOutline(
void)
const;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition CustomGraphicsItem.h:17
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
Definition GraphicsTriangleItemCfg.h:20
TriangleShape
Definition GraphicsTriangleItemCfg.h:30
TriangleDirection
Definition GraphicsTriangleItemCfg.h:23
Definition GraphicsTriangleItem.h:19
The OutlineF class is used to describe how a outline should look like.
Definition Outline.h:161
Definition Painter2D.h:17
2D Size with double values
Definition Size2D.h:115