#include "qtcanvas.h"
#include <QApplication>
#include <QBitmap>
#include <QDesktopWidget>
#include <QImage>
#include <QPainter>
#include <QTimer>
#include <qhash.h>
#include <qset.h>
#include <qalgorithms.h>
#include <qevent.h>
#include <qpainterpath.h>
#include <stdlib.h>
#include <QDebug>
Go to the source code of this file.
|
#define | BRESINCRPGON(d, minval, m, m1, incr1, incr2) |
|
#define | BRESINCRPGONSTRUCT(bres) BRESINCRPGON(bres.d, bres.minor, bres.m, bres.m1, bres.incr1, bres.incr2) |
|
#define | BRESINITPGON(dy, x1, x2, xStart, d, m, m1, incr1, incr2) |
|
#define | BRESINITPGONSTRUCT(dmaj, min1, min2, bres) |
|
#define | EVALUATEEDGEEVENODD(pAET, pPrevAET, y) |
|
#define | EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET) |
|
#define | MAXINT 0x7fffffff |
|
#define | MININT -MAXINT |
|
#define | NUMPTSTOBUFFER 200 |
|
#define | SLLSPERBLOCK 25 |
|
◆ BRESINCRPGON
#define BRESINCRPGON |
( |
|
d, |
|
|
|
minval, |
|
|
|
m, |
|
|
|
m1, |
|
|
|
incr1, |
|
|
|
incr2 |
|
) |
| |
Value: { \
if (m1 > 0) { \
if (d > 0) { \
minval += m1; \
d += incr1; \
} \
else { \
minval += m; \
d += incr2; \
} \
} else {\
if (d >= 0) { \
minval += m1; \
d += incr1; \
} \
else { \
minval += m; \
d += incr2; \
} \
} \
}
Definition at line 5777 of file qtcanvas.cpp.
◆ BRESINCRPGONSTRUCT
#define BRESINCRPGONSTRUCT |
( |
|
bres | ) |
BRESINCRPGON(bres.d, bres.minor, bres.m, bres.m1, bres.incr1, bres.incr2) |
◆ BRESINITPGON
#define BRESINITPGON |
( |
|
dy, |
|
|
|
x1, |
|
|
|
x2, |
|
|
|
xStart, |
|
|
|
d, |
|
|
|
m, |
|
|
|
m1, |
|
|
|
incr1, |
|
|
|
incr2 |
|
) |
| |
Value: { \
int dx; \
\
\
if ((dy) != 0) { \
xStart = (x1); \
dx = (x2) - xStart; \
if (dx < 0) { \
m = dx / (dy); \
m1 = m - 1; \
incr1 = -2 * dx + 2 * (dy) * m1; \
incr2 = -2 * dx + 2 * (dy) * m; \
d = 2 * m * (dy) - 2 * dx - 2 * (dy); \
} else { \
m = dx / (dy); \
m1 = m + 1; \
incr1 = 2 * dx - 2 * (dy) * m1; \
incr2 = 2 * dx - 2 * (dy) * m; \
d = -2 * m * (dy) + 2 * dx; \
} \
} \
}
Definition at line 5754 of file qtcanvas.cpp.
◆ BRESINITPGONSTRUCT
#define BRESINITPGONSTRUCT |
( |
|
dmaj, |
|
|
|
min1, |
|
|
|
min2, |
|
|
|
bres |
|
) |
| |
Value:
bres.m, bres.m1, bres.incr1, bres.incr2)
Definition at line 5816 of file qtcanvas.cpp.
◆ EVALUATEEDGEEVENODD
#define EVALUATEEDGEEVENODD |
( |
|
pAET, |
|
|
|
pPrevAET, |
|
|
|
y |
|
) |
| |
Value: { \
if (pAET->ymax == y) { \
pPrevAET->next = pAET->next; \
pAET = pPrevAET->next; \
if (pAET) \
pAET->back = pPrevAET; \
} \
else { \
BRESINCRPGONSTRUCT(pAET->bres) \
pPrevAET = pAET; \
pAET = pAET->next; \
} \
}
Definition at line 5906 of file qtcanvas.cpp.
◆ EVALUATEEDGEWINDING
#define EVALUATEEDGEWINDING |
( |
|
pAET, |
|
|
|
pPrevAET, |
|
|
|
y, |
|
|
|
fixWAET |
|
) |
| |
Value: { \
if (pAET->ymax == y) { \
pPrevAET->next = pAET->next; \
pAET = pPrevAET->next; \
fixWAET = 1; \
if (pAET) \
pAET->back = pPrevAET; \
} \
else { \
BRESINCRPGONSTRUCT(pAET->bres); \
pPrevAET = pAET; \
pAET = pAET->next; \
} \
}
Definition at line 5883 of file qtcanvas.cpp.
◆ MAXINT
#define MAXINT 0x7fffffff |
◆ MININT
◆ NUMPTSTOBUFFER
#define NUMPTSTOBUFFER 200 |
◆ SLLSPERBLOCK
◆ DDXPointPtr
◆ EdgeTableEntry
◆ ScanLineList
◆ ScanLineListBlock
◆ qt_testCollision()