#include <vobjengine.h>
Public Member Functions | |
VObjEngine () | |
virtual | ~VObjEngine () Q_DECL_OVERRIDE |
virtual bool | begin (QPaintDevice *pdev) Q_DECL_OVERRIDE |
virtual bool | end () Q_DECL_OVERRIDE |
virtual void | updateState (const QPaintEngineState &state) Q_DECL_OVERRIDE |
virtual void | drawPath (const QPainterPath &path) Q_DECL_OVERRIDE |
virtual Type | type () const Q_DECL_OVERRIDE |
virtual void | drawPoints (const QPointF *points, int pointCount) Q_DECL_OVERRIDE |
virtual void | drawPoints (const QPoint *points, int pointCount) Q_DECL_OVERRIDE |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE |
virtual void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE |
QSize | getSize () const |
void | setSize (const QSize &value) |
QIODevice * | getOutputDevice () const |
void | setOutputDevice (QIODevice *value) |
int | getResolution () const |
void | setResolution (int value) |
Private Member Functions | |
QPolygonF | MakePointsUnique (const QPolygonF &polygon) const |
qint64 | Square (const QPolygonF &poly) const |
Private Attributes | |
QSharedPointer< QTextStream > | stream |
quint32 | globalPointsCount |
QSharedPointer< QIODevice > | outputDevice |
del_point2d_t | points [512] |
quint32 | planeCount |
QSize | size |
int | resolution |
QTransform | transform |
Definition at line 70 of file vobjengine.h.
VObjEngine::VObjEngine | ( | ) |
Definition at line 101 of file vobjengine.cpp.
References MAX_POINTS, points, del_point2d_t::x, and del_point2d_t::y.
|
virtual |
Definition at line 123 of file vobjengine.cpp.
|
virtual |
Definition at line 128 of file vobjengine.cpp.
References outputDevice, size, and stream.
|
virtual |
Definition at line 188 of file vobjengine.cpp.
References delaunay2d_from(), delaunay2d_release(), drawPolygon(), delaunay2d_t::faces, MakePointsUnique(), MAX_POINTS, delaunay2d_t::num_faces, planeCount, points, Square(), stream, transform, del_point2d_t::x, and del_point2d_t::y.
|
virtual |
Definition at line 307 of file vobjengine.cpp.
|
virtual |
Definition at line 300 of file vobjengine.cpp.
References points.
|
virtual |
Definition at line 286 of file vobjengine.cpp.
References globalPointsCount, points, size, stream, del_point2d_t::x, and del_point2d_t::y.
Referenced by drawPolygon().
|
virtual |
|
virtual |
Definition at line 259 of file vobjengine.cpp.
References drawPoints(), globalPointsCount, points, and stream.
Referenced by drawPath().
|
virtual |
Definition at line 165 of file vobjengine.cpp.
References stream.
QIODevice * VObjEngine::getOutputDevice | ( | ) | const |
Definition at line 328 of file vobjengine.cpp.
References outputDevice.
int VObjEngine::getResolution | ( | ) | const |
Definition at line 341 of file vobjengine.cpp.
References resolution.
QSize VObjEngine::getSize | ( | ) | const |
Definition at line 315 of file vobjengine.cpp.
References size.
|
private |
Definition at line 354 of file vobjengine.cpp.
Referenced by drawPath().
void VObjEngine::setOutputDevice | ( | QIODevice * | value | ) |
Definition at line 334 of file vobjengine.cpp.
References outputDevice.
void VObjEngine::setResolution | ( | int | value | ) |
Definition at line 347 of file vobjengine.cpp.
References resolution.
void VObjEngine::setSize | ( | const QSize & | value | ) |
Definition at line 321 of file vobjengine.cpp.
References size.
|
private |
Definition at line 370 of file vobjengine.cpp.
Referenced by drawPath().
|
virtual |
Definition at line 280 of file vobjengine.cpp.
|
virtual |
Definition at line 173 of file vobjengine.cpp.
References transform.
|
private |
Definition at line 99 of file vobjengine.h.
Referenced by drawPoints(), and drawPolygon().
|
private |
Definition at line 100 of file vobjengine.h.
Referenced by begin(), getOutputDevice(), and setOutputDevice().
|
private |
Definition at line 102 of file vobjengine.h.
Referenced by drawPath().
|
private |
Definition at line 101 of file vobjengine.h.
Referenced by drawPath(), drawPoints(), drawPolygon(), and VObjEngine().
|
private |
Definition at line 104 of file vobjengine.h.
Referenced by getResolution(), and setResolution().
|
private |
Definition at line 103 of file vobjengine.h.
Referenced by begin(), drawPoints(), getSize(), and setSize().
|
private |
Definition at line 98 of file vobjengine.h.
Referenced by begin(), drawPath(), drawPoints(), drawPolygon(), and end().
|
private |
Definition at line 105 of file vobjengine.h.
Referenced by drawPath(), and updateState().