Seamly2D
Code documentation
VObjEngine Class Reference

#include <vobjengine.h>

Inheritance diagram for VObjEngine:
Collaboration diagram for VObjEngine:

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
 

Detailed Description

Definition at line 70 of file vobjengine.h.

Constructor & Destructor Documentation

◆ VObjEngine()

VObjEngine::VObjEngine ( )

Definition at line 101 of file vobjengine.cpp.

References MAX_POINTS, points, del_point2d_t::x, and del_point2d_t::y.

◆ ~VObjEngine()

VObjEngine::~VObjEngine ( )
virtual

Definition at line 123 of file vobjengine.cpp.

Member Function Documentation

◆ begin()

bool VObjEngine::begin ( QPaintDevice *  pdev)
virtual

Definition at line 128 of file vobjengine.cpp.

References outputDevice, size, and stream.

◆ drawPath()

void VObjEngine::drawPath ( const QPainterPath &  path)
virtual

◆ drawPixmap()

void VObjEngine::drawPixmap ( const QRectF &  r,
const QPixmap &  pm,
const QRectF &  sr 
)
virtual

Definition at line 307 of file vobjengine.cpp.

◆ drawPoints() [1/2]

void VObjEngine::drawPoints ( const QPoint *  points,
int  pointCount 
)
virtual

Definition at line 300 of file vobjengine.cpp.

References points.

◆ drawPoints() [2/2]

void VObjEngine::drawPoints ( const QPointF *  points,
int  pointCount 
)
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().

◆ drawPolygon() [1/2]

virtual void VObjEngine::drawPolygon ( const QPoint *  points,
int  pointCount,
PolygonDrawMode  mode 
)
virtual

◆ drawPolygon() [2/2]

void VObjEngine::drawPolygon ( const QPointF *  points,
int  pointCount,
PolygonDrawMode  mode 
)
virtual

Definition at line 259 of file vobjengine.cpp.

References drawPoints(), globalPointsCount, points, and stream.

Referenced by drawPath().

◆ end()

bool VObjEngine::end ( )
virtual

Definition at line 165 of file vobjengine.cpp.

References stream.

◆ getOutputDevice()

QIODevice * VObjEngine::getOutputDevice ( ) const

Definition at line 328 of file vobjengine.cpp.

References outputDevice.

◆ getResolution()

int VObjEngine::getResolution ( ) const

Definition at line 341 of file vobjengine.cpp.

References resolution.

◆ getSize()

QSize VObjEngine::getSize ( ) const

Definition at line 315 of file vobjengine.cpp.

References size.

◆ MakePointsUnique()

QPolygonF VObjEngine::MakePointsUnique ( const QPolygonF &  polygon) const
private

Definition at line 354 of file vobjengine.cpp.

Referenced by drawPath().

◆ setOutputDevice()

void VObjEngine::setOutputDevice ( QIODevice *  value)

Definition at line 334 of file vobjengine.cpp.

References outputDevice.

◆ setResolution()

void VObjEngine::setResolution ( int  value)

Definition at line 347 of file vobjengine.cpp.

References resolution.

◆ setSize()

void VObjEngine::setSize ( const QSize &  value)

Definition at line 321 of file vobjengine.cpp.

References size.

◆ Square()

qint64 VObjEngine::Square ( const QPolygonF &  poly) const
private

Definition at line 370 of file vobjengine.cpp.

Referenced by drawPath().

◆ type()

QPaintEngine::Type VObjEngine::type ( ) const
virtual

Definition at line 280 of file vobjengine.cpp.

◆ updateState()

void VObjEngine::updateState ( const QPaintEngineState &  state)
virtual

Definition at line 173 of file vobjengine.cpp.

References transform.

Member Data Documentation

◆ globalPointsCount

quint32 VObjEngine::globalPointsCount
private

Definition at line 99 of file vobjengine.h.

Referenced by drawPoints(), and drawPolygon().

◆ outputDevice

QSharedPointer<QIODevice> VObjEngine::outputDevice
private

Definition at line 100 of file vobjengine.h.

Referenced by begin(), getOutputDevice(), and setOutputDevice().

◆ planeCount

quint32 VObjEngine::planeCount
private

Definition at line 102 of file vobjengine.h.

Referenced by drawPath().

◆ points

del_point2d_t VObjEngine::points[512]
private

Definition at line 101 of file vobjengine.h.

Referenced by drawPath(), drawPoints(), drawPolygon(), and VObjEngine().

◆ resolution

int VObjEngine::resolution
private

Definition at line 104 of file vobjengine.h.

Referenced by getResolution(), and setResolution().

◆ size

QSize VObjEngine::size
private

Definition at line 103 of file vobjengine.h.

Referenced by begin(), drawPoints(), getSize(), and setSize().

◆ stream

QSharedPointer<QTextStream> VObjEngine::stream
private

Definition at line 98 of file vobjengine.h.

Referenced by begin(), drawPath(), drawPoints(), drawPolygon(), and end().

◆ transform

QTransform VObjEngine::transform
private

Definition at line 105 of file vobjengine.h.

Referenced by drawPath(), and updateState().


The documentation for this class was generated from the following files: