qtcanvas.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the Qt Solutions component.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** You may use this file under the terms of the BSD license as follows:
10 **
11 ** "Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are
13 ** met:
14 ** * Redistributions of source code must retain the above copyright
15 ** notice, this list of conditions and the following disclaimer.
16 ** * Redistributions in binary form must reproduce the above copyright
17 ** notice, this list of conditions and the following disclaimer in
18 ** the documentation and/or other materials provided with the
19 ** distribution.
20 ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 ** of its contributors may be used to endorse or promote products derived
22 ** from this software without specific prior written permission.
23 **
24 **
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 **
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40 
41 #pragma once
42 
43 #include <qpixmap.h>
44 #include <qbrush.h>
45 #include <qpen.h>
46 #include <qpolygon.h>
47 #include <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;
60 class QtCanvasPixmap;
61 
62 using QtCanvasItemList = QList<QtCanvasItem*>;
63 
64 
65 class QtCanvasItemExtra;
66 
68 {
69 public:
71  virtual ~QtCanvasItem();
72 
73  double x() const
74  {
75  return myx;
76  }
77  double y() const
78  {
79  return myy;
80  }
81  double z() const
82  {
83  return myz; // (depth)
84  }
85 
86  virtual void moveBy(double dx, double dy);
87  void move(double x, double y);
88  void setX(double a)
89  {
90  move(a, y());
91  }
92  void setY(double a)
93  {
94  move(x(), a);
95  }
96  void setZ(double a)
97  {
98  myz = a;
99  changeChunks();
100  }
101 
102  bool animated() const;
103  virtual void setAnimated(bool y);
104  virtual void setVelocity(double vx, double vy);
105  void setXVelocity(double vx)
106  {
107  setVelocity(vx, yVelocity());
108  }
109  void setYVelocity(double vy)
110  {
111  setVelocity(xVelocity(), vy);
112  }
113  double xVelocity() const;
114  double yVelocity() const;
115  virtual void advance(int stage);
116 
117  virtual bool collidesWith(const QtCanvasItem*) const = 0;
118 
119  QtCanvasItemList collisions(bool exact /* NO DEFAULT */) const;
120 
121  virtual void setCanvas(QtCanvas*);
122 
123  virtual void draw(QPainter&) = 0;
124 
125  void show();
126  void hide();
127 
128  virtual void setVisible(bool yes);
129  bool isVisible() const
130  {
131  return (bool)vis;
132  }
133  virtual void setSelected(bool yes);
134  bool isSelected() const
135  {
136  return (bool)sel;
137  }
138  virtual void setEnabled(bool yes);
139  bool isEnabled() const
140  {
141  return (bool)ena;
142  }
143  virtual void setActive(bool yes);
144  bool isActive() const
145  {
146  return (bool)act;
147  }
148  bool visible() const
149  {
150  return (bool)vis;
151  }
152  bool selected() const
153  {
154  return (bool)sel;
155  }
156  bool enabled() const
157  {
158  return (bool)ena;
159  }
160  bool active() const
161  {
162  return (bool)act;
163  }
164 
166  {
176  };
177 
178  virtual int rtti() const;
179  static int RTTI;
180 
181  virtual QRect boundingRect() const = 0;
182  virtual QRect boundingRectAdvanced() const;
183 
184  QtCanvas* canvas() const
185  {
186  return cnv;
187  }
188 
189 protected:
190  void update()
191  {
192  changeChunks();
193  }
194 
195 private:
196  // For friendly subclasses...
197 
198  friend class QtCanvasPolygonalItem;
199  friend class QtCanvasSprite;
200  friend class QtCanvasRectangle;
201  friend class QtCanvasPolygon;
202  friend class QtCanvasEllipse;
203  friend class QtCanvasText;
204  friend class QtCanvasLine;
205 
206  virtual QPolygon chunks() const;
207  virtual void addToChunks();
208  virtual void removeFromChunks();
209  virtual void changeChunks();
210  virtual bool collidesWith(const QtCanvasSprite*,
211  const QtCanvasPolygonalItem*,
212  const QtCanvasRectangle*,
213  const QtCanvasEllipse*,
214  const QtCanvasText*) const = 0;
215  // End of friend stuff
216 
217  QtCanvas* cnv;
218  static QtCanvas* current_canvas;
219  double myx, myy, myz;
220  QtCanvasItemExtra* ext;
221  QtCanvasItemExtra& extra();
222  uint ani: 1;
223  uint vis: 1;
224  uint val: 1;
225  uint sel: 1;
226  uint ena: 1;
227  uint act: 1;
228 };
229 
230 
231 class QtCanvasData;
232 
233 class QtCanvas : public QObject
234 {
235  Q_OBJECT
236 public:
237  QtCanvas(QObject* parent = 0);
238  QtCanvas(int w, int h);
239  QtCanvas(QPixmap p, int h, int v, int tilewidth, int tileheight);
240 
241  virtual ~QtCanvas();
242 
243  virtual void setTiles(QPixmap tiles, int h, int v,
244  int tilewidth, int tileheight);
245  virtual void setBackgroundPixmap(const QPixmap& p);
246  QPixmap backgroundPixmap() const;
247 
248  virtual void setBackgroundColor(const QColor& c);
249  QColor backgroundColor() const;
250 
251  virtual void setTile(int x, int y, int tilenum);
252  int tile(int x, int y) const
253  {
254  return grid[x + y * htiles];
255  }
256 
257  int tilesHorizontally() const
258  {
259  return htiles;
260  }
261  int tilesVertically() const
262  {
263  return vtiles;
264  }
265 
266  int tileWidth() const
267  {
268  return tilew;
269  }
270  int tileHeight() const
271  {
272  return tileh;
273  }
274 
275  virtual void resize(int width, int height);
276  int width() const
277  {
278  return awidth;
279  }
280  int height() const
281  {
282  return aheight;
283  }
284  QSize size() const
285  {
286  return QSize(awidth, aheight);
287  }
288  QRect rect() const
289  {
290  return QRect(0, 0, awidth, aheight);
291  }
292  bool onCanvas(int x, int y) const
293  {
294  return x >= 0 && y >= 0 && x < awidth && y < aheight;
295  }
296  bool onCanvas(const QPoint& p) const
297  {
298  return onCanvas(p.x(), p.y());
299  }
300  bool validChunk(int x, int y) const
301  {
302  return x >= 0 && y >= 0 && x < chwidth && y < chheight;
303  }
304  bool validChunk(const QPoint& p) const
305  {
306  return validChunk(p.x(), p.y());
307  }
308 
309  int chunkSize() const
310  {
311  return chunksize;
312  }
313  virtual void retune(int chunksize, int maxclusters = 100);
314 
315  bool sameChunk(int x1, int y1, int x2, int y2) const
316  {
317  return x1 / chunksize == x2 / chunksize && y1 / chunksize == y2 / chunksize;
318  }
319  virtual void setChangedChunk(int i, int j);
320  virtual void setChangedChunkContaining(int x, int y);
321  virtual void setAllChanged();
322  virtual void setChanged(const QRect& area);
323  virtual void setUnchanged(const QRect& area);
324 
325  // These call setChangedChunk.
326  void addItemToChunk(QtCanvasItem*, int i, int j);
327  void removeItemFromChunk(QtCanvasItem*, int i, int j);
328  void addItemToChunkContaining(QtCanvasItem*, int x, int y);
329  void removeItemFromChunkContaining(QtCanvasItem*, int x, int y);
330 
332  QtCanvasItemList collisions(const QPoint&) const;
333  QtCanvasItemList collisions(const QRect&) const;
334  QtCanvasItemList collisions(const QPolygon& pa, const QtCanvasItem* item,
335  bool exact) const;
336 
337  void drawArea(const QRect&, QPainter* p, bool double_buffer = false);
338 
339  // These are for QtCanvasView to call
340  virtual void addView(QtCanvasView*);
341  virtual void removeView(QtCanvasView*);
342 
343  void drawCanvasArea(const QRect&, QPainter* p = 0, bool double_buffer = true);
344  void drawViewArea(QtCanvasView* view, QPainter* p, const QRect& r, bool dbuf);
345 
346  // These are for QtCanvasItem to call
347  virtual void addItem(QtCanvasItem*);
348  virtual void addAnimation(QtCanvasItem*);
349  virtual void removeItem(QtCanvasItem*);
350  virtual void removeAnimation(QtCanvasItem*);
351 
352  virtual void setAdvancePeriod(int ms);
353  virtual void setUpdatePeriod(int ms);
354 
355 signals:
356  void resized();
357 
358 public slots:
359  virtual void advance();
360  virtual void update();
361 
362 protected:
363  virtual void drawBackground(QPainter&, const QRect& area);
364  virtual void drawForeground(QPainter&, const QRect& area);
365 
366 private:
367  void init(int w, int h, int chunksze = 16, int maxclust = 100);
368 
369  QtCanvasChunk& chunk(int i, int j) const;
370  QtCanvasChunk& chunkContaining(int x, int y) const;
371 
372  QRect changeBounds();
373 
374  int awidth, aheight;
375  int chunksize;
376  int maxclusters;
377  int chwidth, chheight;
378  QtCanvasChunk* chunks;
379 
380  QtCanvasData* d;
381 
382  void initTiles(QPixmap p, int h, int v, int tilewidth, int tileheight);
383  ushort* grid;
384  ushort htiles;
385  ushort vtiles;
386  ushort tilew;
387  ushort tileh;
388  bool oneone;
389  QPixmap pm;
390  QTimer* update_timer;
391  QColor bgcolor;
392  bool debug_redraw_areas;
393 
394  friend void qt_unview(QtCanvas* c);
395 
396  Q_DISABLE_COPY(QtCanvas)
397 };
398 
399 class QtCanvasViewData;
400 
401 class QtCanvasView : public QScrollArea
402 {
403  Q_OBJECT
405 public:
406 
407  QtCanvasView(QWidget* parent = 0);
408  QtCanvasView(QtCanvas* viewing, QWidget* parent = 0);
409  ~QtCanvasView();
410 
411  QtCanvas* canvas() const
412  {
413  return viewing;
414  }
415  void setCanvas(QtCanvas* v);
416 
417  const QMatrix& worldMatrix() const;
418  const QMatrix& inverseWorldMatrix() const;
419  bool setWorldMatrix(const QMatrix&);
420 
421  virtual QSize sizeHint() const;
422 
423  bool highQualityRendering() const;
424 public slots:
425  void setHighQualityRendering(bool enable);
426 
427 protected:
428  friend class QtCanvasWidget;
429  virtual void drawContents(QPainter* p, int cx, int cy, int cw, int ch);
430 
431  virtual void contentsMousePressEvent(QMouseEvent*);
432  virtual void contentsMouseReleaseEvent(QMouseEvent*);
433  virtual void contentsMouseDoubleClickEvent(QMouseEvent*);
434  virtual void contentsMouseMoveEvent(QMouseEvent*);
435  virtual void contentsDragEnterEvent(QDragEnterEvent*);
436  virtual void contentsDragMoveEvent(QDragMoveEvent*);
437  virtual void contentsDragLeaveEvent(QDragLeaveEvent*);
438  virtual void contentsDropEvent(QDropEvent*);
439  virtual void contentsWheelEvent(QWheelEvent*);
440  virtual void contentsContextMenuEvent(QContextMenuEvent*);
441 
442 private:
443  friend class QtCanvas;
444  void drawContents(QPainter*);
445  QtCanvas* viewing;
446  QtCanvasViewData* d;
447 
448 private slots:
449  void updateContentsSize();
450 
451 private:
452  Q_DISABLE_COPY(QtCanvasView)
453 };
454 
455 
456 class QtCanvasPixmap : public QPixmap
457 {
458 public:
459 #ifndef QT_NO_IMAGEIO
460  QtCanvasPixmap(const QString& datafilename);
461 #endif
462  QtCanvasPixmap(const QImage& image);
463  QtCanvasPixmap(const QPixmap&, const QPoint& hotspot);
464  ~QtCanvasPixmap();
465 
466  int offsetX() const
467  {
468  return hotx;
469  }
470  int offsetY() const
471  {
472  return hoty;
473  }
474  void setOffset(int x, int y)
475  {
476  hotx = x;
477  hoty = y;
478  }
479 
480 private:
481  Q_DISABLE_COPY(QtCanvasPixmap)
482 
483  void init(const QImage&);
484  void init(const QPixmap& pixmap, int hx, int hy);
485 
486  friend class QtCanvasSprite;
487  friend class QtCanvasPixmapArray;
488  friend bool qt_testCollision(const QtCanvasSprite* s1, const QtCanvasSprite* s2);
489 
490  int hotx, hoty;
491 
492  QImage* collision_mask;
493 };
494 
495 
497 {
498 public:
500 #ifndef QT_NO_IMAGEIO
501  QtCanvasPixmapArray(const QString& datafilenamepattern, int framecount = 0);
502 #endif
503  QtCanvasPixmapArray(const QList<QPixmap>& pixmaps, const QPolygon& hotspots = QPolygon());
505 
506 #ifndef QT_NO_IMAGEIO
507  bool readPixmaps(const QString& datafilenamepattern, int framecount = 0);
508  bool readCollisionMasks(const QString& filenamepattern);
509 #endif
510 
511  // deprecated
512  bool operator!(); // Failure check.
513  bool isValid() const;
514 
515  QtCanvasPixmap* image(int i) const
516  {
517  return img ? img[i] : 0;
518  }
519  void setImage(int i, QtCanvasPixmap* p);
520  uint count() const
521  {
522  return (uint)framecount;
523  }
524 
525 private:
526  Q_DISABLE_COPY(QtCanvasPixmapArray)
527 
528 #ifndef QT_NO_IMAGEIO
529  bool readPixmaps(const QString& datafilenamepattern, int framecount, bool maskonly);
530 #endif
531 
532  void reset();
533  int framecount;
534  QtCanvasPixmap** img;
535 };
536 
537 
539 {
540 public:
542 
543  void setSequence(QtCanvasPixmapArray* seq);
544 
545  virtual ~QtCanvasSprite();
546 
547  void move(double x, double y);
548  virtual void move(double x, double y, int frame);
549  void setFrame(int);
551  virtual void setFrameAnimation(FrameAnimationType = Cycle, int step = 1, int state = 0);
552  int frame() const
553  {
554  return frm;
555  }
556  int frameCount() const
557  {
558  return images->count();
559  }
560 
561  int rtti() const;
562  static int RTTI;
563 
564  bool collidesWith(const QtCanvasItem*) const;
565 
566  QRect boundingRect() const;
567 
568  // is there a reason for these to be protected? Lars
569  //protected:
570 
571  int width() const;
572  int height() const;
573 
574  int leftEdge() const;
575  int topEdge() const;
576  int rightEdge() const;
577  int bottomEdge() const;
578 
579  int leftEdge(int nx) const;
580  int topEdge(int ny) const;
581  int rightEdge(int nx) const;
582  int bottomEdge(int ny) const;
584  {
585  return images->image(frm);
586  }
587  virtual QtCanvasPixmap* imageAdvanced() const;
588  QtCanvasPixmap* image(int f) const
589  {
590  return images->image(f);
591  }
592  virtual void advance(int stage);
593 
594 public:
595  void draw(QPainter& painter);
596 
597 private:
598  Q_DISABLE_COPY(QtCanvasSprite)
599 
600  void addToChunks();
601  void removeFromChunks();
602  void changeChunks();
603 
604  int frm;
605  ushort anim_val;
606  uint anim_state: 2;
607  uint anim_type: 14;
608  bool collidesWith(const QtCanvasSprite*,
609  const QtCanvasPolygonalItem*,
610  const QtCanvasRectangle*,
611  const QtCanvasEllipse*,
612  const QtCanvasText*) const;
613 
614  friend bool qt_testCollision(const QtCanvasSprite* s1,
615  const QtCanvasSprite* s2);
616 
617  QtCanvasPixmapArray* images;
618 };
619 
620 class QPolygonalProcessor;
621 
623 {
624 public:
626  virtual ~QtCanvasPolygonalItem();
627 
628  bool collidesWith(const QtCanvasItem*) const;
629 
630  virtual void setPen(QPen p);
631  virtual void setBrush(QBrush b);
632 
633  QPen pen() const
634  {
635  return pn;
636  }
637  QBrush brush() const
638  {
639  return br;
640  }
641 
642  virtual QPolygon areaPoints() const = 0;
643  virtual QPolygon areaPointsAdvanced() const;
644  QRect boundingRect() const;
645 
646  int rtti() const;
647  static int RTTI;
648 
649 protected:
650  void draw(QPainter&);
651  virtual void drawShape(QPainter&) = 0;
652 
653  bool winding() const;
654  void setWinding(bool);
655 
656  void invalidate();
657  bool isValid() const
658  {
659  return (bool)val;
660  }
661 
662 private:
663  void scanPolygon(const QPolygon& pa, int winding,
664  QPolygonalProcessor& process) const;
665  QPolygon chunks() const;
666 
667  bool collidesWith(const QtCanvasSprite*,
668  const QtCanvasPolygonalItem*,
669  const QtCanvasRectangle*,
670  const QtCanvasEllipse*,
671  const QtCanvasText*) const;
672 
673  QBrush br;
674  QPen pn;
675  uint wind: 1;
676 };
677 
678 
680 {
681 public:
683  QtCanvasRectangle(const QRect&, QtCanvas* canvas);
684  QtCanvasRectangle(int x, int y, int width, int height, QtCanvas* canvas);
685 
687 
688  int width() const;
689  int height() const;
690  void setSize(int w, int h);
691  QSize size() const
692  {
693  return QSize(w, h);
694  }
695  QPolygon areaPoints() const;
696  QRect rect() const
697  {
698  return QRect(int(x()), int(y()), w, h);
699  }
700 
701  bool collidesWith(const QtCanvasItem*) const;
702 
703  int rtti() const;
704  static int RTTI;
705 
706 protected:
707  void drawShape(QPainter&);
708  QPolygon chunks() const;
709 
710 private:
711  bool collidesWith(const QtCanvasSprite*,
712  const QtCanvasPolygonalItem*,
713  const QtCanvasRectangle*,
714  const QtCanvasEllipse*,
715  const QtCanvasText*) const;
716 
717  int w, h;
718 };
719 
720 
722 {
723 public:
726  void setPoints(QPolygon);
727  QPolygon points() const;
728  void moveBy(double dx, double dy);
729 
730  QPolygon areaPoints() const;
731 
732  int rtti() const;
733  static int RTTI;
734 
735 protected:
736  void drawShape(QPainter&);
737  QPolygon poly;
738 };
739 
740 
742 {
743 public:
745  ~QtCanvasSpline();
746 
747  void setControlPoints(QPolygon, bool closed = true);
748  QPolygon controlPoints() const;
749  bool closed() const;
750 
751  int rtti() const;
752  static int RTTI;
753 
754 private:
755  void recalcPoly();
756  QPolygon bez;
757  bool cl;
758 };
759 
760 
762 {
763 public:
765  ~QtCanvasLine();
766  void setPoints(int x1, int y1, int x2, int y2);
767 
768  QPoint startPoint() const
769  {
770  return QPoint(x1, y1);
771  }
772  QPoint endPoint() const
773  {
774  return QPoint(x2, y2);
775  }
776 
777  int rtti() const;
778  static int RTTI;
779 
780  void setPen(QPen p);
781  void moveBy(double dx, double dy);
782 
783 protected:
784  void drawShape(QPainter&);
785  QPolygon areaPoints() const;
786 
787 private:
788  int x1, y1, x2, y2;
789 };
790 
791 
793 {
794 
795 public:
798  QtCanvasEllipse(int width, int height, int startangle, int angle,
799  QtCanvas* canvas);
800 
802 
803  int width() const;
804  int height() const;
805  void setSize(int w, int h);
806  void setAngles(int start, int length);
807  int angleStart() const
808  {
809  return a1;
810  }
811  int angleLength() const
812  {
813  return a2;
814  }
815  QPolygon areaPoints() const;
816 
817  bool collidesWith(const QtCanvasItem*) const;
818 
819  int rtti() const;
820  static int RTTI;
821 
822 protected:
823  void drawShape(QPainter&);
824 
825 private:
826  bool collidesWith(const QtCanvasSprite*,
827  const QtCanvasPolygonalItem*,
828  const QtCanvasRectangle*,
829  const QtCanvasEllipse*,
830  const QtCanvasText*) const;
831  int w, h;
832  int a1, a2;
833 };
834 
835 
836 class QtCanvasTextExtra;
837 
839 {
840 public:
842  QtCanvasText(const QString&, QtCanvas* canvas);
843  QtCanvasText(const QString&, QFont, QtCanvas* canvas);
844 
845  virtual ~QtCanvasText();
846 
847  void setText(const QString&);
848  void setFont(const QFont&);
849  void setColor(const QColor&);
850  QString text() const;
851  QFont font() const;
852  QColor color() const;
853 
854  void moveBy(double dx, double dy);
855 
856  int textFlags() const
857  {
858  return flags;
859  }
860  void setTextFlags(int);
861 
862  QRect boundingRect() const;
863 
864  bool collidesWith(const QtCanvasItem*) const;
865 
866  int rtti() const;
867  static int RTTI;
868 
869 protected:
870  virtual void draw(QPainter&);
871 
872 private:
873  Q_DISABLE_COPY(QtCanvasText)
874 
875  void addToChunks();
876  void removeFromChunks();
877  void changeChunks();
878 
879  void setRect();
880  QRect brect;
881  QString txt;
882  int flags;
883  QFont fnt;
884  QColor col;
885  QtCanvasTextExtra* extra;
886 
887  bool collidesWith(const QtCanvasSprite*,
888  const QtCanvasPolygonalItem*,
889  const QtCanvasRectangle*,
890  const QtCanvasEllipse*,
891  const QtCanvasText*) const;
892 };
893 
QtCanvasSprite::Oscillate
@ Oscillate
Definition: qtcanvas.h:550
QtCanvasPolygonalItem::drawShape
virtual void drawShape(QPainter &)=0
QtCanvasView::contentsMouseMoveEvent
virtual void contentsMouseMoveEvent(QMouseEvent *)
Definition: qtcanvas.cpp:3647
QtCanvas::backgroundColor
QColor backgroundColor() const
Definition: qtcanvas.cpp:1456
QtCanvasPixmapArray::operator!
bool operator!()
Definition: qtcanvas.cpp:3141
QtCanvasSprite::move
void move(double x, double y)
Definition: qtcanvas.cpp:5575
QtCanvas::addView
virtual void addView(QtCanvasView *)
Definition: qtcanvas.cpp:936
QtCanvasLine
Definition: qtcanvas.h:761
QtCanvas::qt_unview
friend void qt_unview(QtCanvas *c)
QtCanvasItem::boundingRect
virtual QRect boundingRect() const =0
QtCanvasItem::setEnabled
virtual void setEnabled(bool yes)
Definition: qtcanvas.cpp:2199
QtCanvasPolygonalItem::brush
QBrush brush() const
Definition: qtcanvas.h:637
QtCanvasItem::setActive
virtual void setActive(bool yes)
Definition: qtcanvas.cpp:2230
QtCanvasItem::boundingRectAdvanced
virtual QRect boundingRectAdvanced() const
Definition: qtcanvas.cpp:2772
QtCanvasLine::rtti
int rtti() const
Definition: qtcanvas.cpp:5369
QtCanvasPolygon::~QtCanvasPolygon
~QtCanvasPolygon()
Definition: qtcanvas.cpp:4328
QtCanvas::rect
QRect rect() const
Definition: qtcanvas.h:288
QtCanvasView::contentsContextMenuEvent
virtual void contentsContextMenuEvent(QContextMenuEvent *)
Definition: qtcanvas.cpp:3673
QtCanvasPixmap
Definition: qtcanvas.h:456
QtCanvasRectangle::height
int height() const
Definition: qtcanvas.cpp:4750
QtCanvasView::setCanvas
void setCanvas(QtCanvas *v)
Definition: qtcanvas.cpp:3690
QtCanvas::update
virtual void update()
Definition: qtcanvas.cpp:1091
QtCanvas::chunkSize
int chunkSize() const
Definition: qtcanvas.h:309
QtCanvasText::setFont
void setFont(const QFont &)
Definition: qtcanvas.cpp:5140
QtCanvasPolygon::poly
QPolygon poly
Definition: qtcanvas.h:737
QtCanvas::drawArea
void drawArea(const QRect &, QPainter *p, bool double_buffer=false)
Definition: qtcanvas.cpp:1255
QtCanvasText::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: qtcanvas.cpp:2565
QtCanvasItem::enabled
bool enabled() const
Definition: qtcanvas.h:156
QtCanvasPixmapArray::~QtCanvasPixmapArray
~QtCanvasPixmapArray()
Definition: qtcanvas.cpp:3001
QtCanvasEllipse::~QtCanvasEllipse
~QtCanvasEllipse()
Definition: qtcanvas.cpp:4893
QtCanvasItem::x
double x() const
Definition: qtcanvas.h:73
QtCanvasSpline::~QtCanvasSpline
~QtCanvasSpline()
Definition: qtcanvas.cpp:4427
QtCanvasItem::QtCanvasLine
friend class QtCanvasLine
Definition: qtcanvas.h:204
QtCanvas::validChunk
bool validChunk(const QPoint &p) const
Definition: qtcanvas.h:304
QtCanvasSpline::RTTI
static int RTTI
Definition: qtcanvas.h:752
QtCanvas::addItemToChunk
void addItemToChunk(QtCanvasItem *, int i, int j)
Definition: qtcanvas.cpp:1391
QtCanvasItem::QtCanvasItem
QtCanvasItem(QtCanvas *canvas)
Definition: qtcanvas.cpp:1824
QtCanvasEllipse::width
int width() const
Definition: qtcanvas.cpp:4901
QtCanvasView::setHighQualityRendering
void setHighQualityRendering(bool enable)
Definition: qtcanvas.cpp:3625
QtCanvas::drawBackground
virtual void drawBackground(QPainter &, const QRect &area)
Definition: qtcanvas.cpp:1526
QPolygonalProcessor
Definition: qtcanvas.cpp:3992
QtCanvasText::boundingRect
QRect boundingRect() const
Definition: qtcanvas.cpp:5061
QtCanvasPixmap::offsetX
int offsetX() const
Definition: qtcanvas.h:466
QtCanvas::removeItemFromChunk
void removeItemFromChunk(QtCanvasItem *, int i, int j)
Definition: qtcanvas.cpp:1406
QtCanvasItem::update
void update()
Definition: qtcanvas.h:190
QtCanvasItem::QtCanvasPolygonalItem
friend class QtCanvasPolygonalItem
Definition: qtcanvas.h:198
QtCanvasPolygon
Definition: qtcanvas.h:721
QtCanvasItem::visible
bool visible() const
Definition: qtcanvas.h:148
QtCanvasEllipse::areaPoints
QPolygon areaPoints() const
Definition: qtcanvas.cpp:4970
QtCanvasRectangle::width
int width() const
Definition: qtcanvas.cpp:4742
QtCanvasSprite::rightEdge
int rightEdge() const
Definition: qtcanvas.cpp:3255
QtCanvasItem::active
bool active() const
Definition: qtcanvas.h:160
QtCanvas::drawViewArea
void drawViewArea(QtCanvasView *view, QPainter *p, const QRect &r, bool dbuf)
Definition: qtcanvas.cpp:1075
QtCanvasItem::moveBy
virtual void moveBy(double dx, double dy)
Definition: qtcanvas.cpp:1918
QtCanvasEllipse::angleLength
int angleLength() const
Definition: qtcanvas.h:811
QtCanvasPolygon::moveBy
void moveBy(double dx, double dy)
Definition: qtcanvas.cpp:4365
QtCanvasLine::moveBy
void moveBy(double dx, double dy)
Definition: qtcanvas.cpp:4672
QtCanvasRectangle::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: qtcanvas.cpp:2530
QtCanvasLine::areaPoints
QPolygon areaPoints() const
Definition: qtcanvas.cpp:4617
QtCanvas::removeAnimation
virtual void removeAnimation(QtCanvasItem *)
Definition: qtcanvas.cpp:916
QtCanvas::setChanged
virtual void setChanged(const QRect &area)
Definition: qtcanvas.cpp:1124
QtCanvasPixmap::offsetY
int offsetY() const
Definition: qtcanvas.h:470
QtCanvasLine::setPoints
void setPoints(int x1, int y1, int x2, int y2)
Definition: qtcanvas.cpp:4590
QtCanvasData
Definition: qtcanvas.cpp:57
QtCanvas::removeItemFromChunkContaining
void removeItemFromChunkContaining(QtCanvasItem *, int x, int y)
Definition: qtcanvas.cpp:1437
QtCanvasView::setWorldMatrix
bool setWorldMatrix(const QMatrix &)
Definition: qtcanvas.cpp:3753
QtCanvasView::contentsDragLeaveEvent
virtual void contentsDragLeaveEvent(QDragLeaveEvent *)
Definition: qtcanvas.cpp:3660
QtCanvasItem::setCanvas
virtual void setCanvas(QtCanvas *)
Definition: qtcanvas.cpp:2056
QtCanvasItem::isVisible
bool isVisible() const
Definition: qtcanvas.h:129
QtCanvas::QtCanvas
QtCanvas(QObject *parent=0)
Definition: qtcanvas.cpp:597
QtCanvasSprite::width
int width() const
Definition: qtcanvas.cpp:3418
QtCanvas::setTile
virtual void setTile(int x, int y, int tilenum)
Definition: qtcanvas.cpp:1706
QtCanvasText::setColor
void setColor(const QColor &)
Definition: qtcanvas.cpp:5166
QtCanvasItem::setX
void setX(double a)
Definition: qtcanvas.h:88
QtCanvasText::text
QString text() const
Definition: qtcanvas.cpp:5103
QtCanvas::width
int width() const
Definition: qtcanvas.h:276
QtCanvas::tileWidth
int tileWidth() const
Definition: qtcanvas.h:266
QtCanvas::setTiles
virtual void setTiles(QPixmap tiles, int h, int v, int tilewidth, int tileheight)
Definition: qtcanvas.cpp:1616
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
QtCanvasPolygonalItem::RTTI
static int RTTI
Definition: qtcanvas.h:647
QtCanvasSprite::FrameAnimationType
FrameAnimationType
Definition: qtcanvas.h:550
QtCanvasItemExtra
Definition: qtcanvas.cpp:1728
QtCanvasViewData
Definition: qtcanvas.cpp:69
QtCanvasItem::Rtti_Text
@ Rtti_Text
Definition: qtcanvas.h:170
QtCanvasItem::setZ
void setZ(double a)
Definition: qtcanvas.h:96
QtCanvasView::drawContents
virtual void drawContents(QPainter *p, int cx, int cy, int cw, int ch)
Definition: qtcanvas.cpp:3788
QtCanvasEllipse::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: qtcanvas.cpp:2548
QtCanvasItem::collidesWith
virtual bool collidesWith(const QtCanvasItem *) const =0
QtCanvasItem::QtCanvasText
friend class QtCanvasText
Definition: qtcanvas.h:203
QtCanvas::collisions
QtCanvasItemList collisions(const QPoint &) const
Definition: qtcanvas.cpp:2627
QtCanvasSpline::rtti
int rtti() const
Definition: qtcanvas.cpp:5380
QtCanvasPixmapArray::count
uint count() const
Definition: qtcanvas.h:520
QtCanvasPixmapArray::setImage
void setImage(int i, QtCanvasPixmap *p)
Definition: qtcanvas.cpp:3174
QtCanvasSprite::height
int height() const
Definition: qtcanvas.cpp:3428
QtCanvasRectangle::setSize
void setSize(int w, int h)
Definition: qtcanvas.cpp:4758
QtCanvasItem::RttiValues
RttiValues
Definition: qtcanvas.h:165
QtCanvas::tileHeight
int tileHeight() const
Definition: qtcanvas.h:270
QtCanvasRectangle::size
QSize size() const
Definition: qtcanvas.h:691
QtCanvasChunk
Definition: qtcanvas.cpp:345
QtCanvasItem::Rtti_Ellipse
@ Rtti_Ellipse
Definition: qtcanvas.h:173
QtCanvasPolygonalItem::setWinding
void setWinding(bool)
Definition: qtcanvas.cpp:3939
QtCanvasItem::Rtti_Item
@ Rtti_Item
Definition: qtcanvas.h:167
QtCanvas::advance
virtual void advance()
Definition: qtcanvas.cpp:1039
QtCanvasSprite::advance
virtual void advance(int stage)
Definition: qtcanvas.cpp:5517
QtCanvasSpline::setControlPoints
void setControlPoints(QPolygon, bool closed=true)
Definition: qtcanvas.cpp:4444
QtCanvasRectangle::rtti
int rtti() const
Definition: qtcanvas.cpp:5347
QtCanvasView::contentsDragEnterEvent
virtual void contentsDragEnterEvent(QDragEnterEvent *)
Definition: qtcanvas.cpp:3652
QtCanvasLine::RTTI
static int RTTI
Definition: qtcanvas.h:778
QtCanvasItem::isSelected
bool isSelected() const
Definition: qtcanvas.h:134
QtCanvas::resized
void resized()
QtCanvasPixmapArray::readCollisionMasks
bool readCollisionMasks(const QString &filenamepattern)
Definition: qtcanvas.cpp:3065
QtCanvasItem::setYVelocity
void setYVelocity(double vy)
Definition: qtcanvas.h:109
QtCanvas::height
int height() const
Definition: qtcanvas.h:280
QtCanvasPolygonalItem
Definition: qtcanvas.h:622
QtCanvasItem::Rtti_Polygon
@ Rtti_Polygon
Definition: qtcanvas.h:171
QtCanvasPolygonalItem::~QtCanvasPolygonalItem
virtual ~QtCanvasPolygonalItem()
Definition: qtcanvas.cpp:3912
QtCanvas::allItems
QtCanvasItemList allItems()
Definition: qtcanvas.cpp:684
QtCanvasItem::selected
bool selected() const
Definition: qtcanvas.h:152
armarx::ctrlutil::a
double a(double t, double a0, double j)
Definition: CtrlUtil.h:45
QtCanvasItem::hide
void hide()
Definition: qtcanvas.cpp:2099
QtCanvasText::rtti
int rtti() const
Definition: qtcanvas.cpp:5325
QtCanvasItem::isEnabled
bool isEnabled() const
Definition: qtcanvas.h:139
QtCanvasText::color
QColor color() const
Definition: qtcanvas.cpp:5156
QtCanvasSprite::RTTI
static int RTTI
Definition: qtcanvas.h:562
QtCanvas::setChangedChunkContaining
virtual void setChangedChunkContaining(int x, int y)
Definition: qtcanvas.cpp:1375
QtCanvas::resize
virtual void resize(int width, int height)
Definition: qtcanvas.cpp:694
QtCanvas::setBackgroundPixmap
virtual void setBackgroundPixmap(const QPixmap &p)
Definition: qtcanvas.cpp:1502
QtCanvasPolygonalItem::setPen
virtual void setPen(QPen p)
Definition: qtcanvas.cpp:4272
QtCanvasItem::Rtti_Rectangle
@ Rtti_Rectangle
Definition: qtcanvas.h:172
QtCanvas::removeItem
virtual void removeItem(QtCanvasItem *)
Definition: qtcanvas.cpp:926
QtCanvasSprite::~QtCanvasSprite
virtual ~QtCanvasSprite()
Definition: qtcanvas.cpp:5458
QtCanvasItem::draw
virtual void draw(QPainter &)=0
QtCanvas::validChunk
bool validChunk(int x, int y) const
Definition: qtcanvas.h:300
QtCanvasRectangle
Definition: qtcanvas.h:679
QtCanvasPolygon::setPoints
void setPoints(QPolygon)
Definition: qtcanvas.cpp:4353
QtCanvasView::contentsMouseDoubleClickEvent
virtual void contentsMouseDoubleClickEvent(QMouseEvent *)
Definition: qtcanvas.cpp:3642
QtCanvasItem::QtCanvasEllipse
friend class QtCanvasEllipse
Definition: qtcanvas.h:202
QtCanvasView::contentsDragMoveEvent
virtual void contentsDragMoveEvent(QDragMoveEvent *)
Definition: qtcanvas.cpp:3656
QtCanvasItem
Definition: qtcanvas.h:67
QtCanvasItem::RTTI
static int RTTI
Definition: qtcanvas.h:179
QtCanvasItem::setVelocity
virtual void setVelocity(double vx, double vy)
Definition: qtcanvas.cpp:1996
QtCanvasPixmap::setOffset
void setOffset(int x, int y)
Definition: qtcanvas.h:474
QtCanvasEllipse::rtti
int rtti() const
Definition: qtcanvas.cpp:5358
QtCanvasSprite::leftEdge
int leftEdge() const
Definition: qtcanvas.cpp:3203
QtCanvasPolygonalItem::areaPoints
virtual QPolygon areaPoints() const =0
QtCanvasSprite::frame
int frame() const
Definition: qtcanvas.h:552
QtCanvasItem::yVelocity
double yVelocity() const
Definition: qtcanvas.cpp:2021
QtCanvasView::sizeHint
virtual QSize sizeHint() const
Definition: qtcanvas.cpp:3804
QtCanvasView::highQualityRendering
bool highQualityRendering
Definition: qtcanvas.h:404
QtCanvasView::contentsMousePressEvent
virtual void contentsMousePressEvent(QMouseEvent *)
Definition: qtcanvas.cpp:3632
QtCanvasView::contentsMouseReleaseEvent
virtual void contentsMouseReleaseEvent(QMouseEvent *)
Definition: qtcanvas.cpp:3637
QtCanvasRectangle::drawShape
void drawShape(QPainter &)
Definition: qtcanvas.cpp:4812
QtCanvasItem::y
double y() const
Definition: qtcanvas.h:77
QtCanvas::setChangedChunk
virtual void setChangedChunk(int i, int j)
Definition: qtcanvas.cpp:1356
QtCanvasItem::isActive
bool isActive() const
Definition: qtcanvas.h:144
QtCanvasSpline::controlPoints
QPolygon controlPoints() const
Definition: qtcanvas.cpp:4463
QtCanvasItem::advance
virtual void advance(int stage)
Definition: qtcanvas.cpp:2037
QtCanvasEllipse::setAngles
void setAngles(int start, int length)
Definition: qtcanvas.cpp:4956
QtCanvasPixmapArray
Definition: qtcanvas.h:496
QtCanvas::setUnchanged
virtual void setUnchanged(const QRect &area)
Definition: qtcanvas.cpp:1162
QtCanvas::setBackgroundColor
virtual void setBackgroundColor(const QColor &c)
Definition: qtcanvas.cpp:1466
QtCanvasPolygonalItem::boundingRect
QRect boundingRect() const
Definition: qtcanvas.cpp:4223
QtCanvasSpline
Definition: qtcanvas.h:741
QtCanvasItem::canvas
QtCanvas * canvas() const
Definition: qtcanvas.h:184
QtCanvasEllipse::setSize
void setSize(int w, int h)
Definition: qtcanvas.cpp:4917
QtCanvasView::inverseWorldMatrix
const QMatrix & inverseWorldMatrix() const
Definition: qtcanvas.cpp:3735
QtCanvasSprite::setFrameAnimation
virtual void setFrameAnimation(FrameAnimationType=Cycle, int step=1, int state=0)
Definition: qtcanvas.cpp:5501
QtCanvasText::setText
void setText(const QString &)
Definition: qtcanvas.cpp:5114
QtCanvas::tilesHorizontally
int tilesHorizontally() const
Definition: qtcanvas.h:257
QtCanvasItem::show
void show()
Definition: qtcanvas.cpp:2093
QtCanvasItem::QtCanvasSprite
friend class QtCanvasSprite
Definition: qtcanvas.h:199
QtCanvasRectangle::RTTI
static int RTTI
Definition: qtcanvas.h:704
QtCanvasItem::setXVelocity
void setXVelocity(double vx)
Definition: qtcanvas.h:105
QtCanvasPolygonalItem::draw
void draw(QPainter &)
Definition: qtcanvas.cpp:4233
QtCanvasPolygonalItem::pen
QPen pen() const
Definition: qtcanvas.h:633
QtCanvasItem::Rtti_Sprite
@ Rtti_Sprite
Definition: qtcanvas.h:168
QtCanvasItemList
QList< QtCanvasItem * > QtCanvasItemList
Definition: qtcanvas.h:62
QtCanvasSpline::closed
bool closed() const
Definition: qtcanvas.cpp:4472
QtCanvasItem::Rtti_PolygonalItem
@ Rtti_PolygonalItem
Definition: qtcanvas.h:169
QtCanvasText::RTTI
static int RTTI
Definition: qtcanvas.h:867
QtCanvas::drawForeground
virtual void drawForeground(QPainter &, const QRect &area)
Definition: qtcanvas.cpp:1580
QtCanvasRectangle::~QtCanvasRectangle
~QtCanvasRectangle()
Definition: qtcanvas.cpp:4733
QtCanvasSprite::image
QtCanvasPixmap * image(int f) const
Definition: qtcanvas.h:588
QtCanvasPolygonalItem::areaPointsAdvanced
virtual QPolygon areaPointsAdvanced() const
Definition: qtcanvas.cpp:3971
QtCanvasLine::~QtCanvasLine
~QtCanvasLine()
Definition: qtcanvas.cpp:4557
QtCanvasPixmapArray::image
QtCanvasPixmap * image(int i) const
Definition: qtcanvas.h:515
QtCanvasEllipse::RTTI
static int RTTI
Definition: qtcanvas.h:820
QtCanvasSprite::imageAdvanced
virtual QtCanvasPixmap * imageAdvanced() const
Definition: qtcanvas.cpp:3319
QtCanvasItem::rtti
virtual int rtti() const
Definition: qtcanvas.cpp:5292
QtCanvasPolygonalItem::invalidate
void invalidate()
Definition: qtcanvas.cpp:3951
QtCanvas::~QtCanvas
virtual ~QtCanvas()
Definition: qtcanvas.cpp:644
QtCanvas
Definition: qtcanvas.h:233
QtCanvasSpline::QtCanvasSpline
QtCanvasSpline(QtCanvas *canvas)
Definition: qtcanvas.cpp:4418
QtCanvasItem::z
double z() const
Definition: qtcanvas.h:81
QtCanvasText::font
QFont font() const
Definition: qtcanvas.cpp:5130
QtCanvas::backgroundPixmap
QPixmap backgroundPixmap() const
Definition: qtcanvas.cpp:1491
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
QtCanvasLine::startPoint
QPoint startPoint() const
Definition: qtcanvas.h:768
QtCanvasView::contentsDropEvent
virtual void contentsDropEvent(QDropEvent *)
Definition: qtcanvas.cpp:3664
QtCanvasPolygonalItem::setBrush
virtual void setBrush(QBrush b)
Definition: qtcanvas.cpp:4287
QtCanvasItem::animated
bool animated() const
Definition: qtcanvas.cpp:1945
QtCanvasItem::setAnimated
virtual void setAnimated(bool y)
Definition: qtcanvas.cpp:1957
QtCanvasRectangle::areaPoints
QPolygon areaPoints() const
Definition: qtcanvas.cpp:4787
QtCanvasLine::endPoint
QPoint endPoint() const
Definition: qtcanvas.h:772
QtCanvasView::contentsWheelEvent
virtual void contentsWheelEvent(QWheelEvent *)
Definition: qtcanvas.cpp:3668
QtCanvas::addItem
virtual void addItem(QtCanvasItem *)
Definition: qtcanvas.cpp:896
QtCanvasSprite::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: qtcanvas.cpp:2490
QtCanvasSprite::setFrame
void setFrame(int)
Definition: qtcanvas.cpp:5471
QtCanvas::drawCanvasArea
void drawCanvasArea(const QRect &, QPainter *p=0, bool double_buffer=true)
Definition: qtcanvas.cpp:1267
QtCanvasPixmap::QtCanvasPixmap
QtCanvasPixmap(const QString &datafilename)
Definition: qtcanvas.cpp:2820
QtCanvasItem::QtCanvasRectangle
friend class QtCanvasRectangle
Definition: qtcanvas.h:200
QtCanvas::addItemToChunkContaining
void addItemToChunkContaining(QtCanvasItem *, int x, int y)
Definition: qtcanvas.cpp:1422
QtCanvas::sameChunk
bool sameChunk(int x1, int y1, int x2, int y2) const
Definition: qtcanvas.h:315
QtCanvasPixmap::qt_testCollision
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: qtcanvas.cpp:2239
QtCanvasSprite::qt_testCollision
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: qtcanvas.cpp:2239
QtCanvasSprite::frameCount
int frameCount() const
Definition: qtcanvas.h:556
QtCanvasEllipse::drawShape
void drawShape(QPainter &)
Definition: qtcanvas.cpp:4983
QtCanvasWidget
Definition: qtcanvas.cpp:3502
QtCanvasItem::Rtti_Spline
@ Rtti_Spline
Definition: qtcanvas.h:175
QtCanvasItem::Rtti_Line
@ Rtti_Line
Definition: qtcanvas.h:174
QtCanvasLine::drawShape
void drawShape(QPainter &)
Definition: qtcanvas.cpp:4606
QtCanvasItem::setVisible
virtual void setVisible(bool yes)
Definition: qtcanvas.cpp:2109
QtCanvasSprite::boundingRect
QRect boundingRect() const
Definition: qtcanvas.cpp:3329
angle
double angle(const Point &a, const Point &b, const Point &c)
Definition: point.hpp:100
QtCanvasPixmapArray::readPixmaps
bool readPixmaps(const QString &datafilenamepattern, int framecount=0)
Definition: qtcanvas.cpp:3037
QtCanvasSprite::topEdge
int topEdge() const
Definition: qtcanvas.cpp:3229
QtCanvas::onCanvas
bool onCanvas(int x, int y) const
Definition: qtcanvas.h:292
QtCanvasSprite::Cycle
@ Cycle
Definition: qtcanvas.h:550
QtCanvasPixmapArray::isValid
bool isValid() const
Definition: qtcanvas.cpp:3150
QtCanvas::setUpdatePeriod
virtual void setUpdatePeriod(int ms)
Definition: qtcanvas.cpp:995
QtCanvasItem::setSelected
virtual void setSelected(bool yes)
Definition: qtcanvas.cpp:2168
QtCanvasSprite::rtti
int rtti() const
Definition: qtcanvas.cpp:5303
QtCanvas::tile
int tile(int x, int y) const
Definition: qtcanvas.h:252
QtCanvasSprite::image
QtCanvasPixmap * image() const
Definition: qtcanvas.h:583
QtCanvasText::textFlags
int textFlags() const
Definition: qtcanvas.h:856
QtCanvas::setAllChanged
virtual void setAllChanged()
Definition: qtcanvas.cpp:1115
QtCanvasView
Definition: qtcanvas.h:401
QtCanvasLine::setPen
void setPen(QPen p)
Definition: qtcanvas.cpp:4565
QtCanvasView::worldMatrix
const QMatrix & worldMatrix() const
Definition: qtcanvas.cpp:3724
QtCanvasItem::xVelocity
double xVelocity() const
Definition: qtcanvas.cpp:2013
QtCanvasRectangle::rect
QRect rect() const
Definition: qtcanvas.h:696
QtCanvasPolygon::rtti
int rtti() const
Definition: qtcanvas.cpp:5336
QtCanvas::addAnimation
virtual void addAnimation(QtCanvasItem *)
Definition: qtcanvas.cpp:906
QtCanvasEllipse
Definition: qtcanvas.h:792
QtCanvasView::canvas
QtCanvas * canvas() const
Definition: qtcanvas.h:411
QtCanvasPolygonalItem::collidesWith
bool collidesWith(const QtCanvasItem *) const
Definition: qtcanvas.cpp:2513
QtCanvasPolygonalItem::rtti
int rtti() const
Definition: qtcanvas.cpp:5314
QtCanvasItem::~QtCanvasItem
virtual ~QtCanvasItem()
Definition: qtcanvas.cpp:1846
QtCanvasEllipse::height
int height() const
Definition: qtcanvas.cpp:4909
QtCanvasText::setTextFlags
void setTextFlags(int)
Definition: qtcanvas.cpp:5087
QtCanvasPolygonalItem::winding
bool winding() const
Definition: qtcanvas.cpp:3925
QtCanvas::removeView
virtual void removeView(QtCanvasView *)
Definition: qtcanvas.cpp:954
QtCanvasText::moveBy
void moveBy(double dx, double dy)
Definition: qtcanvas.cpp:5176
QtCanvasRectangle::chunks
QPolygon chunks() const
Definition: qtcanvas.cpp:4213
QtCanvasSprite
Definition: qtcanvas.h:538
QtCanvasText
Definition: qtcanvas.h:838
QtCanvasPolygon::areaPoints
QPolygon areaPoints() const
Definition: qtcanvas.cpp:4524
QtCanvasPolygonalItem::isValid
bool isValid() const
Definition: qtcanvas.h:657
QtCanvasItem::move
void move(double x, double y)
Definition: qtcanvas.cpp:1933
QtCanvas::onCanvas
bool onCanvas(const QPoint &p) const
Definition: qtcanvas.h:296
QtCanvasPolygon::points
QPolygon points() const
Definition: qtcanvas.cpp:4511
QtCanvasItem::collisions
QtCanvasItemList collisions(bool exact) const
Definition: qtcanvas.cpp:2617
QtCanvasText::draw
virtual void draw(QPainter &)
Definition: qtcanvas.cpp:5199
QtCanvasView::QtCanvasView
QtCanvasView(QWidget *parent=0)
Definition: qtcanvas.cpp:3573
QtCanvas::tilesVertically
int tilesVertically() const
Definition: qtcanvas.h:261
QtCanvasText::~QtCanvasText
virtual ~QtCanvasText()
Definition: qtcanvas.cpp:5053
QtCanvasItem::setY
void setY(double a)
Definition: qtcanvas.h:92
QtCanvasPixmap::~QtCanvasPixmap
~QtCanvasPixmap()
Definition: qtcanvas.cpp:2880
QtCanvasPolygon::drawShape
void drawShape(QPainter &)
Definition: qtcanvas.cpp:4339
QtCanvasSprite::draw
void draw(QPainter &painter)
Definition: qtcanvas.cpp:3438
QtCanvas::retune
virtual void retune(int chunksize, int maxclusters=100)
Definition: qtcanvas.cpp:776
QtCanvas::size
QSize size() const
Definition: qtcanvas.h:284
QtCanvas::setAdvancePeriod
virtual void setAdvancePeriod(int ms)
Definition: qtcanvas.cpp:966
QtCanvasView::~QtCanvasView
~QtCanvasView()
Definition: qtcanvas.cpp:3602
QtCanvasItem::QtCanvasPolygon
friend class QtCanvasPolygon
Definition: qtcanvas.h:201
QtCanvasPixmapArray::QtCanvasPixmapArray
QtCanvasPixmapArray()
Definition: qtcanvas.cpp:2938
QtCanvasEllipse::angleStart
int angleStart() const
Definition: qtcanvas.h:807
QtCanvasSprite::bottomEdge
int bottomEdge() const
Definition: qtcanvas.cpp:3281
QtCanvasPolygon::RTTI
static int RTTI
Definition: qtcanvas.h:733
QtCanvasSprite::setSequence
void setSequence(QtCanvasPixmapArray *seq)
Definition: qtcanvas.cpp:5411