#include <qtcanvas.h>
Inheritance diagram for QtCanvas:
Collaboration diagram for QtCanvas:Public Slots | |
| virtual void | advance () |
| virtual void | advance () |
| virtual void | update () |
| virtual void | update () |
Signals | |
| void | resized () |
| void | resized () |
Public Member Functions | |
| virtual void | addAnimation (QtCanvasItem *) |
| virtual void | addAnimation (QtCanvasItem *) |
| virtual void | addItem (QtCanvasItem *) |
| virtual void | addItem (QtCanvasItem *) |
| void | addItemToChunk (QtCanvasItem *, int i, int j) |
| void | addItemToChunk (QtCanvasItem *, int i, int j) |
| void | addItemToChunkContaining (QtCanvasItem *, int x, int y) |
| void | addItemToChunkContaining (QtCanvasItem *, int x, int y) |
| virtual void | addView (QtCanvasView *) |
| virtual void | addView (QtCanvasView *) |
| QtCanvasItemList | allItems () |
| QtCanvasItemList | allItems () |
| QColor | backgroundColor () const |
| QColor | backgroundColor () const |
| QPixmap | backgroundPixmap () const |
| QPixmap | backgroundPixmap () const |
| int | chunkSize () const |
| int | chunkSize () const |
| QtCanvasItemList | collisions (const QPoint &) const |
| QtCanvasItemList | collisions (const QPoint &) const |
| QtCanvasItemList | collisions (const QPolygon &pa, const QtCanvasItem *item, bool exact) const |
| QtCanvasItemList | collisions (const QPolygon &pa, const QtCanvasItem *item, bool exact) const |
| QtCanvasItemList | collisions (const QRect &) const |
| QtCanvasItemList | collisions (const QRect &) const |
| void | drawArea (const QRect &, QPainter *p, bool double_buffer=false) |
| void | drawArea (const QRect &, QPainter *p, bool double_buffer=false) |
| void | drawCanvasArea (const QRect &, QPainter *p=0, bool double_buffer=true) |
| void | drawCanvasArea (const QRect &, QPainter *p=0, bool double_buffer=true) |
| void | drawViewArea (QtCanvasView *view, QPainter *p, const QRect &r, bool dbuf) |
| void | drawViewArea (QtCanvasView *view, QPainter *p, const QRect &r, bool dbuf) |
| int | height () const |
| int | height () const |
| bool | onCanvas (const QPoint &p) const |
| bool | onCanvas (const QPoint &p) const |
| bool | onCanvas (int x, int y) const |
| bool | onCanvas (int x, int y) const |
| QtCanvas (int w, int h) | |
| QtCanvas (int w, int h) | |
| QtCanvas (QObject *parent=0) | |
| QtCanvas (QObject *parent=0) | |
| QtCanvas (QPixmap p, int h, int v, int tilewidth, int tileheight) | |
| QtCanvas (QPixmap p, int h, int v, int tilewidth, int tileheight) | |
| QRect | rect () const |
| QRect | rect () const |
| virtual void | removeAnimation (QtCanvasItem *) |
| virtual void | removeAnimation (QtCanvasItem *) |
| virtual void | removeItem (QtCanvasItem *) |
| virtual void | removeItem (QtCanvasItem *) |
| void | removeItemFromChunk (QtCanvasItem *, int i, int j) |
| void | removeItemFromChunk (QtCanvasItem *, int i, int j) |
| void | removeItemFromChunkContaining (QtCanvasItem *, int x, int y) |
| void | removeItemFromChunkContaining (QtCanvasItem *, int x, int y) |
| virtual void | removeView (QtCanvasView *) |
| virtual void | removeView (QtCanvasView *) |
| virtual void | resize (int width, int height) |
| virtual void | resize (int width, int height) |
| virtual void | retune (int chunksize, int maxclusters=100) |
| virtual void | retune (int chunksize, int maxclusters=100) |
| bool | sameChunk (int x1, int y1, int x2, int y2) const |
| bool | sameChunk (int x1, int y1, int x2, int y2) const |
| virtual void | setAdvancePeriod (int ms) |
| virtual void | setAdvancePeriod (int ms) |
| virtual void | setAllChanged () |
| virtual void | setAllChanged () |
| virtual void | setBackgroundColor (const QColor &c) |
| virtual void | setBackgroundColor (const QColor &c) |
| virtual void | setBackgroundPixmap (const QPixmap &p) |
| virtual void | setBackgroundPixmap (const QPixmap &p) |
| virtual void | setChanged (const QRect &area) |
| virtual void | setChanged (const QRect &area) |
| virtual void | setChangedChunk (int i, int j) |
| virtual void | setChangedChunk (int i, int j) |
| virtual void | setChangedChunkContaining (int x, int y) |
| virtual void | setChangedChunkContaining (int x, int y) |
| virtual void | setTile (int x, int y, int tilenum) |
| virtual void | setTile (int x, int y, int tilenum) |
| virtual void | setTiles (QPixmap tiles, int h, int v, int tilewidth, int tileheight) |
| virtual void | setTiles (QPixmap tiles, int h, int v, int tilewidth, int tileheight) |
| virtual void | setUnchanged (const QRect &area) |
| virtual void | setUnchanged (const QRect &area) |
| virtual void | setUpdatePeriod (int ms) |
| virtual void | setUpdatePeriod (int ms) |
| QSize | size () const |
| QSize | size () const |
| int | tile (int x, int y) const |
| int | tile (int x, int y) const |
| int | tileHeight () const |
| int | tileHeight () const |
| int | tilesHorizontally () const |
| int | tilesHorizontally () const |
| int | tilesVertically () const |
| int | tilesVertically () const |
| int | tileWidth () const |
| int | tileWidth () const |
| bool | validChunk (const QPoint &p) const |
| bool | validChunk (const QPoint &p) const |
| bool | validChunk (int x, int y) const |
| bool | validChunk (int x, int y) const |
| int | width () const |
| int | width () const |
| virtual | ~QtCanvas () |
| virtual | ~QtCanvas () |
Protected Member Functions | |
| virtual void | drawBackground (QPainter &, const QRect &area) |
| virtual void | drawBackground (QPainter &, const QRect &area) |
| virtual void | drawForeground (QPainter &, const QRect &area) |
| virtual void | drawForeground (QPainter &, const QRect &area) |
Friends | |
| void | qt_unview (QtCanvas *c) |
| void | qt_unview (QtCanvas *c) |
| QtCanvas::QtCanvas | ( | QObject * | parent = 0 | ) |
| QtCanvas::QtCanvas | ( | int | w, |
| int | h | ||
| ) |
| QtCanvas::QtCanvas | ( | QPixmap | p, |
| int | h, | ||
| int | v, | ||
| int | tilewidth, | ||
| int | tileheight | ||
| ) |
|
virtual |
| QtCanvas::QtCanvas | ( | QObject * | parent = 0 | ) |
| QtCanvas::QtCanvas | ( | int | w, |
| int | h | ||
| ) |
| QtCanvas::QtCanvas | ( | QPixmap | p, |
| int | h, | ||
| int | v, | ||
| int | tilewidth, | ||
| int | tileheight | ||
| ) |
|
virtual |
|
virtual |
References QtCanvasData::animDict.
Referenced by QtCanvasItem::setAnimated(), and QtCanvasItem::setCanvas().
Here is the caller graph for this function:
|
virtual |
|
virtual |
References QtCanvasData::itemDict.
Referenced by QtCanvasItem::QtCanvasItem(), and QtCanvasItem::setCanvas().
Here is the caller graph for this function:
|
virtual |
| void QtCanvas::addItemToChunk | ( | QtCanvasItem * | g, |
| int | i, | ||
| int | j | ||
| ) |
| void QtCanvas::addItemToChunk | ( | QtCanvasItem * | , |
| int | i, | ||
| int | j | ||
| ) |
| void QtCanvas::addItemToChunkContaining | ( | QtCanvasItem * | g, |
| int | x, | ||
| int | y | ||
| ) |
| void QtCanvas::addItemToChunkContaining | ( | QtCanvasItem * | , |
| int | x, | ||
| int | y | ||
| ) |
|
virtual |
References backgroundColor(), and QtCanvasData::viewList.
Referenced by QtCanvasView::setCanvas().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtualslot |
References QtCanvasItem::advance(), QtCanvasData::animDict, and update().
Referenced by setAdvancePeriod().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualslot |
| QtCanvasItemList QtCanvas::allItems | ( | ) |
References QtCanvasData::itemDict.
Referenced by ~QtCanvas().
Here is the caller graph for this function:| QtCanvasItemList QtCanvas::allItems | ( | ) |
| QColor QtCanvas::backgroundColor | ( | ) | const |
| QColor QtCanvas::backgroundColor | ( | ) | const |
| QPixmap QtCanvas::backgroundPixmap | ( | ) | const |
| QPixmap QtCanvas::backgroundPixmap | ( | ) | const |
|
inline |
Referenced by QPolygonalProcessor::add(), QPolygonalProcessor::doSpans(), and QPolygonalProcessor::QPolygonalProcessor().
Here is the caller graph for this function:
|
inline |
| QtCanvasItemList QtCanvas::collisions | ( | const QPoint & | p | ) | const |
| QtCanvasItemList QtCanvas::collisions | ( | const QPoint & | ) | const |
| QtCanvasItemList QtCanvas::collisions | ( | const QPolygon & | pa, |
| const QtCanvasItem * | item, | ||
| bool | exact | ||
| ) | const |
References QtCanvasItem::collidesWith(), QtCanvasChunk::list(), validChunk(), QtCanvasItem::x(), and QtCanvasItem::y().
Here is the call graph for this function:| QtCanvasItemList QtCanvas::collisions | ( | const QPolygon & | pa, |
| const QtCanvasItem * | item, | ||
| bool | exact | ||
| ) | const |
| QtCanvasItemList QtCanvas::collisions | ( | const QRect & | r | ) | const |
References QtCanvasItem::collisions(), QtCanvasPolygonalItem::setPen(), and QtCanvasItem::show().
Here is the call graph for this function:| QtCanvasItemList QtCanvas::collisions | ( | const QRect & | ) | const |
| void QtCanvas::drawArea | ( | const QRect & | clip, |
| QPainter * | p, | ||
| bool | double_buffer = false |
||
| ) |
| void QtCanvas::drawArea | ( | const QRect & | , |
| QPainter * | p, | ||
| bool | double_buffer = false |
||
| ) |
|
protectedvirtual |
References tile(), tilesHorizontally(), and tilesVertically().
Referenced by drawCanvasArea().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
| void QtCanvas::drawCanvasArea | ( | const QRect & | inarea, |
| QPainter * | p = 0, |
||
| bool | double_buffer = true |
||
| ) |
References QtCanvasItem::draw(), drawBackground(), drawForeground(), height(), QtCanvasChunk::list(), and width().
Referenced by drawArea(), and drawViewArea().
Here is the call graph for this function:
Here is the caller graph for this function:| void QtCanvas::drawCanvasArea | ( | const QRect & | , |
| QPainter * | p = 0, |
||
| bool | double_buffer = true |
||
| ) |
|
protectedvirtual |
|
protectedvirtual |
| void QtCanvas::drawViewArea | ( | QtCanvasView * | view, |
| QPainter * | p, | ||
| const QRect & | r, | ||
| bool | dbuf | ||
| ) |
References drawCanvasArea(), and QtCanvasView::worldMatrix().
Referenced by QtCanvasView::drawContents().
Here is the call graph for this function:
Here is the caller graph for this function:| void QtCanvas::drawViewArea | ( | QtCanvasView * | view, |
| QPainter * | p, | ||
| const QRect & | r, | ||
| bool | dbuf | ||
| ) |
|
inline |
Referenced by addItemToChunkContaining(), drawCanvasArea(), removeItemFromChunkContaining(), setAllChanged(), setChanged(), setChangedChunkContaining(), and setUnchanged().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by QtCanvasView::drawContents(), and QPolygonalProcessor::QPolygonalProcessor().
Here is the caller graph for this function:
|
inline |
|
virtual |
References QtCanvasData::animDict.
Referenced by QtCanvasItem::setAnimated(), QtCanvasItem::setCanvas(), and QtCanvasItem::~QtCanvasItem().
Here is the caller graph for this function:
|
virtual |
|
virtual |
References QtCanvasData::itemDict.
Referenced by QtCanvasItem::setCanvas(), and QtCanvasItem::~QtCanvasItem().
Here is the caller graph for this function:
|
virtual |
| void QtCanvas::removeItemFromChunk | ( | QtCanvasItem * | g, |
| int | i, | ||
| int | j | ||
| ) |
| void QtCanvas::removeItemFromChunk | ( | QtCanvasItem * | , |
| int | i, | ||
| int | j | ||
| ) |
| void QtCanvas::removeItemFromChunkContaining | ( | QtCanvasItem * | g, |
| int | x, | ||
| int | y | ||
| ) |
References height(), QtCanvasChunk::remove(), and width().
Here is the call graph for this function:| void QtCanvas::removeItemFromChunkContaining | ( | QtCanvasItem * | , |
| int | x, | ||
| int | y | ||
| ) |
|
virtual |
References QtCanvasData::viewList.
Referenced by QtCanvasView::setCanvas().
Here is the caller graph for this function:
|
virtual |
|
virtual |
References QtCanvasData::itemDict, resized(), and setAllChanged().
Here is the call graph for this function:
|
virtual |
|
signal |
|
signal |
|
virtual |
References QtCanvasData::itemDict.
Referenced by setTiles().
Here is the caller graph for this function:
|
virtual |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
References height(), setChanged(), and width().
Referenced by resize(), setBackgroundColor(), and setTiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
References QtCanvasChunk::change(), height(), and width().
Referenced by setAllChanged(), and setTile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
References QtCanvasChunk::change(), and validChunk().
Referenced by setTile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
References QtCanvasChunk::change(), height(), and width().
Here is the call graph for this function:
|
virtual |
|
virtual |
|
virtual |
|
virtual |
References retune(), scm(), and setAllChanged().
Referenced by QtCanvas(), and setBackgroundPixmap().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
References height(), QtCanvasChunk::takeChange(), and width().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtualslot |
References setUnchanged(), QtCanvasData::viewList, and QtCanvasView::worldMatrix().
Referenced by advance(), CanvasView::contentsMouseMoveEvent(), and setUpdatePeriod().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualslot |
|
inline |
|
inline |
|
inline |
Referenced by addItemToChunk(), collisions(), removeItemFromChunk(), setChangedChunk(), and validChunk().
Here is the caller graph for this function:
|
inline |
|
inline |
Referenced by addItemToChunkContaining(), drawCanvasArea(), removeItemFromChunkContaining(), setAllChanged(), setChanged(), setChangedChunkContaining(), and setUnchanged().
Here is the caller graph for this function:
|
inline |
|
friend |
|
friend |