Computer Assited Medical Intervention Tool Kit  version 5.0
canvas_typed/qtcanvas.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 **
6 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 **
8 ** This file is part of a Qt Solutions component.
9 **
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
13 ** modification, are permitted provided that the following conditions are
14 ** met:
15 ** * Redistributions of source code must retain the above copyright
16 ** notice, this list of conditions and the following disclaimer.
17 ** * Redistributions in binary form must reproduce the above copyright
18 ** notice, this list of conditions and the following disclaimer in
19 ** the documentation and/or other materials provided with the
20 ** distribution.
21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
22 ** the names of its contributors may be used to endorse or promote
23 ** products derived from this software without specific prior written
24 ** permission.
25 **
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
37 **
38 ****************************************************************************/
39 
40 #ifndef QTCANVAS_H
41 #define QTCANVAS_H
42 
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>
48 
49 class QtCanvasSprite;
51 class QtCanvasRectangle;
52 class QtCanvasPolygon;
53 class QtCanvasEllipse;
54 class QtCanvasText;
55 class QtCanvasLine;
56 class QtCanvasChunk;
57 class QtCanvas;
58 class QtCanvasItem;
59 class QtCanvasView;
61 
62 typedef QList<QtCanvasItem*> QtCanvasItemList;
63 
64 
65 class QtCanvasItemExtra;
66 
67 class QtCanvasItem {
68 public:
70  virtual ~QtCanvasItem();
71 
72  double x() const {
73  return myx;
74  }
75  double y() const {
76  return myy;
77  }
78  double z() const {
79  return myz; // (depth)
80  }
81 
82  virtual void moveBy(double dx, double dy);
83  void move(double x, double y);
84  void setX(double a) {
85  move(a, y());
86  }
87  void setY(double a) {
88  move(x(), a);
89  }
90  void setZ(double a) {
91  myz = a;
92  changeChunks();
93  }
94 
95  bool animated() const;
96  virtual void setAnimated(bool y);
97  virtual void setVelocity(double vx, double vy);
98  void setXVelocity(double vx) {
99  setVelocity(vx, yVelocity());
100  }
101  void setYVelocity(double vy) {
102  setVelocity(xVelocity(), vy);
103  }
104  double xVelocity() const;
105  double yVelocity() const;
106  virtual void advance(int stage);
107 
108  virtual bool collidesWith(const QtCanvasItem*) const = 0;
109 
110  QtCanvasItemList collisions(bool exact /* NO DEFAULT */) const;
111 
112  virtual void setCanvas(QtCanvas*);
113 
114  virtual void draw(QPainter&) = 0;
115 
116  void show();
117  void hide();
118 
119  virtual void setVisible(bool yes);
120  bool isVisible() const {
121  return (bool)vis;
122  }
123  virtual void setSelected(bool yes);
124  bool isSelected() const {
125  return (bool)sel;
126  }
127  virtual void setEnabled(bool yes);
128  bool isEnabled() const {
129  return (bool)ena;
130  }
131  virtual void setActive(bool yes);
132  bool isActive() const {
133  return (bool)act;
134  }
135  bool visible() const {
136  return (bool)vis;
137  }
138  bool selected() const {
139  return (bool)sel;
140  }
141  bool enabled() const {
142  return (bool)ena;
143  }
144  bool active() const {
145  return (bool)act;
146  }
147 
148  enum RttiValues {
158  };
159 
160  virtual int rtti() const;
161  static int RTTI;
162 
163  virtual QRect boundingRect() const = 0;
164  virtual QRect boundingRectAdvanced() const;
165 
166  QtCanvas* canvas() const {
167  return cnv;
168  }
169 
170 protected:
171  void update() {
172  changeChunks();
173  }
174 
175 private:
176  // For friendly subclasses...
177 
178  friend class QtCanvasPolygonalItem;
179  friend class QtCanvasSprite;
180  friend class QtCanvasRectangle;
181  friend class QtCanvasPolygon;
182  friend class QtCanvasEllipse;
183  friend class QtCanvasText;
184  friend class QtCanvasLine;
185 
186  virtual QPolygon chunks() const;
187  virtual void addToChunks();
188  virtual void removeFromChunks();
189  virtual void changeChunks();
190  virtual bool collidesWith(const QtCanvasSprite*,
191  const QtCanvasPolygonalItem*,
192  const QtCanvasRectangle*,
193  const QtCanvasEllipse*,
194  const QtCanvasText*) const = 0;
195  // End of friend stuff
196 
199  double myx, myy, myz;
202  uint ani: 1;
203  uint vis: 1;
204  uint val: 1;
205  uint sel: 1;
206  uint ena: 1;
207  uint act: 1;
208 };
209 
210 
211 class QtCanvasData;
212 
213 class QtCanvas : public QObject {
214  Q_OBJECT
215 public:
216  QtCanvas(QObject* parent = 0);
217  QtCanvas(int w, int h);
218  QtCanvas(QPixmap p, int h, int v, int tilewidth, int tileheight);
219 
220  virtual ~QtCanvas();
221 
222  virtual void setTiles(QPixmap tiles, int h, int v,
223  int tilewidth, int tileheight);
224  virtual void setBackgroundPixmap(const QPixmap& p);
225  QPixmap backgroundPixmap() const;
226 
227  virtual void setBackgroundColor(const QColor& c);
228  QColor backgroundColor() const;
229 
230  virtual void setTile(int x, int y, int tilenum);
231  int tile(int x, int y) const {
232  return grid[x + y * htiles];
233  }
234 
235  int tilesHorizontally() const {
236  return htiles;
237  }
238  int tilesVertically() const {
239  return vtiles;
240  }
241 
242  int tileWidth() const {
243  return tilew;
244  }
245  int tileHeight() const {
246  return tileh;
247  }
248 
249  virtual void resize(int width, int height);
250  int width() const {
251  return awidth;
252  }
253  int height() const {
254  return aheight;
255  }
256  QSize size() const {
257  return QSize(awidth, aheight);
258  }
259  QRect rect() const {
260  return QRect(0, 0, awidth, aheight);
261  }
262  bool onCanvas(int x, int y) const {
263  return x >= 0 && y >= 0 && x < awidth && y < aheight;
264  }
265  bool onCanvas(const QPoint& p) const {
266  return onCanvas(p.x(), p.y());
267  }
268  bool validChunk(int x, int y) const {
269  return x >= 0 && y >= 0 && x < chwidth && y < chheight;
270  }
271  bool validChunk(const QPoint& p) const {
272  return validChunk(p.x(), p.y());
273  }
274 
275  int chunkSize() const {
276  return chunksize;
277  }
278  virtual void retune(int chunksize, int maxclusters = 100);
279 
280  bool sameChunk(int x1, int y1, int x2, int y2) const {
281  return x1 / chunksize == x2 / chunksize && y1 / chunksize == y2 / chunksize;
282  }
283  virtual void setChangedChunk(int i, int j);
284  virtual void setChangedChunkContaining(int x, int y);
285  virtual void setAllChanged();
286  virtual void setChanged(const QRect& area);
287  virtual void setUnchanged(const QRect& area);
288 
289  // These call setChangedChunk.
290  void addItemToChunk(QtCanvasItem*, int i, int j);
291  void removeItemFromChunk(QtCanvasItem*, int i, int j);
292  void addItemToChunkContaining(QtCanvasItem*, int x, int y);
293  void removeItemFromChunkContaining(QtCanvasItem*, int x, int y);
294 
296  QtCanvasItemList collisions(const QPoint&) const;
297  QtCanvasItemList collisions(const QRect&) const;
298  QtCanvasItemList collisions(const QPolygon& pa, const QtCanvasItem* item,
299  bool exact) const;
300 
301  void drawArea(const QRect&, QPainter* p, bool double_buffer = false);
302 
303  // These are for QtCanvasView to call
304  virtual void addView(QtCanvasView*);
305  virtual void removeView(QtCanvasView*);
306 
307  void drawCanvasArea(const QRect&, QPainter* p = 0, bool double_buffer = true);
308  void drawViewArea(QtCanvasView* view, QPainter* p, const QRect& r, bool dbuf);
309 
310  // These are for QtCanvasItem to call
311  virtual void addItem(QtCanvasItem*);
312  virtual void addAnimation(QtCanvasItem*);
313  virtual void removeItem(QtCanvasItem*);
314  virtual void removeAnimation(QtCanvasItem*);
315 
316  virtual void setAdvancePeriod(int ms);
317  virtual void setUpdatePeriod(int ms);
318 
319 signals:
320  void resized();
321 
322 public slots:
323  virtual void advance();
324  virtual void update();
325 
326 protected:
327  virtual void drawBackground(QPainter&, const QRect& area);
328  virtual void drawForeground(QPainter&, const QRect& area);
329 
330 private:
331  void init(int w, int h, int chunksze = 16, int maxclust = 100);
332 
333  QtCanvasChunk& chunk(int i, int j) const;
334  QtCanvasChunk& chunkContaining(int x, int y) const;
335 
336  QRect changeBounds();
337 
343 
345 
346  void initTiles(QPixmap p, int h, int v, int tilewidth, int tileheight);
347  ushort* grid;
348  ushort htiles;
349  ushort vtiles;
350  ushort tilew;
351  ushort tileh;
352  bool oneone;
353  QPixmap pm;
354  QTimer* update_timer;
355  QColor bgcolor;
357 
358  friend void qt_unview(QtCanvas* c);
359 
360  Q_DISABLE_COPY(QtCanvas)
361 };
362 
363 class QtCanvasViewData;
364 
365 class QtCanvasView : public QScrollArea {
366  Q_OBJECT
368 public:
369 
370  QtCanvasView(QWidget* parent = 0);
371  QtCanvasView(QtCanvas* viewing, QWidget* parent = 0);
372  ~QtCanvasView();
373 
374  QtCanvas* canvas() const {
375  return viewing;
376  }
377  void setCanvas(QtCanvas* v);
378 
379  const QMatrix& worldMatrix() const;
380  const QMatrix& inverseWorldMatrix() const;
381  bool setWorldMatrix(const QMatrix&);
382 
383  virtual QSize sizeHint() const;
384 
385  bool highQualityRendering() const;
386 public slots:
387  void setHighQualityRendering(bool enable);
388 
389 protected:
390  friend class QtCanvasWidget;
391  virtual void drawContents(QPainter* p, int cx, int cy, int cw, int ch);
392 
393  virtual void contentsMousePressEvent(QMouseEvent*);
394  virtual void contentsMouseReleaseEvent(QMouseEvent*);
395  virtual void contentsMouseDoubleClickEvent(QMouseEvent*);
396  virtual void contentsMouseMoveEvent(QMouseEvent*);
397  virtual void contentsDragEnterEvent(QDragEnterEvent*);
398  virtual void contentsDragMoveEvent(QDragMoveEvent*);
399  virtual void contentsDragLeaveEvent(QDragLeaveEvent*);
400  virtual void contentsDropEvent(QDropEvent*);
401  virtual void contentsWheelEvent(QWheelEvent*);
402  virtual void contentsContextMenuEvent(QContextMenuEvent*);
403 
404 private:
405  friend class QtCanvas;
406  void drawContents(QPainter*);
409 
410 private slots:
411  void updateContentsSize();
412 
413 private:
414  Q_DISABLE_COPY(QtCanvasView)
415 };
416 
417 
418 class QtCanvasPixmap : public QPixmap {
419 public:
420 #ifndef QT_NO_IMAGEIO
421  QtCanvasPixmap(const QString& datafilename);
422 #endif
423  QtCanvasPixmap(const QImage& image);
424  QtCanvasPixmap(const QPixmap&, const QPoint& hotspot);
425  ~QtCanvasPixmap();
426 
427  int offsetX() const {
428  return hotx;
429  }
430  int offsetY() const {
431  return hoty;
432  }
433  void setOffset(int x, int y) {
434  hotx = x;
435  hoty = y;
436  }
437 
438 private:
439  Q_DISABLE_COPY(QtCanvasPixmap)
440 
441  void init(const QImage&);
442  void init(const QPixmap& pixmap, int hx, int hy);
443 
444  friend class QtCanvasSprite;
445  friend class QtCanvasPixmapArray;
446  friend bool qt_testCollision(const QtCanvasSprite* s1, const QtCanvasSprite* s2);
447 
448  int hotx, hoty;
449 
450  QImage* collision_mask;
451 };
452 
453 
455 public:
457 #ifndef QT_NO_IMAGEIO
458  QtCanvasPixmapArray(const QString& datafilenamepattern, int framecount = 0);
459 #endif
460  QtCanvasPixmapArray(const QList<QPixmap>& pixmaps, const QPolygon& hotspots = QPolygon());
462 
463 #ifndef QT_NO_IMAGEIO
464  bool readPixmaps(const QString& datafilenamepattern, int framecount = 0);
465  bool readCollisionMasks(const QString& filenamepattern);
466 #endif
467 
468  // deprecated
469  bool operator!(); // Failure check.
470  bool isValid() const;
471 
472  QtCanvasPixmap* image(int i) const {
473  return img ? img[i] : 0;
474  }
475  void setImage(int i, QtCanvasPixmap* p);
476  uint count() const {
477  return (uint)framecount;
478  }
479 
480 private:
481  Q_DISABLE_COPY(QtCanvasPixmapArray)
482 
483 #ifndef QT_NO_IMAGEIO
484  bool readPixmaps(const QString& datafilenamepattern, int framecount, bool maskonly);
485 #endif
486 
487  void reset();
490 };
491 
492 
493 class QtCanvasSprite : public QtCanvasItem {
494 public:
496 
497  void setSequence(QtCanvasPixmapArray* seq);
498 
499  virtual ~QtCanvasSprite();
500 
501  void move(double x, double y);
502  virtual void move(double x, double y, int frame);
503  void setFrame(int);
505  virtual void setFrameAnimation(FrameAnimationType = Cycle, int step = 1, int state = 0);
506  int frame() const {
507  return frm;
508  }
509  int frameCount() const {
510  return images->count();
511  }
512 
513  int rtti() const;
514  static int RTTI;
515 
516  bool collidesWith(const QtCanvasItem*) const;
517 
518  QRect boundingRect() const;
519 
520  // is there a reason for these to be protected? Lars
521 //protected:
522 
523  int width() const;
524  int height() const;
525 
526  int leftEdge() const;
527  int topEdge() const;
528  int rightEdge() const;
529  int bottomEdge() const;
530 
531  int leftEdge(int nx) const;
532  int topEdge(int ny) const;
533  int rightEdge(int nx) const;
534  int bottomEdge(int ny) const;
536  return images->image(frm);
537  }
538  virtual QtCanvasPixmap* imageAdvanced() const;
539  QtCanvasPixmap* image(int f) const {
540  return images->image(f);
541  }
542  virtual void advance(int stage);
543 
544 public:
545  void draw(QPainter& painter);
546 
547 private:
548  Q_DISABLE_COPY(QtCanvasSprite)
549 
550  void addToChunks();
551  void removeFromChunks();
552  void changeChunks();
553 
554  int frm;
555  ushort anim_val;
556  uint anim_state: 2;
557  uint anim_type: 14;
558  bool collidesWith(const QtCanvasSprite*,
559  const QtCanvasPolygonalItem*,
560  const QtCanvasRectangle*,
561  const QtCanvasEllipse*,
562  const QtCanvasText*) const;
563 
564  friend bool qt_testCollision(const QtCanvasSprite* s1,
565  const QtCanvasSprite* s2);
566 
568 };
569 
570 class QPolygonalProcessor;
571 
573 public:
575  virtual ~QtCanvasPolygonalItem();
576 
577  bool collidesWith(const QtCanvasItem*) const;
578 
579  virtual void setPen(QPen p);
580  virtual void setBrush(QBrush b);
581 
582  QPen pen() const {
583  return pn;
584  }
585  QBrush brush() const {
586  return br;
587  }
588 
589  virtual QPolygon areaPoints() const = 0;
590  virtual QPolygon areaPointsAdvanced() const;
591  QRect boundingRect() const;
592 
593  int rtti() const;
594  static int RTTI;
595 
596 protected:
597  void draw(QPainter&);
598  virtual void drawShape(QPainter&) = 0;
599 
600  bool winding() const;
601  void setWinding(bool);
602 
603  void invalidate();
604  bool isValid() const {
605  return (bool)val;
606  }
607 
608 private:
609  void scanPolygon(const QPolygon& pa, int winding,
610  QPolygonalProcessor& process) const;
611  QPolygon chunks() const;
612 
613  bool collidesWith(const QtCanvasSprite*,
614  const QtCanvasPolygonalItem*,
615  const QtCanvasRectangle*,
616  const QtCanvasEllipse*,
617  const QtCanvasText*) const;
618 
619  QBrush br;
620  QPen pn;
621  uint wind: 1;
622 };
623 
624 
626 public:
628  QtCanvasRectangle(const QRect&, QtCanvas* canvas);
629  QtCanvasRectangle(int x, int y, int width, int height, QtCanvas* canvas);
630 
632 
633  int width() const;
634  int height() const;
635  void setSize(int w, int h);
636  QSize size() const {
637  return QSize(w, h);
638  }
639  QPolygon areaPoints() const;
640  QRect rect() const {
641  return QRect(int(x()), int(y()), w, h);
642  }
643 
644  bool collidesWith(const QtCanvasItem*) const;
645 
646  int rtti() const;
647  static int RTTI;
648 
649 protected:
650  void drawShape(QPainter&);
651  QPolygon chunks() const;
652 
653 private:
654  bool collidesWith(const QtCanvasSprite*,
655  const QtCanvasPolygonalItem*,
656  const QtCanvasRectangle*,
657  const QtCanvasEllipse*,
658  const QtCanvasText*) const;
659 
660  int w, h;
661 };
662 
663 
665 public:
668  void setPoints(QPolygon);
669  QPolygon points() const;
670  void moveBy(double dx, double dy);
671 
672  QPolygon areaPoints() const;
673 
674  int rtti() const;
675  static int RTTI;
676 
677 protected:
678  void drawShape(QPainter&);
679  QPolygon poly;
680 };
681 
682 
684 public:
686  ~QtCanvasSpline();
687 
688  void setControlPoints(QPolygon, bool closed = true);
689  QPolygon controlPoints() const;
690  bool closed() const;
691 
692  int rtti() const;
693  static int RTTI;
694 
695 private:
696  void recalcPoly();
697  QPolygon bez;
698  bool cl;
699 };
700 
701 
703 public:
705  ~QtCanvasLine();
706  void setPoints(int x1, int y1, int x2, int y2);
707 
708  QPoint startPoint() const {
709  return QPoint(x1, y1);
710  }
711  QPoint endPoint() const {
712  return QPoint(x2, y2);
713  }
714 
715  int rtti() const;
716  static int RTTI;
717 
718  void setPen(QPen p);
719  void moveBy(double dx, double dy);
720 
721 protected:
722  void drawShape(QPainter&);
723  QPolygon areaPoints() const;
724 
725 private:
726  int x1, y1, x2, y2;
727 };
728 
729 
731 
732 public:
735  QtCanvasEllipse(int width, int height, int startangle, int angle,
736  QtCanvas* canvas);
737 
739 
740  int width() const;
741  int height() const;
742  void setSize(int w, int h);
743  void setAngles(int start, int length);
744  int angleStart() const {
745  return a1;
746  }
747  int angleLength() const {
748  return a2;
749  }
750  QPolygon areaPoints() const;
751 
752  bool collidesWith(const QtCanvasItem*) const;
753 
754  int rtti() const;
755  static int RTTI;
756 
757 protected:
758  void drawShape(QPainter&);
759 
760 private:
761  bool collidesWith(const QtCanvasSprite*,
762  const QtCanvasPolygonalItem*,
763  const QtCanvasRectangle*,
764  const QtCanvasEllipse*,
765  const QtCanvasText*) const;
766  int w, h;
767  int a1, a2;
768 };
769 
770 
771 class QtCanvasTextExtra;
772 
773 class QtCanvasText : public QtCanvasItem {
774 public:
776  QtCanvasText(const QString&, QtCanvas* canvas);
777  QtCanvasText(const QString&, QFont, QtCanvas* canvas);
778 
779  virtual ~QtCanvasText();
780 
781  void setText(const QString&);
782  void setFont(const QFont&);
783  void setColor(const QColor&);
784  QString text() const;
785  QFont font() const;
786  QColor color() const;
787 
788  void moveBy(double dx, double dy);
789 
790  int textFlags() const {
791  return flags;
792  }
793  void setTextFlags(int);
794 
795  QRect boundingRect() const;
796 
797  bool collidesWith(const QtCanvasItem*) const;
798 
799  int rtti() const;
800  static int RTTI;
801 
802 protected:
803  virtual void draw(QPainter&);
804 
805 private:
806  Q_DISABLE_COPY(QtCanvasText)
807 
808  void addToChunks();
809  void removeFromChunks();
810  void changeChunks();
811 
812  void setRect();
813  QRect brect;
814  QString txt;
815  int flags;
816  QFont fnt;
817  QColor col;
818  QtCanvasTextExtra* extra;
819 
820  bool collidesWith(const QtCanvasSprite*,
821  const QtCanvasPolygonalItem*,
822  const QtCanvasRectangle*,
823  const QtCanvasEllipse*,
824  const QtCanvasText*) const;
825 };
826 
827 #endif // QTCANVAS_H
QtCanvasText::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4634
QtCanvasPolygonScanner
Definition: canvas_typed/qtcanvas.cpp:5759
QtCanvas::init
void init(int w, int h, int chunksze=16, int maxclust=100)
Definition: canvas_typed/qtcanvas.cpp:498
_EdgeTableEntry
Definition: canvas_typed/qtcanvas.cpp:5088
QtCanvasWidget::dropEvent
void dropEvent(QDropEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3087
QtCanvasChunk::add
void add(QtCanvasItem *item)
Definition: canvas_typed/qtcanvas.cpp:298
QtCanvas::resized
void resized()
QtCanvas::backgroundColor
QColor backgroundColor() const
Definition: canvas_typed/qtcanvas.cpp:1252
QtCanvasLine
Definition: canvas_typed/qtcanvas.h:702
QtCanvas::qt_unview
friend void qt_unview(QtCanvas *c)
QtCanvasItem::isVisible
bool isVisible() const
Definition: canvas_typed/qtcanvas.h:120
SLLSPERBLOCK
#define SLLSPERBLOCK
Definition: canvas_variant/qtcanvas.cpp:5117
QtCanvasView::contentsMousePressEvent
virtual void contentsMousePressEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3168
collision_double_dispatch
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
_EdgeTableEntry::back
struct _EdgeTableEntry * back
Definition: canvas_typed/qtcanvas.cpp:5092
DDXPointRec::x
int x
Definition: canvas_typed/qtcanvas.cpp:5338
miFreeStorage
static void miFreeStorage(ScanLineListBlock *pSLLBlock)
Definition: canvas_typed/qtcanvas.cpp:5347
QtCanvasItem::setX
void setX(double a)
Definition: canvas_typed/qtcanvas.h:84
QtCanvas::debug_redraw_areas
bool debug_redraw_areas
Definition: canvas_typed/qtcanvas.h:356
QtCanvasPolygonalItem::chunks
QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:3621
QtCanvasText::textFlags
int textFlags() const
Definition: canvas_typed/qtcanvas.h:790
QtCanvas::tileWidth
int tileWidth() const
Definition: canvas_typed/qtcanvas.h:242
QtCanvasEllipse::width
int width() const
Definition: canvas_typed/qtcanvas.cpp:4262
QtCanvasEllipse::height
int height() const
Definition: canvas_typed/qtcanvas.cpp:4269
QtCanvasPixmapArray::framecount
int framecount
Definition: canvas_typed/qtcanvas.h:488
QtCanvasPolygonScanner::processSpans
void processSpans(int n, QPoint *point, int *width)
Definition: canvas_typed/qtcanvas.cpp:5765
QtCanvas::update_timer
QTimer * update_timer
Definition: canvas_typed/qtcanvas.h:354
QtCanvasSpline::cl
bool cl
Definition: canvas_typed/qtcanvas.h:698
QtCanvasPixmap
Definition: canvas_typed/qtcanvas.h:418
QtCanvas::onCanvas
bool onCanvas(int x, int y) const
Definition: canvas_typed/qtcanvas.h:262
QtCanvasClusterizer::add
void add(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:131
QtCanvas::vtiles
ushort vtiles
Definition: canvas_typed/qtcanvas.h:349
EVALUATEEDGEEVENODD
#define EVALUATEEDGEEVENODD(pAET, pPrevAET, y)
Definition: canvas_variant/qtcanvas.cpp:5166
QtPolygonScanner::Top
@ Top
Definition: canvas_typed/qtcanvas.cpp:4886
QtCanvas::validChunk
bool validChunk(int x, int y) const
Definition: canvas_typed/qtcanvas.h:268
defaultPolygonPen
static const QPen & defaultPolygonPen()
Definition: canvas_variant/qtcanvas.cpp:3375
QtCanvasSprite::move
void move(double x, double y)
Definition: canvas_typed/qtcanvas.cpp:4850
micomputeWAET
static void micomputeWAET(EdgeTableEntry *AET)
Definition: canvas_typed/qtcanvas.cpp:5490
QtCanvasEllipse::h
int h
Definition: canvas_typed/qtcanvas.h:766
QtCanvasSprite::advance
virtual void advance(int stage)
Definition: canvas_typed/qtcanvas.cpp:4803
QtCanvasChunk::remove
void remove(QtCanvasItem *item)
Definition: canvas_typed/qtcanvas.cpp:303
DDXPointPtr
struct DDXPointRec * DDXPointPtr
QtCanvasItemExtra::vy
double vy
Definition: canvas_typed/qtcanvas.cpp:1491
QtCanvasItem::setActive
virtual void setActive(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1943
QtCanvasSprite::anim_state
uint anim_state
Definition: canvas_typed/qtcanvas.h:556
QtCanvas::setChanged
virtual void setChanged(const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:986
QtCanvasPolygonalItem::areaPointsAdvanced
virtual QPolygon areaPointsAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:3460
QtCanvas::width
int width() const
Definition: canvas_typed/qtcanvas.h:250
QtCanvasItem::QtCanvasLine
friend class QtCanvasLine
Definition: canvas_typed/qtcanvas.h:184
QtCanvasItem::hide
void hide()
Definition: canvas_typed/qtcanvas.cpp:1821
QtCanvasWidget::wheelEvent
void wheelEvent(QWheelEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3090
QtCanvasSprite::frm
int frm
Definition: canvas_typed/qtcanvas.h:554
QtCanvasItem::show
void show()
Definition: canvas_typed/qtcanvas.cpp:1816
miloadAET
static void miloadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
Definition: canvas_variant/qtcanvas.cpp:5445
QtCanvasPolygonalItem::br
QBrush br
Definition: canvas_typed/qtcanvas.h:619
_EdgeTableEntry::ClockWise
int ClockWise
Definition: canvas_typed/qtcanvas.cpp:5094
QtCanvasView::contentsDragMoveEvent
virtual void contentsDragMoveEvent(QDragMoveEvent *)
Definition: canvas_typed/qtcanvas.cpp:3187
QtCanvas::chheight
int chheight
Definition: canvas_typed/qtcanvas.h:341
QtCanvasItem::isSelected
bool isSelected() const
Definition: canvas_typed/qtcanvas.h:124
QtCanvasItem::cnv
QtCanvas * cnv
Definition: canvas_typed/qtcanvas.h:197
QPolygonalProcessor::QPolygonalProcessor
QPolygonalProcessor(QtCanvas *c, const QPolygon &pa)
Definition: canvas_typed/qtcanvas.cpp:3479
QtCanvas::drawArea
void drawArea(const QRect &, QPainter *p, bool double_buffer=false)
Definition: canvas_typed/qtcanvas.cpp:1084
QPolygonalProcessor
Definition: canvas_typed/qtcanvas.cpp:3477
QtCanvasWidget::QtCanvasWidget
QtCanvasWidget(QtCanvasView *view)
Definition: canvas_typed/qtcanvas.cpp:3061
QtCanvasPolygonalItem::pn
QPen pn
Definition: canvas_typed/qtcanvas.h:620
if
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::~QtCanvasSpline
~QtCanvasSpline()
Definition: canvas_typed/qtcanvas.cpp:3834
QtCanvasText::fnt
QFont fnt
Definition: canvas_typed/qtcanvas.h:816
QtCanvasItem::setAnimated
virtual void setAnimated(bool y)
Definition: canvas_typed/qtcanvas.cpp:1704
QtCanvasText::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2235
QtCanvasText::moveBy
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:4510
QtCanvasItemList
QList< QtCanvasItem * > QtCanvasItemList
Definition: canvas_typed/qtcanvas.h:60
QtCanvasItem::QtCanvasPolygonalItem
friend class QtCanvasPolygonalItem
Definition: canvas_typed/qtcanvas.h:178
QtCanvasPolygon
Definition: canvas_typed/qtcanvas.h:664
QtCanvasData::animDict
QSet< QtCanvasItem * > animDict
Definition: canvas_typed/qtcanvas.cpp:63
QtCanvasRectangle::drawShape
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4178
QtCanvasView::setHighQualityRendering
void setHighQualityRendering(bool enable)
Definition: canvas_typed/qtcanvas.cpp:3162
QtCanvasItem::Rtti_Text
@ Rtti_Text
Definition: canvas_typed/qtcanvas.h:152
qt_testCollision
bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
defaultPolygonBrush
static const QBrush & defaultPolygonBrush()
Definition: canvas_typed/qtcanvas.cpp:3383
QtCanvasItem::update
void update()
Definition: canvas_typed/qtcanvas.h:171
QtPolygonScanner::Left
@ Left
Definition: canvas_typed/qtcanvas.cpp:4886
QtCanvasView::viewing
QtCanvas * viewing
Definition: canvas_typed/qtcanvas.h:407
QtCanvasPolygonalItem::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2189
QtCanvasView::~QtCanvasView
~QtCanvasView()
Definition: canvas_typed/qtcanvas.cpp:3141
QtCanvas::addView
virtual void addView(QtCanvasView *)
Definition: canvas_typed/qtcanvas.cpp:833
QtCanvasSprite::rightEdge
int rightEdge() const
Definition: canvas_typed/qtcanvas.cpp:2840
QtCanvasSprite::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2168
QtCanvas::bgcolor
QColor bgcolor
Definition: canvas_typed/qtcanvas.h:355
QtCanvas::tilew
ushort tilew
Definition: canvas_typed/qtcanvas.h:350
QtCanvasClusterizer::clusters
int clusters() const
Definition: canvas_typed/qtcanvas.cpp:86
DDXPointRec
Definition: canvas_typed/qtcanvas.cpp:5334
a
#define a
QtCanvasView::inverseWorldMatrix
const QMatrix & inverseWorldMatrix() const
Definition: canvas_typed/qtcanvas.cpp:3251
QtCanvasPolygonalItem::winding
bool winding() const
Definition: canvas_typed/qtcanvas.cpp:3417
QtCanvasLine::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:716
QtCanvas::setAllChanged
virtual void setAllChanged()
Definition: canvas_typed/qtcanvas.cpp:978
QtCanvas::chunkContaining
QtCanvasChunk & chunkContaining(int x, int y) const
Definition: canvas_typed/qtcanvas.cpp:591
QtCanvasSprite::width
int width() const
Definition: canvas_typed/qtcanvas.cpp:2978
QtCanvasPixmapArray::operator!
bool operator!()
Definition: canvas_typed/qtcanvas.cpp:2735
miInsertEdgeInET
static bool miInsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline, ScanLineListBlock **SLLBlock, int *iSLLBlock)
Definition: canvas_typed/qtcanvas.cpp:5250
QtCanvasWidget::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3078
QtCanvasSprite::boundingRect
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:2909
QtCanvas::setUnchanged
virtual void setUnchanged(const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1014
QtCanvasData
Definition: canvas_typed/qtcanvas.cpp:56
QtCanvasData::QtCanvasData
QtCanvasData()
Definition: canvas_typed/qtcanvas.cpp:58
QtCanvasText::font
QFont font() const
Definition: canvas_typed/qtcanvas.cpp:4469
_ScanLineListBlock::SLLs
ScanLineList SLLs[SLLSPERBLOCK]
Definition: canvas_typed/qtcanvas.cpp:5120
QtCanvasText::setTextFlags
void setTextFlags(int)
Definition: canvas_typed/qtcanvas.cpp:4431
QtCanvasData::viewList
QList< QtCanvasView * > viewList
Definition: canvas_typed/qtcanvas.cpp:61
QtCanvasItem::RttiValues
RttiValues
Definition: canvas_typed/qtcanvas.h:148
QtCanvasPolygonalItem::areaPoints
virtual QPolygon areaPoints() const =0
QtCanvasViewData::highQuality
bool highQuality
Definition: canvas_typed/qtcanvas.cpp:71
QtCanvasText::setColor
void setColor(const QColor &)
Definition: canvas_typed/qtcanvas.cpp:4501
QtCanvasItem::y
double y() const
Definition: canvas_typed/qtcanvas.h:75
_ScanLineList::edgelist
EdgeTableEntry * edgelist
Definition: canvas_typed/qtcanvas.cpp:5100
QtCanvasSprite::bottomEdge
int bottomEdge() const
Definition: canvas_typed/qtcanvas.cpp:2864
QtCanvasPolygon::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:675
QtCanvasPolygonalItem::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:594
QPolygonalProcessor::pnt
int pnt
Definition: canvas_typed/qtcanvas.cpp:3613
QtCanvas::removeItemFromChunk
void removeItemFromChunk(QtCanvasItem *, int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1208
QtPolygonScanner::processSpans
virtual void processSpans(int n, QPoint *point, int *width)=0
QtCanvasView::contentsMouseDoubleClickEvent
virtual void contentsMouseDoubleClickEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3176
QtCanvasEllipse::~QtCanvasEllipse
~QtCanvasEllipse()
Definition: canvas_typed/qtcanvas.cpp:4255
QtCanvasWidget::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3081
qtcanvas.h
QtCanvasItem::Rtti_PolygonalItem
@ Rtti_PolygonalItem
Definition: canvas_typed/qtcanvas.h:151
miFreeStorage
static void miFreeStorage(ScanLineListBlock *pSLLBlock)
Definition: canvas_variant/qtcanvas.cpp:5347
QtCanvasWidget::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3075
QtCanvasPolygonScanner::processor
QPolygonalProcessor & processor
Definition: canvas_typed/qtcanvas.cpp:5760
QtCanvas::addItemToChunkContaining
void addItemToChunkContaining(QtCanvasItem *, int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1222
QtCanvasSpline::closed
bool closed() const
Definition: canvas_typed/qtcanvas.cpp:3875
QtCanvasItem::myx
double myx
Definition: canvas_typed/qtcanvas.h:199
QtCanvasPolygonalItem::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4624
QtCanvasRectangle::setSize
void setSize(int w, int h)
Definition: canvas_typed/qtcanvas.cpp:4132
QtCanvasEllipse::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:755
QtCanvasPolygonalItem::isValid
bool isValid() const
Definition: canvas_typed/qtcanvas.h:604
QtCanvasPixmap::offsetY
int offsetY() const
Definition: canvas_typed/qtcanvas.h:430
QtCanvas::backgroundPixmap
QPixmap backgroundPixmap() const
Definition: canvas_typed/qtcanvas.cpp:1281
QtCanvas::QtCanvas
QtCanvas(QObject *parent=0)
Definition: canvas_typed/qtcanvas.cpp:522
QtCanvasSprite::frame
int frame() const
Definition: canvas_typed/qtcanvas.h:506
EVALUATEEDGEWINDING
#define EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET)
Definition: canvas_variant/qtcanvas.cpp:5143
QtCanvas::chunk
QtCanvasChunk & chunk(int i, int j) const
Definition: canvas_typed/qtcanvas.cpp:583
QtCanvasPolygonalItem::drawShape
virtual void drawShape(QPainter &)=0
QtCanvasSprite::draw
void draw(QPainter &painter)
Definition: canvas_typed/qtcanvas.cpp:2996
QtCanvasItemExtra
Definition: canvas_typed/qtcanvas.cpp:1489
QtPolygonScanner::Edge
Edge
Definition: canvas_typed/qtcanvas.cpp:4886
QtCanvasItem::sel
uint sel
Definition: canvas_typed/qtcanvas.h:205
QtCanvasViewData
Definition: canvas_typed/qtcanvas.cpp:66
QtCanvasWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3069
QtCanvasText::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:800
QtCanvasSprite::anim_type
uint anim_type
Definition: canvas_typed/qtcanvas.h:557
QtCanvasRectangle::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4654
QtCanvasView::canvas
QtCanvas * canvas() const
Definition: canvas_typed/qtcanvas.h:374
QtCanvasItem::canvas
QtCanvas * canvas() const
Definition: canvas_typed/qtcanvas.h:166
QtCanvasItem::QtCanvasText
friend class QtCanvasText
Definition: canvas_typed/qtcanvas.h:183
QtCanvasPolygonalItem::~QtCanvasPolygonalItem
virtual ~QtCanvasPolygonalItem()
Definition: canvas_typed/qtcanvas.cpp:3405
QtCanvasItem::Rtti_Line
@ Rtti_Line
Definition: canvas_typed/qtcanvas.h:156
QtCanvasPolygon::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4644
QtCanvasRectangle::rect
QRect rect() const
Definition: canvas_typed/qtcanvas.h:640
QtCanvasViewData::ixform
QMatrix ixform
Definition: canvas_typed/qtcanvas.cpp:70
QtCanvasSprite::height
int height() const
Definition: canvas_typed/qtcanvas.cpp:2987
QtCanvas::tile
int tile(int x, int y) const
Definition: canvas_typed/qtcanvas.h:231
QtCanvasChunk::m_list
QtCanvasItemList m_list
Definition: canvas_typed/qtcanvas.cpp:323
_ScanLineListBlock::next
struct _ScanLineListBlock * next
Definition: canvas_typed/qtcanvas.cpp:5121
QtCanvasText::draw
virtual void draw(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4527
QtCanvasChunk::hasChanged
bool hasChanged() const
Definition: canvas_typed/qtcanvas.cpp:312
QtCanvasClusterizer::operator[]
const QRect & operator[](int i) const
Definition: canvas_typed/qtcanvas.cpp:266
QtCanvasItem::animated
bool animated() const
Definition: canvas_typed/qtcanvas.cpp:1693
QtCanvas::allItems
QtCanvasItemList allItems()
Definition: canvas_typed/qtcanvas.cpp:598
QtCanvasItem::ext
QtCanvasItemExtra * ext
Definition: canvas_typed/qtcanvas.h:200
gcd
static int gcd(int a, int b)
Definition: canvas_typed/qtcanvas.cpp:328
QtCanvas::rect
QRect rect() const
Definition: canvas_typed/qtcanvas.h:259
MININT
#define MININT
Definition: canvas_variant/qtcanvas.cpp:5229
QtCanvasEllipse::areaPoints
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4325
QtCanvasItem::x
double x() const
Definition: canvas_typed/qtcanvas.h:72
QtCanvas::d
QtCanvasData * d
Definition: canvas_typed/qtcanvas.h:344
QtCanvasItem::extra
QtCanvasItemExtra & extra()
Definition: canvas_typed/qtcanvas.cpp:1611
QtCanvasItem::val
uint val
Definition: canvas_typed/qtcanvas.h:204
QtCanvasItem::chunks
virtual QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:2918
QtCanvasRectangle::~QtCanvasRectangle
~QtCanvasRectangle()
Definition: canvas_typed/qtcanvas.cpp:4110
QtCanvasSprite::Oscillate
@ Oscillate
Definition: canvas_typed/qtcanvas.h:504
MAXINT
#define MAXINT
Definition: canvas_typed/qtcanvas.cpp:5228
QtCanvasItem::setZ
void setZ(double a)
Definition: canvas_typed/qtcanvas.h:90
QtCanvas::onCanvas
bool onCanvas(const QPoint &p) const
Definition: canvas_typed/qtcanvas.h:265
QtCanvas::tilesHorizontally
int tilesHorizontally() const
Definition: canvas_typed/qtcanvas.h:235
QtCanvasWidget::m_view
QtCanvasView * m_view
Definition: canvas_typed/qtcanvas.cpp:3097
QtCanvasItem::setEnabled
virtual void setEnabled(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1914
QtCanvasItem::boundingRectAdvanced
virtual QRect boundingRectAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:2409
QtCanvasView::d
QtCanvasViewData * d
Definition: canvas_typed/qtcanvas.h:408
QtCanvasViewData::QtCanvasViewData
QtCanvasViewData()
Definition: canvas_typed/qtcanvas.cpp:68
QtCanvasPixmapArray::count
uint count() const
Definition: canvas_typed/qtcanvas.h:476
QtCanvas::tileHeight
int tileHeight() const
Definition: canvas_typed/qtcanvas.h:245
QtPolygonScanner
Definition: canvas_typed/qtcanvas.cpp:4881
QtCanvasSprite::setFrame
void setFrame(int)
Definition: canvas_typed/qtcanvas.cpp:4759
QtCanvasSprite::images
QtCanvasPixmapArray * images
Definition: canvas_typed/qtcanvas.h:567
QtCanvasView::setCanvas
void setCanvas(QtCanvas *v)
Definition: canvas_typed/qtcanvas.cpp:3216
QtCanvas::htiles
ushort htiles
Definition: canvas_typed/qtcanvas.h:348
QtCanvasChunk
Definition: canvas_typed/qtcanvas.cpp:284
QtCanvasItem::collidesWith
virtual bool collidesWith(const QtCanvasItem *) const =0
QtCanvasPixmap::offsetX
int offsetX() const
Definition: canvas_typed/qtcanvas.h:427
QtCanvasViewData::xform
QMatrix xform
Definition: canvas_typed/qtcanvas.cpp:69
_EdgeTableEntry::nextWETE
struct _EdgeTableEntry * nextWETE
Definition: canvas_typed/qtcanvas.cpp:5093
QtCanvasItem::visible
bool visible() const
Definition: canvas_typed/qtcanvas.h:135
QtCanvasEllipse::setAngles
void setAngles(int start, int length)
Definition: canvas_typed/qtcanvas.cpp:4313
QtCanvasLine::areaPoints
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4006
QtCanvasClusterizer::count
int count
Definition: canvas_typed/qtcanvas.cpp:93
QtCanvasEllipse::drawShape
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4337
_ScanLineList::scanline
int scanline
Definition: canvas_typed/qtcanvas.cpp:5099
QtCanvasSpline::setControlPoints
void setControlPoints(QPolygon, bool closed=true)
Definition: canvas_typed/qtcanvas.cpp:3850
QtCanvasSprite::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:514
QtCanvasView::updateContentsSize
void updateContentsSize()
Definition: canvas_typed/qtcanvas.cpp:3279
QtCanvasPolygonScanner::QtCanvasPolygonScanner
QtCanvasPolygonScanner(QPolygonalProcessor &p)
Definition: canvas_typed/qtcanvas.cpp:5762
QtCanvasItem::setCanvas
virtual void setCanvas(QtCanvas *)
Definition: canvas_typed/qtcanvas.cpp:1790
QtCanvasItem::changeChunks
virtual void changeChunks()
Definition: canvas_typed/qtcanvas.cpp:2383
QtCanvasEllipse::angleLength
int angleLength() const
Definition: canvas_typed/qtcanvas.h:747
QtCanvasPixmapArray::readCollisionMasks
bool readCollisionMasks(const QString &filenamepattern)
Definition: canvas_typed/qtcanvas.cpp:2679
QtCanvas::setTile
virtual void setTile(int x, int y, int tilenum)
Definition: canvas_typed/qtcanvas.cpp:1473
QtCanvasRectangle::w
int w
Definition: canvas_typed/qtcanvas.h:660
QtCanvasItem::act
uint act
Definition: canvas_typed/qtcanvas.h:207
QtCanvasPixmapArray::~QtCanvasPixmapArray
~QtCanvasPixmapArray()
Definition: canvas_typed/qtcanvas.cpp:2620
QtCanvasItem::boundingRect
virtual QRect boundingRect() const =0
QtCanvasPolygon::setPoints
void setPoints(QPolygon)
Definition: canvas_typed/qtcanvas.cpp:3768
QtCanvas::tilesVertically
int tilesVertically() const
Definition: canvas_typed/qtcanvas.h:238
miCreateETandAET
static bool miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET, EdgeTableEntry *AET, EdgeTableEntry *pETEs, ScanLineListBlock *pSLLBlock)
Definition: canvas_typed/qtcanvas.cpp:5358
QtCanvasRectangle::size
QSize size() const
Definition: canvas_typed/qtcanvas.h:636
_EdgeTableEntry::ymax
int ymax
Definition: canvas_typed/qtcanvas.cpp:5089
QtCanvasPolygonalItem
Definition: canvas_typed/qtcanvas.h:572
QtCanvas::removeView
virtual void removeView(QtCanvasView *)
Definition: canvas_typed/qtcanvas.cpp:848
QtCanvasPixmap::hoty
int hoty
Definition: canvas_typed/qtcanvas.h:448
QtCanvasRectangle::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:647
QtCanvas::drawCanvasArea
void drawCanvasArea(const QRect &, QPainter *p=0, bool double_buffer=true)
Definition: canvas_typed/qtcanvas.cpp:1093
QtCanvas::resize
virtual void resize(int width, int height)
Definition: canvas_typed/qtcanvas.cpp:607
QtCanvasText::boundingRect
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:4407
QtCanvasPolygonalItem::brush
QBrush brush() const
Definition: canvas_typed/qtcanvas.h:585
QtCanvasLine::y1
int y1
Definition: canvas_typed/qtcanvas.h:726
QPolygonalProcessor::add
void add(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:3496
QtCanvasView::contentsDragLeaveEvent
virtual void contentsDragLeaveEvent(QDragLeaveEvent *)
Definition: canvas_typed/qtcanvas.cpp:3190
QtCanvasItem::Rtti_Ellipse
@ Rtti_Ellipse
Definition: canvas_typed/qtcanvas.h:155
QtCanvasItem::z
double z() const
Definition: canvas_typed/qtcanvas.h:78
QtCanvasPolygonalItem::scanPolygon
void scanPolygon(const QPolygon &pa, int winding, QPolygonalProcessor &process) const
Definition: canvas_typed/qtcanvas.cpp:5770
QtCanvasView::highQualityRendering
bool highQualityRendering
Definition: canvas_typed/qtcanvas.h:367
QtCanvas::height
int height() const
Definition: canvas_typed/qtcanvas.h:253
QtCanvas::setTiles
virtual void setTiles(QPixmap tiles, int h, int v, int tilewidth, int tileheight)
Definition: canvas_typed/qtcanvas.cpp:1391
QtCanvasItem::Rtti_Item
@ Rtti_Item
Definition: canvas_typed/qtcanvas.h:149
QtCanvasItem::setYVelocity
void setYVelocity(double vy)
Definition: canvas_typed/qtcanvas.h:101
QtCanvasItem::collisions
QtCanvasItemList collisions(bool exact) const
Definition: canvas_typed/qtcanvas.cpp:2285
QtCanvasItem::myy
double myy
Definition: canvas_typed/qtcanvas.h:199
QtCanvasItem::setSelected
virtual void setSelected(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1885
QtPolygonScanner::scan
void scan(const QPolygon &pa, bool winding, int index=0, int npoints=-1)
Definition: canvas_typed/qtcanvas.cpp:5561
QtCanvasItem::current_canvas
static QtCanvas * current_canvas
Definition: canvas_typed/qtcanvas.h:198
QtCanvasSprite::~QtCanvasSprite
virtual ~QtCanvasSprite()
Definition: canvas_typed/qtcanvas.cpp:4747
QtCanvasRectangle
Definition: canvas_typed/qtcanvas.h:625
QPolygonalProcessor::addBits
void addBits(int x1, int x2, uchar newbits, int xo, int yo)
Definition: canvas_typed/qtcanvas.cpp:3511
QtCanvasItem::setY
void setY(double a)
Definition: canvas_typed/qtcanvas.h:87
QtCanvasEllipse::w
int w
Definition: canvas_typed/qtcanvas.h:766
QtCanvasItem::QtCanvasEllipse
friend class QtCanvasEllipse
Definition: canvas_typed/qtcanvas.h:182
QtCanvasEllipse::setSize
void setSize(int w, int h)
Definition: canvas_typed/qtcanvas.cpp:4276
QtCanvasItem
Definition: canvas_typed/qtcanvas.h:67
QPolygonalProcessor::bitmap
QImage bitmap
Definition: canvas_typed/qtcanvas.cpp:3617
QtCanvasItem::moveBy
virtual void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:1669
defaultPolygonBrush
static const QBrush & defaultPolygonBrush()
Definition: canvas_variant/qtcanvas.cpp:3383
_EdgeTableEntry::bres
BRESINFO bres
Definition: canvas_typed/qtcanvas.cpp:5090
QtCanvas::setUpdatePeriod
virtual void setUpdatePeriod(int ms)
Definition: canvas_typed/qtcanvas.cpp:882
QtCanvas::~QtCanvas
virtual ~QtCanvas()
Definition: canvas_typed/qtcanvas.cpp:566
QtCanvasItem::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:161
QtCanvas::setChangedChunkContaining
virtual void setChangedChunkContaining(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1181
QtCanvasSpline::controlPoints
QPolygon controlPoints() const
Definition: canvas_typed/qtcanvas.cpp:3867
QtCanvas::aheight
int aheight
Definition: canvas_typed/qtcanvas.h:338
ScanLineList
struct _ScanLineList ScanLineList
miloadAET
static void miloadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
Definition: canvas_typed/qtcanvas.cpp:5445
QPolygonalProcessor::canvas
QtCanvas * canvas
Definition: canvas_typed/qtcanvas.cpp:3615
QtCanvasPolygonalItem::setWinding
void setWinding(bool)
Definition: canvas_typed/qtcanvas.cpp:3430
QtCanvasItem::setVelocity
virtual void setVelocity(double vx, double vy)
Definition: canvas_typed/qtcanvas.cpp:1738
QtCanvasClusterizer::clear
void clear()
Definition: canvas_typed/qtcanvas.cpp:127
QtCanvasPolygonalItem::boundingRect
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:3647
QtCanvasText::setText
void setText(const QString &)
Definition: canvas_typed/qtcanvas.cpp:4455
QtCanvasRectangle::h
int h
Definition: canvas_typed/qtcanvas.h:660
QtCanvasClusterizer::QtCanvasClusterizer
QtCanvasClusterizer(int maxclusters)
Definition: canvas_typed/qtcanvas.cpp:117
qt_testCollision
bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_variant/qtcanvas.cpp:1950
QPolygonalProcessor::result
QPolygon result
Definition: canvas_typed/qtcanvas.cpp:3614
QtCanvasPixmapArray::readPixmaps
bool readPixmaps(const QString &datafilenamepattern, int framecount=0)
Definition: canvas_typed/qtcanvas.cpp:2652
QtCanvasText::brect
QRect brect
Definition: canvas_typed/qtcanvas.h:813
QtCanvasView::drawContents
virtual void drawContents(QPainter *p, int cx, int cy, int cw, int ch)
Definition: canvas_typed/qtcanvas.cpp:3296
QtCanvasItemLess
Definition: canvas_typed/qtcanvas.cpp:273
QtCanvasPixmapArray
Definition: canvas_typed/qtcanvas.h:454
QtCanvasPixmapArray::reset
void reset()
Definition: canvas_typed/qtcanvas.cpp:2624
QtCanvasSpline
Definition: canvas_typed/qtcanvas.h:683
QtCanvas::chwidth
int chwidth
Definition: canvas_typed/qtcanvas.h:341
QtCanvasItem::move
void move(double x, double y)
Definition: canvas_typed/qtcanvas.cpp:1682
QtCanvasWidget::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3072
QtCanvasText::removeFromChunks
void removeFromChunks()
Definition: canvas_typed/qtcanvas.cpp:4564
QtCanvas::tileh
ushort tileh
Definition: canvas_typed/qtcanvas.h:351
QtCanvasChunk::changed
bool changed
Definition: canvas_typed/qtcanvas.cpp:324
ScanLineListBlock
struct _ScanLineListBlock ScanLineListBlock
QtCanvasPixmap::collision_mask
QImage * collision_mask
Definition: canvas_typed/qtcanvas.h:450
EdgeTable::ymin
int ymin
Definition: canvas_typed/qtcanvas.cpp:5107
QtCanvas::awidth
int awidth
Definition: canvas_typed/qtcanvas.h:338
BRESINFO::minor
int minor
Definition: canvas_typed/qtcanvas.cpp:5073
EdgeTable::scanlines
ScanLineList scanlines
Definition: canvas_typed/qtcanvas.cpp:5108
QtCanvas::changeBounds
QRect changeBounds()
Definition: canvas_typed/qtcanvas.cpp:1041
QtCanvasLine::startPoint
QPoint startPoint() const
Definition: canvas_typed/qtcanvas.h:708
QtCanvasLine::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4674
QtCanvas::addAnimation
virtual void addAnimation(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:806
gcd
static int gcd(int a, int b)
Definition: canvas_variant/qtcanvas.cpp:328
QtCanvasItem::QtCanvasSprite
friend class QtCanvasSprite
Definition: canvas_typed/qtcanvas.h:179
QtCanvasSpline::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4684
QtCanvasItem::ena
uint ena
Definition: canvas_typed/qtcanvas.h:206
QtCanvasText::changeChunks
void changeChunks()
Definition: canvas_typed/qtcanvas.cpp:4536
QtCanvasLine::setPoints
void setPoints(int x1, int y1, int x2, int y2)
Definition: canvas_typed/qtcanvas.cpp:3982
QtCanvasPixmap::init
void init(const QImage &)
Definition: canvas_typed/qtcanvas.cpp:2476
QtCanvasView::worldMatrix
const QMatrix & worldMatrix() const
Definition: canvas_typed/qtcanvas.cpp:3241
QtCanvasSprite::leftEdge
int leftEdge() const
Definition: canvas_typed/qtcanvas.cpp:2792
ScanLineList
struct _ScanLineList ScanLineList
QtCanvasView::contentsWheelEvent
virtual void contentsWheelEvent(QWheelEvent *)
Definition: canvas_typed/qtcanvas.cpp:3196
QtCanvasLine::moveBy
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:4053
QtCanvasSpline::QtCanvasSpline
QtCanvasSpline(QtCanvas *canvas)
Definition: canvas_typed/qtcanvas.cpp:3826
miInsertEdgeInET
static bool miInsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline, ScanLineListBlock **SLLBlock, int *iSLLBlock)
Definition: canvas_variant/qtcanvas.cpp:5250
QtCanvas::initTiles
void initTiles(QPixmap p, int h, int v, int tilewidth, int tileheight)
defaultPolygonPen
static const QPen & defaultPolygonPen()
Definition: canvas_typed/qtcanvas.cpp:3375
EdgeTableEntry
struct _EdgeTableEntry EdgeTableEntry
scm
static int scm(int a, int b)
Definition: canvas_variant/qtcanvas.cpp:337
qtcanvas.h
QtCanvasLine::endPoint
QPoint endPoint() const
Definition: canvas_typed/qtcanvas.h:711
QtCanvasSprite::frameCount
int frameCount() const
Definition: canvas_typed/qtcanvas.h:509
miCreateETandAET
static bool miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET, EdgeTableEntry *AET, EdgeTableEntry *pETEs, ScanLineListBlock *pSLLBlock)
Definition: canvas_variant/qtcanvas.cpp:5358
QtCanvasView::contentsMouseMoveEvent
virtual void contentsMouseMoveEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3180
EdgeTable
Definition: canvas_typed/qtcanvas.cpp:5105
scm
static int scm(int a, int b)
Definition: canvas_typed/qtcanvas.cpp:337
QtCanvasView::contentsContextMenuEvent
virtual void contentsContextMenuEvent(QContextMenuEvent *)
Definition: canvas_typed/qtcanvas.cpp:3200
QtCanvasPixmapArray::img
QtCanvasPixmap ** img
Definition: canvas_typed/qtcanvas.h:489
QtCanvas::drawViewArea
void drawViewArea(QtCanvasView *view, QPainter *p, const QRect &r, bool dbuf)
Definition: canvas_typed/qtcanvas.cpp:945
QtCanvasWidget::mousePressEvent
void mousePressEvent(QMouseEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3066
QtCanvasPolygonalItem::wind
uint wind
Definition: canvas_typed/qtcanvas.h:621
QtCanvasText::extra
QtCanvasTextExtra * extra
Definition: canvas_typed/qtcanvas.h:818
QtCanvasView::contentsDragEnterEvent
virtual void contentsDragEnterEvent(QDragEnterEvent *)
Definition: canvas_typed/qtcanvas.cpp:3184
QtCanvasSprite::setFrameAnimation
virtual void setFrameAnimation(FrameAnimationType=Cycle, int step=1, int state=0)
Definition: canvas_typed/qtcanvas.cpp:4788
QtCanvasText::addToChunks
void addToChunks()
Definition: canvas_typed/qtcanvas.cpp:4550
NUMPTSTOBUFFER
#define NUMPTSTOBUFFER
Definition: canvas_typed/qtcanvas.cpp:5128
QtCanvasEllipse::a2
int a2
Definition: canvas_typed/qtcanvas.h:767
miInsertionSort
static int miInsertionSort(EdgeTableEntry *AET)
Definition: canvas_typed/qtcanvas.cpp:5527
QtCanvasPolygon::poly
QPolygon poly
Definition: canvas_typed/qtcanvas.h:679
micomputeWAET
static void micomputeWAET(EdgeTableEntry *AET)
Definition: canvas_variant/qtcanvas.cpp:5490
QtCanvasItem::isEnabled
bool isEnabled() const
Definition: canvas_typed/qtcanvas.h:128
QtCanvasItem::xVelocity
double xVelocity() const
Definition: canvas_typed/qtcanvas.cpp:1751
QtCanvas
Definition: canvas_typed/qtcanvas.h:213
QtCanvasText::setRect
void setRect()
Definition: canvas_typed/qtcanvas.cpp:4411
QtCanvasSprite::FrameAnimationType
FrameAnimationType
Definition: canvas_typed/qtcanvas.h:504
QtCanvasRectangle::width
int width() const
Definition: canvas_typed/qtcanvas.cpp:4118
QtCanvas::drawForeground
virtual void drawForeground(QPainter &, const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1357
QtPolygonScanner::Right
@ Right
Definition: canvas_typed/qtcanvas.cpp:4886
QtCanvasClusterizer::cluster
QRect * cluster
Definition: canvas_typed/qtcanvas.cpp:92
QtCanvasItemExtra::QtCanvasItemExtra
QtCanvasItemExtra()
Definition: canvas_typed/qtcanvas.cpp:1490
_ScanLineList::next
struct _ScanLineList * next
Definition: canvas_typed/qtcanvas.cpp:5101
QtCanvasItem::isActive
bool isActive() const
Definition: canvas_typed/qtcanvas.h:132
QtCanvasRectangle::chunks
QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:3638
DDXPointPtr
struct DDXPointRec * DDXPointPtr
QtCanvasPolygon::drawShape
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3755
BRESINITPGONSTRUCT
#define BRESINITPGONSTRUCT(dmaj, min1, min2, bres)
Definition: canvas_typed/qtcanvas.cpp:5080
QtCanvasClusterizer::~QtCanvasClusterizer
~QtCanvasClusterizer()
Definition: canvas_typed/qtcanvas.cpp:123
BRESINITPGONSTRUCT
#define BRESINITPGONSTRUCT(dmaj, min1, min2, bres)
Definition: canvas_variant/qtcanvas.cpp:5080
QtCanvasItem::selected
bool selected() const
Definition: canvas_typed/qtcanvas.h:138
QtCanvas::setChangedChunk
virtual void setChangedChunk(int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1164
QtCanvasItemExtra::vx
double vx
Definition: canvas_typed/qtcanvas.cpp:1491
QtCanvasSprite::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4614
QtCanvasLine::y2
int y2
Definition: canvas_typed/qtcanvas.h:726
QtCanvasItem::QtCanvasRectangle
friend class QtCanvasRectangle
Definition: canvas_typed/qtcanvas.h:180
QtPolygonScanner::~QtPolygonScanner
virtual ~QtPolygonScanner()
Definition: canvas_typed/qtcanvas.cpp:4883
QtCanvasSprite::imageAdvanced
virtual QtCanvasPixmap * imageAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:2900
QtCanvas::retune
virtual void retune(int chunksize, int maxclusters=100)
Definition: canvas_typed/qtcanvas.cpp:683
QtCanvasItem::~QtCanvasItem
virtual ~QtCanvasItem()
Definition: canvas_typed/qtcanvas.cpp:1603
QtCanvasChunk::QtCanvasChunk
QtCanvasChunk()
Definition: canvas_typed/qtcanvas.cpp:286
QtCanvasItem::rtti
virtual int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4604
SLLSPERBLOCK
#define SLLSPERBLOCK
Definition: canvas_typed/qtcanvas.cpp:5117
QtCanvasRectangle::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2204
QtCanvasItem::yVelocity
double yVelocity() const
Definition: canvas_typed/qtcanvas.cpp:1758
QtCanvasView::QtCanvasView
QtCanvasView(QWidget *parent=0)
Definition: canvas_typed/qtcanvas.cpp:3114
QtCanvas::chunkSize
int chunkSize() const
Definition: canvas_typed/qtcanvas.h:275
QtCanvasSpline::recalcPoly
void recalcPoly()
Definition: canvas_typed/qtcanvas.cpp:3879
QtCanvas::removeItemFromChunkContaining
void removeItemFromChunkContaining(QtCanvasItem *, int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1235
DDXPointRec::y
int y
Definition: canvas_typed/qtcanvas.cpp:5338
QtCanvasSprite::addToChunks
void addToChunks()
Definition: canvas_typed/qtcanvas.cpp:2943
QtCanvas::pm
QPixmap pm
Definition: canvas_typed/qtcanvas.h:353
QtCanvasEllipse::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2220
QtCanvasPixmapArray::setImage
void setImage(int i, QtCanvasPixmap *p)
Definition: canvas_typed/qtcanvas.cpp:2766
QtCanvasPixmap::qt_testCollision
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
QtCanvasLine::x1
int x1
Definition: canvas_typed/qtcanvas.h:726
_ScanLineListBlock
Definition: canvas_typed/qtcanvas.cpp:5119
QtCanvasSprite::qt_testCollision
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
QtCanvasPixmap::~QtCanvasPixmap
~QtCanvasPixmap()
Definition: canvas_typed/qtcanvas.cpp:2506
QtCanvasWidget
Definition: canvas_typed/qtcanvas.cpp:3059
QtCanvasClusterizer
Definition: canvas_typed/qtcanvas.cpp:76
QtCanvasSpline::bez
QPolygon bez
Definition: canvas_typed/qtcanvas.h:697
QtCanvasView::setWorldMatrix
bool setWorldMatrix(const QMatrix &)
Definition: canvas_typed/qtcanvas.cpp:3268
QtCanvas::maxclusters
int maxclusters
Definition: canvas_typed/qtcanvas.h:340
EVALUATEEDGEWINDING
#define EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET)
Definition: canvas_typed/qtcanvas.cpp:5143
QtCanvasItem::setXVelocity
void setXVelocity(double vx)
Definition: canvas_typed/qtcanvas.h:98
QtCanvasView::sizeHint
virtual QSize sizeHint() const
Definition: canvas_typed/qtcanvas.cpp:3309
MAXINT
#define MAXINT
Definition: canvas_variant/qtcanvas.cpp:5228
QtCanvasItem::myz
double myz
Definition: canvas_typed/qtcanvas.h:199
QtCanvasItem::draw
virtual void draw(QPainter &)=0
QtCanvasLine::drawShape
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3996
QtCanvasClusterizer::maxcl
const int maxcl
Definition: canvas_typed/qtcanvas.cpp:94
QtCanvas::setAdvancePeriod
virtual void setAdvancePeriod(int ms)
Definition: canvas_typed/qtcanvas.cpp:859
include
static void include(QRect &r, const QRect &rect)
Definition: canvas_typed/qtcanvas.cpp:98
QtCanvasWidget::paintEvent
void paintEvent(QPaintEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3100
QtCanvasPixmapArray::QtCanvasPixmapArray
QtCanvasPixmapArray()
Definition: canvas_typed/qtcanvas.cpp:2563
QtCanvasText::col
QColor col
Definition: canvas_typed/qtcanvas.h:817
NUMPTSTOBUFFER
#define NUMPTSTOBUFFER
Definition: canvas_variant/qtcanvas.cpp:5128
QtCanvasItem::QtCanvasItem
QtCanvasItem(QtCanvas *canvas)
Definition: canvas_typed/qtcanvas.cpp:1584
QtCanvasPixmap::QtCanvasPixmap
QtCanvasPixmap(const QString &datafilename)
Definition: canvas_typed/qtcanvas.cpp:2456
_ScanLineList
Definition: canvas_typed/qtcanvas.cpp:5098
QtCanvasRectangle::height
int height() const
Definition: canvas_typed/qtcanvas.cpp:4125
QtCanvasItem::removeFromChunks
virtual void removeFromChunks()
Definition: canvas_typed/qtcanvas.cpp:2369
QtCanvas::sameChunk
bool sameChunk(int x1, int y1, int x2, int y2) const
Definition: canvas_typed/qtcanvas.h:280
QtCanvasSprite::image
QtCanvasPixmap * image(int f) const
Definition: canvas_typed/qtcanvas.h:539
QtCanvasChunk::sort
void sort()
Definition: canvas_typed/qtcanvas.cpp:290
QPolygonalProcessor::bounds
QRect bounds
Definition: canvas_typed/qtcanvas.cpp:3616
QtCanvasPolygonalItem::pen
QPen pen() const
Definition: canvas_typed/qtcanvas.h:582
QtCanvasEllipse::rtti
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4664
QtCanvasWidget::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3093
QPolygonalProcessor::doSpans
void doSpans(int n, QPoint *pt, int *w)
Definition: canvas_typed/qtcanvas.cpp:3531
QtCanvasEllipse::angleStart
int angleStart() const
Definition: canvas_typed/qtcanvas.h:744
QtCanvasPolygonalItem::draw
void draw(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3656
QtCanvasItem::Rtti_Sprite
@ Rtti_Sprite
Definition: canvas_typed/qtcanvas.h:150
QtCanvasItem::Rtti_Spline
@ Rtti_Spline
Definition: canvas_typed/qtcanvas.h:157
QtCanvasPixmap::hotx
int hotx
Definition: canvas_typed/qtcanvas.h:448
QtCanvasView
Definition: canvas_typed/qtcanvas.h:365
QtCanvasChunk::change
void change()
Definition: canvas_typed/qtcanvas.cpp:308
QtCanvas::setBackgroundColor
virtual void setBackgroundColor(const QColor &c)
Definition: canvas_typed/qtcanvas.cpp:1261
QtCanvas::setBackgroundPixmap
virtual void setBackgroundPixmap(const QPixmap &p)
Definition: canvas_typed/qtcanvas.cpp:1291
QtCanvasPolygon::points
QPolygon points() const
Definition: canvas_typed/qtcanvas.cpp:3908
QtCanvasText::txt
QString txt
Definition: canvas_typed/qtcanvas.h:814
include
static void include(QRect &r, const QRect &rect)
Definition: canvas_variant/qtcanvas.cpp:98
QtCanvasEllipse
Definition: canvas_typed/qtcanvas.h:730
QtCanvasPolygonalItem::invalidate
void invalidate()
Definition: canvas_typed/qtcanvas.cpp:3441
QtCanvasText::setFont
void setFont(const QFont &)
Definition: canvas_typed/qtcanvas.cpp:4478
QtCanvas::drawBackground
virtual void drawBackground(QPainter &, const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1312
QtCanvasView::QtCanvasWidget
friend class QtCanvasWidget
Definition: canvas_typed/qtcanvas.h:390
QtCanvasSprite::image
QtCanvasPixmap * image() const
Definition: canvas_typed/qtcanvas.h:535
QtCanvasPolygon::~QtCanvasPolygon
~QtCanvasPolygon()
Definition: canvas_typed/qtcanvas.cpp:3745
QtCanvasItem::addToChunks
virtual void addToChunks()
Definition: canvas_typed/qtcanvas.cpp:2355
QtCanvasChunk::takeChange
bool takeChange()
Definition: canvas_typed/qtcanvas.cpp:316
QtCanvasWidget::dragLeaveEvent
void dragLeaveEvent(QDragLeaveEvent *e)
Definition: canvas_typed/qtcanvas.cpp:3084
QtCanvasText::text
QString text() const
Definition: canvas_typed/qtcanvas.cpp:4445
QtCanvas::addItem
virtual void addItem(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:797
QtCanvasSprite::topEdge
int topEdge() const
Definition: canvas_typed/qtcanvas.cpp:2816
QtCanvas::chunksize
int chunksize
Definition: canvas_typed/qtcanvas.h:339
QtCanvas::removeItem
virtual void removeItem(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:824
QtCanvas::advance
virtual void advance()
Definition: canvas_typed/qtcanvas.cpp:920
QtCanvas::validChunk
bool validChunk(const QPoint &p) const
Definition: canvas_typed/qtcanvas.h:271
collision_double_dispatch
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
QtCanvas::update
virtual void update()
Definition: canvas_typed/qtcanvas.cpp:960
QtCanvasView::contentsDropEvent
virtual void contentsDropEvent(QDropEvent *)
Definition: canvas_typed/qtcanvas.cpp:3193
QtCanvasData::itemDict
QSet< QtCanvasItem * > itemDict
Definition: canvas_typed/qtcanvas.cpp:62
QtCanvasItem::Rtti_Rectangle
@ Rtti_Rectangle
Definition: canvas_typed/qtcanvas.h:154
QtCanvasText::flags
int flags
Definition: canvas_typed/qtcanvas.h:815
QtCanvas::oneone
bool oneone
Definition: canvas_typed/qtcanvas.h:352
QtCanvasLine::setPen
void setPen(QPen p)
Definition: canvas_typed/qtcanvas.cpp:3958
_EdgeTableEntry::next
struct _EdgeTableEntry * next
Definition: canvas_typed/qtcanvas.cpp:5091
QtCanvasEllipse::a1
int a1
Definition: canvas_typed/qtcanvas.h:767
QtCanvasItem::vis
uint vis
Definition: canvas_typed/qtcanvas.h:203
QtCanvasSprite
Definition: canvas_typed/qtcanvas.h:493
QtCanvasText
Definition: canvas_typed/qtcanvas.h:773
QtCanvasPolygonalItem::setPen
virtual void setPen(QPen p)
Definition: canvas_typed/qtcanvas.cpp:3694
QtCanvasPolygon::moveBy
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:3779
EdgeTable::ymax
int ymax
Definition: canvas_typed/qtcanvas.cpp:5106
QtCanvas::size
QSize size() const
Definition: canvas_typed/qtcanvas.h:256
ScanLineListBlock
struct _ScanLineListBlock ScanLineListBlock
QtCanvasItem::setVisible
virtual void setVisible(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1830
QtCanvasText::color
QColor color() const
Definition: canvas_typed/qtcanvas.cpp:4492
QtCanvasSpline::RTTI
static int RTTI
Definition: canvas_typed/qtcanvas.h:693
QtCanvas::chunks
QtCanvasChunk * chunks
Definition: canvas_typed/qtcanvas.h:342
QtCanvasItem::Rtti_Polygon
@ Rtti_Polygon
Definition: canvas_typed/qtcanvas.h:153
QtCanvasChunk::list
const QtCanvasItemList & list() const
Definition: canvas_typed/qtcanvas.cpp:294
QtCanvasLine::~QtCanvasLine
~QtCanvasLine()
Definition: canvas_typed/qtcanvas.cpp:3951
QtCanvas::removeAnimation
virtual void removeAnimation(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:815
EdgeTableEntry
struct _EdgeTableEntry EdgeTableEntry
QtCanvasSprite::removeFromChunks
void removeFromChunks()
Definition: canvas_typed/qtcanvas.cpp:2960
QtCanvasPixmapArray::image
QtCanvasPixmap * image(int i) const
Definition: canvas_typed/qtcanvas.h:472
QtCanvasSprite::Cycle
@ Cycle
Definition: canvas_typed/qtcanvas.h:504
QtCanvasSprite::changeChunks
void changeChunks()
Definition: canvas_typed/qtcanvas.cpp:4732
QtPolygonScanner::Bottom
@ Bottom
Definition: canvas_typed/qtcanvas.cpp:4886
EVALUATEEDGEEVENODD
#define EVALUATEEDGEEVENODD(pAET, pPrevAET, y)
Definition: canvas_typed/qtcanvas.cpp:5166
QtCanvasSprite::anim_val
ushort anim_val
Definition: canvas_typed/qtcanvas.h:555
QtCanvasPolygonalItem::setBrush
virtual void setBrush(QBrush b)
Definition: canvas_typed/qtcanvas.cpp:3707
QtCanvasRectangle::areaPoints
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4159
QtCanvasLine::x2
int x2
Definition: canvas_typed/qtcanvas.h:726
QtCanvasPixmap::setOffset
void setOffset(int x, int y)
Definition: canvas_typed/qtcanvas.h:433
QtCanvasItem::QtCanvasPolygon
friend class QtCanvasPolygon
Definition: canvas_typed/qtcanvas.h:181
QtCanvasItem::enabled
bool enabled() const
Definition: canvas_typed/qtcanvas.h:141
QtCanvasItem::advance
virtual void advance(int stage)
Definition: canvas_typed/qtcanvas.cpp:1773
BRESINFO
Definition: canvas_typed/qtcanvas.cpp:5072
miInsertionSort
static int miInsertionSort(EdgeTableEntry *AET)
Definition: canvas_variant/qtcanvas.cpp:5527
QtCanvasItemLess::operator()
bool operator()(const QtCanvasItem *i1, const QtCanvasItem *i2) const
Definition: canvas_typed/qtcanvas.cpp:275
QtCanvas::addItemToChunk
void addItemToChunk(QtCanvasItem *, int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1195
QtCanvasItem::active
bool active() const
Definition: canvas_typed/qtcanvas.h:144
QtCanvasText::~QtCanvasText
virtual ~QtCanvasText()
Definition: canvas_typed/qtcanvas.cpp:4400
QtCanvasSprite::setSequence
void setSequence(QtCanvasPixmapArray *seq)
Definition: canvas_typed/qtcanvas.cpp:4713
QtCanvasItem::ani
uint ani
Definition: canvas_typed/qtcanvas.h:202
QtCanvasView::contentsMouseReleaseEvent
virtual void contentsMouseReleaseEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3172
QtCanvas::grid
ushort * grid
Definition: canvas_typed/qtcanvas.h:347
MININT
#define MININT
Definition: canvas_typed/qtcanvas.cpp:5229
QtCanvasPolygon::areaPoints
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:3920
QtCanvasPixmapArray::isValid
bool isValid() const
Definition: canvas_typed/qtcanvas.cpp:2743
QtCanvas::collisions
QtCanvasItemList collisions(const QPoint &) const
Definition: canvas_typed/qtcanvas.cpp:2294