|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
43 #include <QtGui/qpixmap.h>
44 #include <QtGui/qbrush.h>
45 #include <QtGui/qpen.h>
46 #include <QtGui/qpolygon.h>
47 #include <QtGui/qscrollarea.h>
82 virtual void moveBy(
double dx,
double dy);
83 void move(
double x,
double y);
106 virtual void advance(
int stage);
114 virtual void draw(QPainter&) = 0;
160 virtual int rtti()
const;
186 virtual QPolygon
chunks()
const;
218 QtCanvas(QPixmap p,
int h,
int v,
int tilewidth,
int tileheight);
222 virtual void setTiles(QPixmap tiles,
int h,
int v,
223 int tilewidth,
int tileheight);
230 virtual void setTile(
int x,
int y,
int tilenum);
301 void drawArea(
const QRect&, QPainter* p,
bool double_buffer =
false);
307 void drawCanvasArea(
const QRect&, QPainter* p = 0,
bool double_buffer =
true);
331 void init(
int w,
int h,
int chunksze = 16,
int maxclust = 100);
346 void initTiles(QPixmap p,
int h,
int v,
int tilewidth,
int tileheight);
391 virtual void drawContents(QPainter* p,
int cx,
int cy,
int cw,
int ch);
420 #ifndef QT_NO_IMAGEIO
441 void init(
const QImage&);
442 void init(
const QPixmap& pixmap,
int hx,
int hy);
457 #ifndef QT_NO_IMAGEIO
463 #ifndef QT_NO_IMAGEIO
483 #ifndef QT_NO_IMAGEIO
501 void move(
double x,
double y);
542 virtual void advance(
int stage);
545 void draw(QPainter& painter);
579 virtual void setPen(QPen p);
597 void draw(QPainter&);
641 return QRect(
int(
x()),
int(
y()),
w,
h);
670 void moveBy(
double dx,
double dy);
709 return QPoint(
x1,
y1);
712 return QPoint(
x2,
y2);
719 void moveBy(
double dx,
double dy);
771 class QtCanvasTextExtra;
784 QString
text()
const;
786 QColor
color()
const;
788 void moveBy(
double dx,
double dy);
803 virtual void draw(QPainter&);
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4634
Definition: canvas_typed/qtcanvas.cpp:5759
void init(int w, int h, int chunksze=16, int maxclust=100)
Definition: canvas_typed/qtcanvas.cpp:498
Definition: canvas_typed/qtcanvas.cpp:5088
void add(QtCanvasItem *item)
Definition: canvas_typed/qtcanvas.cpp:298
QColor backgroundColor() const
Definition: canvas_typed/qtcanvas.cpp:1252
Definition: canvas_typed/qtcanvas.h:702
friend void qt_unview(QtCanvas *c)
bool isVisible() const
Definition: canvas_typed/qtcanvas.h:120
#define SLLSPERBLOCK
Definition: canvas_variant/qtcanvas.cpp:5117
virtual void contentsMousePressEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3168
static bool collision_double_dispatch(const QtCanvasSprite *s1, const QtCanvasPolygonalItem *p1, const QtCanvasRectangle *r1, const QtCanvasEllipse *e1, const QtCanvasText *t1, const QtCanvasSprite *s2, const QtCanvasPolygonalItem *p2, const QtCanvasRectangle *r2, const QtCanvasEllipse *e2, const QtCanvasText *t2)
Definition: canvas_variant/qtcanvas.cpp:2053
struct _EdgeTableEntry * back
Definition: canvas_typed/qtcanvas.cpp:5092
int x
Definition: canvas_typed/qtcanvas.cpp:5338
static void miFreeStorage(ScanLineListBlock *pSLLBlock)
Definition: canvas_typed/qtcanvas.cpp:5347
void setX(double a)
Definition: canvas_typed/qtcanvas.h:84
bool debug_redraw_areas
Definition: canvas_typed/qtcanvas.h:356
QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:3621
int textFlags() const
Definition: canvas_typed/qtcanvas.h:790
int tileWidth() const
Definition: canvas_typed/qtcanvas.h:242
int width() const
Definition: canvas_typed/qtcanvas.cpp:4262
int height() const
Definition: canvas_typed/qtcanvas.cpp:4269
int framecount
Definition: canvas_typed/qtcanvas.h:488
void processSpans(int n, QPoint *point, int *width)
Definition: canvas_typed/qtcanvas.cpp:5765
QTimer * update_timer
Definition: canvas_typed/qtcanvas.h:354
bool cl
Definition: canvas_typed/qtcanvas.h:698
Definition: canvas_typed/qtcanvas.h:418
bool onCanvas(int x, int y) const
Definition: canvas_typed/qtcanvas.h:262
void add(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:131
ushort vtiles
Definition: canvas_typed/qtcanvas.h:349
#define EVALUATEEDGEEVENODD(pAET, pPrevAET, y)
Definition: canvas_variant/qtcanvas.cpp:5166
@ Top
Definition: canvas_typed/qtcanvas.cpp:4886
bool validChunk(int x, int y) const
Definition: canvas_typed/qtcanvas.h:268
static const QPen & defaultPolygonPen()
Definition: canvas_variant/qtcanvas.cpp:3375
void move(double x, double y)
Definition: canvas_typed/qtcanvas.cpp:4850
static void micomputeWAET(EdgeTableEntry *AET)
Definition: canvas_typed/qtcanvas.cpp:5490
int h
Definition: canvas_typed/qtcanvas.h:766
virtual void advance(int stage)
Definition: canvas_typed/qtcanvas.cpp:4803
void remove(QtCanvasItem *item)
Definition: canvas_typed/qtcanvas.cpp:303
struct DDXPointRec * DDXPointPtr
virtual void setActive(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1943
uint anim_state
Definition: canvas_typed/qtcanvas.h:556
virtual void setChanged(const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:986
virtual QPolygon areaPointsAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:3460
int width() const
Definition: canvas_typed/qtcanvas.h:250
friend class QtCanvasLine
Definition: canvas_typed/qtcanvas.h:184
void hide()
Definition: canvas_typed/qtcanvas.cpp:1821
int frm
Definition: canvas_typed/qtcanvas.h:554
void show()
Definition: canvas_typed/qtcanvas.cpp:1816
static void miloadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
Definition: canvas_variant/qtcanvas.cpp:5445
QBrush br
Definition: canvas_typed/qtcanvas.h:619
int ClockWise
Definition: canvas_typed/qtcanvas.cpp:5094
virtual void contentsDragMoveEvent(QDragMoveEvent *)
Definition: canvas_typed/qtcanvas.cpp:3187
int chheight
Definition: canvas_typed/qtcanvas.h:341
bool isSelected() const
Definition: canvas_typed/qtcanvas.h:124
QtCanvas * cnv
Definition: canvas_typed/qtcanvas.h:197
QPolygonalProcessor(QtCanvas *c, const QPolygon &pa)
Definition: canvas_typed/qtcanvas.cpp:3479
void drawArea(const QRect &, QPainter *p, bool double_buffer=false)
Definition: canvas_typed/qtcanvas.cpp:1084
Definition: canvas_typed/qtcanvas.cpp:3477
QPen pn
Definition: canvas_typed/qtcanvas.h:620
if(${CMAKE_VERSION} VERSION_GREATER "3.3" OR ${CMAKE_VERSION} VERSION_EQUAL "3.3") option(CAMITK_INCLUDE_WHAT_YOU_USE "Enable the header analysis on you code
~QtCanvasSpline()
Definition: canvas_typed/qtcanvas.cpp:3834
QFont fnt
Definition: canvas_typed/qtcanvas.h:816
virtual void setAnimated(bool y)
Definition: canvas_typed/qtcanvas.cpp:1704
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2235
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:4510
QList< QtCanvasItem * > QtCanvasItemList
Definition: canvas_typed/qtcanvas.h:60
friend class QtCanvasPolygonalItem
Definition: canvas_typed/qtcanvas.h:178
Definition: canvas_typed/qtcanvas.h:664
QSet< QtCanvasItem * > animDict
Definition: canvas_typed/qtcanvas.cpp:63
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4178
void setHighQualityRendering(bool enable)
Definition: canvas_typed/qtcanvas.cpp:3162
@ Rtti_Text
Definition: canvas_typed/qtcanvas.h:152
bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
static const QBrush & defaultPolygonBrush()
Definition: canvas_typed/qtcanvas.cpp:3383
void update()
Definition: canvas_typed/qtcanvas.h:171
@ Left
Definition: canvas_typed/qtcanvas.cpp:4886
QtCanvas * viewing
Definition: canvas_typed/qtcanvas.h:407
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2189
~QtCanvasView()
Definition: canvas_typed/qtcanvas.cpp:3141
virtual void addView(QtCanvasView *)
Definition: canvas_typed/qtcanvas.cpp:833
int rightEdge() const
Definition: canvas_typed/qtcanvas.cpp:2840
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2168
QColor bgcolor
Definition: canvas_typed/qtcanvas.h:355
ushort tilew
Definition: canvas_typed/qtcanvas.h:350
int clusters() const
Definition: canvas_typed/qtcanvas.cpp:86
Definition: canvas_typed/qtcanvas.cpp:5334
const QMatrix & inverseWorldMatrix() const
Definition: canvas_typed/qtcanvas.cpp:3251
bool winding() const
Definition: canvas_typed/qtcanvas.cpp:3417
static int RTTI
Definition: canvas_typed/qtcanvas.h:716
virtual void setAllChanged()
Definition: canvas_typed/qtcanvas.cpp:978
QtCanvasChunk & chunkContaining(int x, int y) const
Definition: canvas_typed/qtcanvas.cpp:591
int width() const
Definition: canvas_typed/qtcanvas.cpp:2978
bool operator!()
Definition: canvas_typed/qtcanvas.cpp:2735
static bool miInsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline, ScanLineListBlock **SLLBlock, int *iSLLBlock)
Definition: canvas_typed/qtcanvas.cpp:5250
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:2909
virtual void setUnchanged(const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1014
Definition: canvas_typed/qtcanvas.cpp:56
QtCanvasData()
Definition: canvas_typed/qtcanvas.cpp:58
QFont font() const
Definition: canvas_typed/qtcanvas.cpp:4469
ScanLineList SLLs[SLLSPERBLOCK]
Definition: canvas_typed/qtcanvas.cpp:5120
void setTextFlags(int)
Definition: canvas_typed/qtcanvas.cpp:4431
QList< QtCanvasView * > viewList
Definition: canvas_typed/qtcanvas.cpp:61
RttiValues
Definition: canvas_typed/qtcanvas.h:148
virtual QPolygon areaPoints() const =0
bool highQuality
Definition: canvas_typed/qtcanvas.cpp:71
void setColor(const QColor &)
Definition: canvas_typed/qtcanvas.cpp:4501
double y() const
Definition: canvas_typed/qtcanvas.h:75
EdgeTableEntry * edgelist
Definition: canvas_typed/qtcanvas.cpp:5100
int bottomEdge() const
Definition: canvas_typed/qtcanvas.cpp:2864
static int RTTI
Definition: canvas_typed/qtcanvas.h:675
static int RTTI
Definition: canvas_typed/qtcanvas.h:594
int pnt
Definition: canvas_typed/qtcanvas.cpp:3613
void removeItemFromChunk(QtCanvasItem *, int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1208
virtual void processSpans(int n, QPoint *point, int *width)=0
virtual void contentsMouseDoubleClickEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3176
~QtCanvasEllipse()
Definition: canvas_typed/qtcanvas.cpp:4255
@ Rtti_PolygonalItem
Definition: canvas_typed/qtcanvas.h:151
static void miFreeStorage(ScanLineListBlock *pSLLBlock)
Definition: canvas_variant/qtcanvas.cpp:5347
QPolygonalProcessor & processor
Definition: canvas_typed/qtcanvas.cpp:5760
void addItemToChunkContaining(QtCanvasItem *, int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1222
bool closed() const
Definition: canvas_typed/qtcanvas.cpp:3875
double myx
Definition: canvas_typed/qtcanvas.h:199
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4624
void setSize(int w, int h)
Definition: canvas_typed/qtcanvas.cpp:4132
static int RTTI
Definition: canvas_typed/qtcanvas.h:755
bool isValid() const
Definition: canvas_typed/qtcanvas.h:604
int offsetY() const
Definition: canvas_typed/qtcanvas.h:430
QPixmap backgroundPixmap() const
Definition: canvas_typed/qtcanvas.cpp:1281
QtCanvas(QObject *parent=0)
Definition: canvas_typed/qtcanvas.cpp:522
int frame() const
Definition: canvas_typed/qtcanvas.h:506
#define EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET)
Definition: canvas_variant/qtcanvas.cpp:5143
QtCanvasChunk & chunk(int i, int j) const
Definition: canvas_typed/qtcanvas.cpp:583
virtual void drawShape(QPainter &)=0
void draw(QPainter &painter)
Definition: canvas_typed/qtcanvas.cpp:2996
Edge
Definition: canvas_typed/qtcanvas.cpp:4886
uint sel
Definition: canvas_typed/qtcanvas.h:205
Definition: canvas_typed/qtcanvas.cpp:66
static int RTTI
Definition: canvas_typed/qtcanvas.h:800
uint anim_type
Definition: canvas_typed/qtcanvas.h:557
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4654
QtCanvas * canvas() const
Definition: canvas_typed/qtcanvas.h:374
QtCanvas * canvas() const
Definition: canvas_typed/qtcanvas.h:166
friend class QtCanvasText
Definition: canvas_typed/qtcanvas.h:183
virtual ~QtCanvasPolygonalItem()
Definition: canvas_typed/qtcanvas.cpp:3405
@ Rtti_Line
Definition: canvas_typed/qtcanvas.h:156
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4644
QRect rect() const
Definition: canvas_typed/qtcanvas.h:640
QMatrix ixform
Definition: canvas_typed/qtcanvas.cpp:70
int height() const
Definition: canvas_typed/qtcanvas.cpp:2987
int tile(int x, int y) const
Definition: canvas_typed/qtcanvas.h:231
QtCanvasItemList m_list
Definition: canvas_typed/qtcanvas.cpp:323
struct _ScanLineListBlock * next
Definition: canvas_typed/qtcanvas.cpp:5121
virtual void draw(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4527
bool hasChanged() const
Definition: canvas_typed/qtcanvas.cpp:312
const QRect & operator[](int i) const
Definition: canvas_typed/qtcanvas.cpp:266
bool animated() const
Definition: canvas_typed/qtcanvas.cpp:1693
QtCanvasItemList allItems()
Definition: canvas_typed/qtcanvas.cpp:598
QtCanvasItemExtra * ext
Definition: canvas_typed/qtcanvas.h:200
static int gcd(int a, int b)
Definition: canvas_typed/qtcanvas.cpp:328
QRect rect() const
Definition: canvas_typed/qtcanvas.h:259
#define MININT
Definition: canvas_variant/qtcanvas.cpp:5229
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4325
double x() const
Definition: canvas_typed/qtcanvas.h:72
QtCanvasData * d
Definition: canvas_typed/qtcanvas.h:344
QtCanvasItemExtra & extra()
Definition: canvas_typed/qtcanvas.cpp:1611
uint val
Definition: canvas_typed/qtcanvas.h:204
virtual QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:2918
~QtCanvasRectangle()
Definition: canvas_typed/qtcanvas.cpp:4110
@ Oscillate
Definition: canvas_typed/qtcanvas.h:504
#define MAXINT
Definition: canvas_typed/qtcanvas.cpp:5228
void setZ(double a)
Definition: canvas_typed/qtcanvas.h:90
bool onCanvas(const QPoint &p) const
Definition: canvas_typed/qtcanvas.h:265
int tilesHorizontally() const
Definition: canvas_typed/qtcanvas.h:235
virtual void setEnabled(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1914
virtual QRect boundingRectAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:2409
QtCanvasViewData * d
Definition: canvas_typed/qtcanvas.h:408
QtCanvasViewData()
Definition: canvas_typed/qtcanvas.cpp:68
uint count() const
Definition: canvas_typed/qtcanvas.h:476
int tileHeight() const
Definition: canvas_typed/qtcanvas.h:245
Definition: canvas_typed/qtcanvas.cpp:4881
void setFrame(int)
Definition: canvas_typed/qtcanvas.cpp:4759
QtCanvasPixmapArray * images
Definition: canvas_typed/qtcanvas.h:567
void setCanvas(QtCanvas *v)
Definition: canvas_typed/qtcanvas.cpp:3216
ushort htiles
Definition: canvas_typed/qtcanvas.h:348
Definition: canvas_typed/qtcanvas.cpp:284
virtual bool collidesWith(const QtCanvasItem *) const =0
int offsetX() const
Definition: canvas_typed/qtcanvas.h:427
QMatrix xform
Definition: canvas_typed/qtcanvas.cpp:69
struct _EdgeTableEntry * nextWETE
Definition: canvas_typed/qtcanvas.cpp:5093
bool visible() const
Definition: canvas_typed/qtcanvas.h:135
void setAngles(int start, int length)
Definition: canvas_typed/qtcanvas.cpp:4313
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4006
int count
Definition: canvas_typed/qtcanvas.cpp:93
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4337
int scanline
Definition: canvas_typed/qtcanvas.cpp:5099
void setControlPoints(QPolygon, bool closed=true)
Definition: canvas_typed/qtcanvas.cpp:3850
static int RTTI
Definition: canvas_typed/qtcanvas.h:514
void updateContentsSize()
Definition: canvas_typed/qtcanvas.cpp:3279
QtCanvasPolygonScanner(QPolygonalProcessor &p)
Definition: canvas_typed/qtcanvas.cpp:5762
virtual void setCanvas(QtCanvas *)
Definition: canvas_typed/qtcanvas.cpp:1790
virtual void changeChunks()
Definition: canvas_typed/qtcanvas.cpp:2383
int angleLength() const
Definition: canvas_typed/qtcanvas.h:747
bool readCollisionMasks(const QString &filenamepattern)
Definition: canvas_typed/qtcanvas.cpp:2679
virtual void setTile(int x, int y, int tilenum)
Definition: canvas_typed/qtcanvas.cpp:1473
int w
Definition: canvas_typed/qtcanvas.h:660
uint act
Definition: canvas_typed/qtcanvas.h:207
~QtCanvasPixmapArray()
Definition: canvas_typed/qtcanvas.cpp:2620
virtual QRect boundingRect() const =0
void setPoints(QPolygon)
Definition: canvas_typed/qtcanvas.cpp:3768
int tilesVertically() const
Definition: canvas_typed/qtcanvas.h:238
static bool miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET, EdgeTableEntry *AET, EdgeTableEntry *pETEs, ScanLineListBlock *pSLLBlock)
Definition: canvas_typed/qtcanvas.cpp:5358
QSize size() const
Definition: canvas_typed/qtcanvas.h:636
int ymax
Definition: canvas_typed/qtcanvas.cpp:5089
Definition: canvas_typed/qtcanvas.h:572
virtual void removeView(QtCanvasView *)
Definition: canvas_typed/qtcanvas.cpp:848
int hoty
Definition: canvas_typed/qtcanvas.h:448
static int RTTI
Definition: canvas_typed/qtcanvas.h:647
void drawCanvasArea(const QRect &, QPainter *p=0, bool double_buffer=true)
Definition: canvas_typed/qtcanvas.cpp:1093
virtual void resize(int width, int height)
Definition: canvas_typed/qtcanvas.cpp:607
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:4407
QBrush brush() const
Definition: canvas_typed/qtcanvas.h:585
int y1
Definition: canvas_typed/qtcanvas.h:726
void add(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:3496
virtual void contentsDragLeaveEvent(QDragLeaveEvent *)
Definition: canvas_typed/qtcanvas.cpp:3190
@ Rtti_Ellipse
Definition: canvas_typed/qtcanvas.h:155
double z() const
Definition: canvas_typed/qtcanvas.h:78
void scanPolygon(const QPolygon &pa, int winding, QPolygonalProcessor &process) const
Definition: canvas_typed/qtcanvas.cpp:5770
bool highQualityRendering
Definition: canvas_typed/qtcanvas.h:367
int height() const
Definition: canvas_typed/qtcanvas.h:253
virtual void setTiles(QPixmap tiles, int h, int v, int tilewidth, int tileheight)
Definition: canvas_typed/qtcanvas.cpp:1391
@ Rtti_Item
Definition: canvas_typed/qtcanvas.h:149
void setYVelocity(double vy)
Definition: canvas_typed/qtcanvas.h:101
QtCanvasItemList collisions(bool exact) const
Definition: canvas_typed/qtcanvas.cpp:2285
double myy
Definition: canvas_typed/qtcanvas.h:199
virtual void setSelected(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1885
void scan(const QPolygon &pa, bool winding, int index=0, int npoints=-1)
Definition: canvas_typed/qtcanvas.cpp:5561
static QtCanvas * current_canvas
Definition: canvas_typed/qtcanvas.h:198
virtual ~QtCanvasSprite()
Definition: canvas_typed/qtcanvas.cpp:4747
Definition: canvas_typed/qtcanvas.h:625
void addBits(int x1, int x2, uchar newbits, int xo, int yo)
Definition: canvas_typed/qtcanvas.cpp:3511
void setY(double a)
Definition: canvas_typed/qtcanvas.h:87
int w
Definition: canvas_typed/qtcanvas.h:766
friend class QtCanvasEllipse
Definition: canvas_typed/qtcanvas.h:182
void setSize(int w, int h)
Definition: canvas_typed/qtcanvas.cpp:4276
Definition: canvas_typed/qtcanvas.h:67
QImage bitmap
Definition: canvas_typed/qtcanvas.cpp:3617
virtual void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:1669
static const QBrush & defaultPolygonBrush()
Definition: canvas_variant/qtcanvas.cpp:3383
BRESINFO bres
Definition: canvas_typed/qtcanvas.cpp:5090
virtual void setUpdatePeriod(int ms)
Definition: canvas_typed/qtcanvas.cpp:882
virtual ~QtCanvas()
Definition: canvas_typed/qtcanvas.cpp:566
static int RTTI
Definition: canvas_typed/qtcanvas.h:161
virtual void setChangedChunkContaining(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1181
QPolygon controlPoints() const
Definition: canvas_typed/qtcanvas.cpp:3867
int aheight
Definition: canvas_typed/qtcanvas.h:338
struct _ScanLineList ScanLineList
static void miloadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
Definition: canvas_typed/qtcanvas.cpp:5445
QtCanvas * canvas
Definition: canvas_typed/qtcanvas.cpp:3615
void setWinding(bool)
Definition: canvas_typed/qtcanvas.cpp:3430
virtual void setVelocity(double vx, double vy)
Definition: canvas_typed/qtcanvas.cpp:1738
void clear()
Definition: canvas_typed/qtcanvas.cpp:127
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:3647
void setText(const QString &)
Definition: canvas_typed/qtcanvas.cpp:4455
int h
Definition: canvas_typed/qtcanvas.h:660
QtCanvasClusterizer(int maxclusters)
Definition: canvas_typed/qtcanvas.cpp:117
bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_variant/qtcanvas.cpp:1950
QPolygon result
Definition: canvas_typed/qtcanvas.cpp:3614
bool readPixmaps(const QString &datafilenamepattern, int framecount=0)
Definition: canvas_typed/qtcanvas.cpp:2652
QRect brect
Definition: canvas_typed/qtcanvas.h:813
virtual void drawContents(QPainter *p, int cx, int cy, int cw, int ch)
Definition: canvas_typed/qtcanvas.cpp:3296
Definition: canvas_typed/qtcanvas.cpp:273
Definition: canvas_typed/qtcanvas.h:454
void reset()
Definition: canvas_typed/qtcanvas.cpp:2624
Definition: canvas_typed/qtcanvas.h:683
int chwidth
Definition: canvas_typed/qtcanvas.h:341
void move(double x, double y)
Definition: canvas_typed/qtcanvas.cpp:1682
void removeFromChunks()
Definition: canvas_typed/qtcanvas.cpp:4564
ushort tileh
Definition: canvas_typed/qtcanvas.h:351
bool changed
Definition: canvas_typed/qtcanvas.cpp:324
struct _ScanLineListBlock ScanLineListBlock
QImage * collision_mask
Definition: canvas_typed/qtcanvas.h:450
int ymin
Definition: canvas_typed/qtcanvas.cpp:5107
int awidth
Definition: canvas_typed/qtcanvas.h:338
int minor
Definition: canvas_typed/qtcanvas.cpp:5073
ScanLineList scanlines
Definition: canvas_typed/qtcanvas.cpp:5108
QRect changeBounds()
Definition: canvas_typed/qtcanvas.cpp:1041
QPoint startPoint() const
Definition: canvas_typed/qtcanvas.h:708
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4674
virtual void addAnimation(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:806
static int gcd(int a, int b)
Definition: canvas_variant/qtcanvas.cpp:328
friend class QtCanvasSprite
Definition: canvas_typed/qtcanvas.h:179
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4684
uint ena
Definition: canvas_typed/qtcanvas.h:206
void changeChunks()
Definition: canvas_typed/qtcanvas.cpp:4536
void setPoints(int x1, int y1, int x2, int y2)
Definition: canvas_typed/qtcanvas.cpp:3982
void init(const QImage &)
Definition: canvas_typed/qtcanvas.cpp:2476
const QMatrix & worldMatrix() const
Definition: canvas_typed/qtcanvas.cpp:3241
int leftEdge() const
Definition: canvas_typed/qtcanvas.cpp:2792
struct _ScanLineList ScanLineList
virtual void contentsWheelEvent(QWheelEvent *)
Definition: canvas_typed/qtcanvas.cpp:3196
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:4053
QtCanvasSpline(QtCanvas *canvas)
Definition: canvas_typed/qtcanvas.cpp:3826
static bool miInsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline, ScanLineListBlock **SLLBlock, int *iSLLBlock)
Definition: canvas_variant/qtcanvas.cpp:5250
void initTiles(QPixmap p, int h, int v, int tilewidth, int tileheight)
static const QPen & defaultPolygonPen()
Definition: canvas_typed/qtcanvas.cpp:3375
struct _EdgeTableEntry EdgeTableEntry
static int scm(int a, int b)
Definition: canvas_variant/qtcanvas.cpp:337
QPoint endPoint() const
Definition: canvas_typed/qtcanvas.h:711
int frameCount() const
Definition: canvas_typed/qtcanvas.h:509
static bool miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET, EdgeTableEntry *AET, EdgeTableEntry *pETEs, ScanLineListBlock *pSLLBlock)
Definition: canvas_variant/qtcanvas.cpp:5358
virtual void contentsMouseMoveEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3180
Definition: canvas_typed/qtcanvas.cpp:5105
static int scm(int a, int b)
Definition: canvas_typed/qtcanvas.cpp:337
virtual void contentsContextMenuEvent(QContextMenuEvent *)
Definition: canvas_typed/qtcanvas.cpp:3200
QtCanvasPixmap ** img
Definition: canvas_typed/qtcanvas.h:489
void drawViewArea(QtCanvasView *view, QPainter *p, const QRect &r, bool dbuf)
Definition: canvas_typed/qtcanvas.cpp:945
uint wind
Definition: canvas_typed/qtcanvas.h:621
QtCanvasTextExtra * extra
Definition: canvas_typed/qtcanvas.h:818
virtual void contentsDragEnterEvent(QDragEnterEvent *)
Definition: canvas_typed/qtcanvas.cpp:3184
virtual void setFrameAnimation(FrameAnimationType=Cycle, int step=1, int state=0)
Definition: canvas_typed/qtcanvas.cpp:4788
void addToChunks()
Definition: canvas_typed/qtcanvas.cpp:4550
#define NUMPTSTOBUFFER
Definition: canvas_typed/qtcanvas.cpp:5128
int a2
Definition: canvas_typed/qtcanvas.h:767
static int miInsertionSort(EdgeTableEntry *AET)
Definition: canvas_typed/qtcanvas.cpp:5527
QPolygon poly
Definition: canvas_typed/qtcanvas.h:679
static void micomputeWAET(EdgeTableEntry *AET)
Definition: canvas_variant/qtcanvas.cpp:5490
bool isEnabled() const
Definition: canvas_typed/qtcanvas.h:128
double xVelocity() const
Definition: canvas_typed/qtcanvas.cpp:1751
Definition: canvas_typed/qtcanvas.h:213
void setRect()
Definition: canvas_typed/qtcanvas.cpp:4411
FrameAnimationType
Definition: canvas_typed/qtcanvas.h:504
int width() const
Definition: canvas_typed/qtcanvas.cpp:4118
virtual void drawForeground(QPainter &, const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1357
@ Right
Definition: canvas_typed/qtcanvas.cpp:4886
QRect * cluster
Definition: canvas_typed/qtcanvas.cpp:92
struct _ScanLineList * next
Definition: canvas_typed/qtcanvas.cpp:5101
bool isActive() const
Definition: canvas_typed/qtcanvas.h:132
QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:3638
struct DDXPointRec * DDXPointPtr
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3755
#define BRESINITPGONSTRUCT(dmaj, min1, min2, bres)
Definition: canvas_typed/qtcanvas.cpp:5080
~QtCanvasClusterizer()
Definition: canvas_typed/qtcanvas.cpp:123
#define BRESINITPGONSTRUCT(dmaj, min1, min2, bres)
Definition: canvas_variant/qtcanvas.cpp:5080
bool selected() const
Definition: canvas_typed/qtcanvas.h:138
virtual void setChangedChunk(int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1164
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4614
int y2
Definition: canvas_typed/qtcanvas.h:726
friend class QtCanvasRectangle
Definition: canvas_typed/qtcanvas.h:180
virtual ~QtPolygonScanner()
Definition: canvas_typed/qtcanvas.cpp:4883
virtual QtCanvasPixmap * imageAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:2900
virtual void retune(int chunksize, int maxclusters=100)
Definition: canvas_typed/qtcanvas.cpp:683
virtual ~QtCanvasItem()
Definition: canvas_typed/qtcanvas.cpp:1603
QtCanvasChunk()
Definition: canvas_typed/qtcanvas.cpp:286
virtual int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4604
#define SLLSPERBLOCK
Definition: canvas_typed/qtcanvas.cpp:5117
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2204
double yVelocity() const
Definition: canvas_typed/qtcanvas.cpp:1758
QtCanvasView(QWidget *parent=0)
Definition: canvas_typed/qtcanvas.cpp:3114
int chunkSize() const
Definition: canvas_typed/qtcanvas.h:275
void recalcPoly()
Definition: canvas_typed/qtcanvas.cpp:3879
void removeItemFromChunkContaining(QtCanvasItem *, int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1235
int y
Definition: canvas_typed/qtcanvas.cpp:5338
void addToChunks()
Definition: canvas_typed/qtcanvas.cpp:2943
QPixmap pm
Definition: canvas_typed/qtcanvas.h:353
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2220
void setImage(int i, QtCanvasPixmap *p)
Definition: canvas_typed/qtcanvas.cpp:2766
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
int x1
Definition: canvas_typed/qtcanvas.h:726
Definition: canvas_typed/qtcanvas.cpp:5119
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
~QtCanvasPixmap()
Definition: canvas_typed/qtcanvas.cpp:2506
Definition: canvas_typed/qtcanvas.cpp:76
QPolygon bez
Definition: canvas_typed/qtcanvas.h:697
bool setWorldMatrix(const QMatrix &)
Definition: canvas_typed/qtcanvas.cpp:3268
int maxclusters
Definition: canvas_typed/qtcanvas.h:340
#define EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET)
Definition: canvas_typed/qtcanvas.cpp:5143
void setXVelocity(double vx)
Definition: canvas_typed/qtcanvas.h:98
virtual QSize sizeHint() const
Definition: canvas_typed/qtcanvas.cpp:3309
#define MAXINT
Definition: canvas_variant/qtcanvas.cpp:5228
double myz
Definition: canvas_typed/qtcanvas.h:199
virtual void draw(QPainter &)=0
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3996
const int maxcl
Definition: canvas_typed/qtcanvas.cpp:94
virtual void setAdvancePeriod(int ms)
Definition: canvas_typed/qtcanvas.cpp:859
static void include(QRect &r, const QRect &rect)
Definition: canvas_typed/qtcanvas.cpp:98
QtCanvasPixmapArray()
Definition: canvas_typed/qtcanvas.cpp:2563
QColor col
Definition: canvas_typed/qtcanvas.h:817
#define NUMPTSTOBUFFER
Definition: canvas_variant/qtcanvas.cpp:5128
QtCanvasItem(QtCanvas *canvas)
Definition: canvas_typed/qtcanvas.cpp:1584
QtCanvasPixmap(const QString &datafilename)
Definition: canvas_typed/qtcanvas.cpp:2456
Definition: canvas_typed/qtcanvas.cpp:5098
int height() const
Definition: canvas_typed/qtcanvas.cpp:4125
virtual void removeFromChunks()
Definition: canvas_typed/qtcanvas.cpp:2369
bool sameChunk(int x1, int y1, int x2, int y2) const
Definition: canvas_typed/qtcanvas.h:280
QtCanvasPixmap * image(int f) const
Definition: canvas_typed/qtcanvas.h:539
void sort()
Definition: canvas_typed/qtcanvas.cpp:290
QRect bounds
Definition: canvas_typed/qtcanvas.cpp:3616
QPen pen() const
Definition: canvas_typed/qtcanvas.h:582
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4664
void doSpans(int n, QPoint *pt, int *w)
Definition: canvas_typed/qtcanvas.cpp:3531
int angleStart() const
Definition: canvas_typed/qtcanvas.h:744
void draw(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3656
@ Rtti_Sprite
Definition: canvas_typed/qtcanvas.h:150
@ Rtti_Spline
Definition: canvas_typed/qtcanvas.h:157
int hotx
Definition: canvas_typed/qtcanvas.h:448
Definition: canvas_typed/qtcanvas.h:365
void change()
Definition: canvas_typed/qtcanvas.cpp:308
virtual void setBackgroundColor(const QColor &c)
Definition: canvas_typed/qtcanvas.cpp:1261
virtual void setBackgroundPixmap(const QPixmap &p)
Definition: canvas_typed/qtcanvas.cpp:1291
QPolygon points() const
Definition: canvas_typed/qtcanvas.cpp:3908
QString txt
Definition: canvas_typed/qtcanvas.h:814
static void include(QRect &r, const QRect &rect)
Definition: canvas_variant/qtcanvas.cpp:98
Definition: canvas_typed/qtcanvas.h:730
void invalidate()
Definition: canvas_typed/qtcanvas.cpp:3441
void setFont(const QFont &)
Definition: canvas_typed/qtcanvas.cpp:4478
virtual void drawBackground(QPainter &, const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1312
friend class QtCanvasWidget
Definition: canvas_typed/qtcanvas.h:390
QtCanvasPixmap * image() const
Definition: canvas_typed/qtcanvas.h:535
~QtCanvasPolygon()
Definition: canvas_typed/qtcanvas.cpp:3745
virtual void addToChunks()
Definition: canvas_typed/qtcanvas.cpp:2355
bool takeChange()
Definition: canvas_typed/qtcanvas.cpp:316
QString text() const
Definition: canvas_typed/qtcanvas.cpp:4445
virtual void addItem(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:797
int topEdge() const
Definition: canvas_typed/qtcanvas.cpp:2816
int chunksize
Definition: canvas_typed/qtcanvas.h:339
virtual void removeItem(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:824
virtual void advance()
Definition: canvas_typed/qtcanvas.cpp:920
bool validChunk(const QPoint &p) const
Definition: canvas_typed/qtcanvas.h:271
static bool collision_double_dispatch(const QtCanvasSprite *s1, const QtCanvasPolygonalItem *p1, const QtCanvasRectangle *r1, const QtCanvasEllipse *e1, const QtCanvasText *t1, const QtCanvasSprite *s2, const QtCanvasPolygonalItem *p2, const QtCanvasRectangle *r2, const QtCanvasEllipse *e2, const QtCanvasText *t2)
Definition: canvas_typed/qtcanvas.cpp:2053
virtual void update()
Definition: canvas_typed/qtcanvas.cpp:960
virtual void contentsDropEvent(QDropEvent *)
Definition: canvas_typed/qtcanvas.cpp:3193
QSet< QtCanvasItem * > itemDict
Definition: canvas_typed/qtcanvas.cpp:62
@ Rtti_Rectangle
Definition: canvas_typed/qtcanvas.h:154
int flags
Definition: canvas_typed/qtcanvas.h:815
bool oneone
Definition: canvas_typed/qtcanvas.h:352
void setPen(QPen p)
Definition: canvas_typed/qtcanvas.cpp:3958
struct _EdgeTableEntry * next
Definition: canvas_typed/qtcanvas.cpp:5091
int a1
Definition: canvas_typed/qtcanvas.h:767
uint vis
Definition: canvas_typed/qtcanvas.h:203
Definition: canvas_typed/qtcanvas.h:493
Definition: canvas_typed/qtcanvas.h:773
virtual void setPen(QPen p)
Definition: canvas_typed/qtcanvas.cpp:3694
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:3779
int ymax
Definition: canvas_typed/qtcanvas.cpp:5106
QSize size() const
Definition: canvas_typed/qtcanvas.h:256
struct _ScanLineListBlock ScanLineListBlock
virtual void setVisible(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1830
QColor color() const
Definition: canvas_typed/qtcanvas.cpp:4492
static int RTTI
Definition: canvas_typed/qtcanvas.h:693
QtCanvasChunk * chunks
Definition: canvas_typed/qtcanvas.h:342
@ Rtti_Polygon
Definition: canvas_typed/qtcanvas.h:153
const QtCanvasItemList & list() const
Definition: canvas_typed/qtcanvas.cpp:294
~QtCanvasLine()
Definition: canvas_typed/qtcanvas.cpp:3951
virtual void removeAnimation(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:815
struct _EdgeTableEntry EdgeTableEntry
void removeFromChunks()
Definition: canvas_typed/qtcanvas.cpp:2960
QtCanvasPixmap * image(int i) const
Definition: canvas_typed/qtcanvas.h:472
@ Cycle
Definition: canvas_typed/qtcanvas.h:504
void changeChunks()
Definition: canvas_typed/qtcanvas.cpp:4732
@ Bottom
Definition: canvas_typed/qtcanvas.cpp:4886
#define EVALUATEEDGEEVENODD(pAET, pPrevAET, y)
Definition: canvas_typed/qtcanvas.cpp:5166
ushort anim_val
Definition: canvas_typed/qtcanvas.h:555
virtual void setBrush(QBrush b)
Definition: canvas_typed/qtcanvas.cpp:3707
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4159
int x2
Definition: canvas_typed/qtcanvas.h:726
void setOffset(int x, int y)
Definition: canvas_typed/qtcanvas.h:433
friend class QtCanvasPolygon
Definition: canvas_typed/qtcanvas.h:181
bool enabled() const
Definition: canvas_typed/qtcanvas.h:141
virtual void advance(int stage)
Definition: canvas_typed/qtcanvas.cpp:1773
Definition: canvas_typed/qtcanvas.cpp:5072
static int miInsertionSort(EdgeTableEntry *AET)
Definition: canvas_variant/qtcanvas.cpp:5527
bool operator()(const QtCanvasItem *i1, const QtCanvasItem *i2) const
Definition: canvas_typed/qtcanvas.cpp:275
void addItemToChunk(QtCanvasItem *, int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1195
bool active() const
Definition: canvas_typed/qtcanvas.h:144
virtual ~QtCanvasText()
Definition: canvas_typed/qtcanvas.cpp:4400
void setSequence(QtCanvasPixmapArray *seq)
Definition: canvas_typed/qtcanvas.cpp:4713
uint ani
Definition: canvas_typed/qtcanvas.h:202
virtual void contentsMouseReleaseEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3172
ushort * grid
Definition: canvas_typed/qtcanvas.h:347
#define MININT
Definition: canvas_typed/qtcanvas.cpp:5229
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:3920
bool isValid() const
Definition: canvas_typed/qtcanvas.cpp:2743
QtCanvasItemList collisions(const QPoint &) const
Definition: canvas_typed/qtcanvas.cpp:2294