#include <qtcanvas.h>
Inheritance diagram for QtCanvasSprite:
Collaboration diagram for QtCanvasSprite:Public Types | |
| enum | FrameAnimationType { Cycle, Oscillate, Cycle, Oscillate } |
| enum | FrameAnimationType { Cycle, Oscillate, Cycle, Oscillate } |
Public Types inherited from QtCanvasItem | |
| enum | RttiValues { Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7, Rtti_Spline = 8, Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7, Rtti_Spline = 8 } |
| enum | RttiValues { Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7, Rtti_Spline = 8, Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7, Rtti_Spline = 8 } |
Public Member Functions | |
| virtual void | advance (int stage) |
| virtual void | advance (int stage) |
| int | bottomEdge () const |
| int | bottomEdge () const |
| int | bottomEdge (int ny) const |
| int | bottomEdge (int ny) const |
| QRect | boundingRect () const |
| QRect | boundingRect () const |
| bool | collidesWith (const QtCanvasItem *) const |
| bool | collidesWith (const QtCanvasItem *) const |
| void | draw (QPainter &painter) |
| void | draw (QPainter &painter) |
| int | frame () const |
| int | frame () const |
| int | frameCount () const |
| int | frameCount () const |
| int | height () const |
| int | height () const |
| QtCanvasPixmap * | image () const |
| QtCanvasPixmap * | image () const |
| QtCanvasPixmap * | image (int f) const |
| QtCanvasPixmap * | image (int f) const |
| virtual QtCanvasPixmap * | imageAdvanced () const |
| virtual QtCanvasPixmap * | imageAdvanced () const |
| int | leftEdge () const |
| int | leftEdge () const |
| int | leftEdge (int nx) const |
| int | leftEdge (int nx) const |
| void | move (double x, double y) |
| void | move (double x, double y) |
| virtual void | move (double x, double y, int frame) |
| virtual void | move (double x, double y, int frame) |
| QtCanvasSprite (QtCanvasPixmapArray *array, QtCanvas *canvas) | |
| QtCanvasSprite (QtCanvasPixmapArray *array, QtCanvas *canvas) | |
| int | rightEdge () const |
| int | rightEdge () const |
| int | rightEdge (int nx) const |
| int | rightEdge (int nx) const |
| int | rtti () const |
| int | rtti () const |
| void | setFrame (int) |
| void | setFrame (int) |
| virtual void | setFrameAnimation (FrameAnimationType=Cycle, int step=1, int state=0) |
| virtual void | setFrameAnimation (FrameAnimationType=Cycle, int step=1, int state=0) |
| void | setSequence (QtCanvasPixmapArray *seq) |
| void | setSequence (QtCanvasPixmapArray *seq) |
| int | topEdge () const |
| int | topEdge () const |
| int | topEdge (int ny) const |
| int | topEdge (int ny) const |
| int | width () const |
| int | width () const |
| virtual | ~QtCanvasSprite () |
| virtual | ~QtCanvasSprite () |
Public Member Functions inherited from QtCanvasItem | |
| bool | active () const |
| bool | active () const |
| bool | animated () const |
| bool | animated () const |
| virtual QRect | boundingRectAdvanced () const |
| virtual QRect | boundingRectAdvanced () const |
| QtCanvas * | canvas () const |
| QtCanvas * | canvas () const |
| QtCanvasItemList | collisions (bool exact) const |
| QtCanvasItemList | collisions (bool exact) const |
| bool | enabled () const |
| bool | enabled () const |
| void | hide () |
| void | hide () |
| bool | isActive () const |
| bool | isActive () const |
| bool | isEnabled () const |
| bool | isEnabled () const |
| bool | isSelected () const |
| bool | isSelected () const |
| bool | isVisible () const |
| bool | isVisible () const |
| void | move (double x, double y) |
| void | move (double x, double y) |
| virtual void | moveBy (double dx, double dy) |
| virtual void | moveBy (double dx, double dy) |
| QtCanvasItem (QtCanvas *canvas) | |
| QtCanvasItem (QtCanvas *canvas) | |
| bool | selected () const |
| bool | selected () const |
| virtual void | setActive (bool yes) |
| virtual void | setActive (bool yes) |
| virtual void | setAnimated (bool y) |
| virtual void | setAnimated (bool y) |
| virtual void | setCanvas (QtCanvas *) |
| virtual void | setCanvas (QtCanvas *) |
| virtual void | setEnabled (bool yes) |
| virtual void | setEnabled (bool yes) |
| virtual void | setSelected (bool yes) |
| virtual void | setSelected (bool yes) |
| virtual void | setVelocity (double vx, double vy) |
| virtual void | setVelocity (double vx, double vy) |
| virtual void | setVisible (bool yes) |
| virtual void | setVisible (bool yes) |
| void | setX (double a) |
| void | setX (double a) |
| void | setXVelocity (double vx) |
| void | setXVelocity (double vx) |
| void | setY (double a) |
| void | setY (double a) |
| void | setYVelocity (double vy) |
| void | setYVelocity (double vy) |
| void | setZ (double a) |
| void | setZ (double a) |
| void | show () |
| void | show () |
| bool | visible () const |
| bool | visible () const |
| double | x () const |
| double | x () const |
| double | xVelocity () const |
| double | xVelocity () const |
| double | y () const |
| double | y () const |
| double | yVelocity () const |
| double | yVelocity () const |
| double | z () const |
| double | z () const |
| virtual | ~QtCanvasItem () |
| virtual | ~QtCanvasItem () |
Static Public Attributes | |
| static int | RTTI = Rtti_Sprite |
Static Public Attributes inherited from QtCanvasItem | |
| static int | RTTI = Rtti_Item |
Private Member Functions | |
| void | addToChunks () |
| void | addToChunks () |
| void | changeChunks () |
| void | changeChunks () |
| bool | collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const |
| bool | collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const |
| void | removeFromChunks () |
| void | removeFromChunks () |
Private Attributes | |
| uint | anim_state: 2 |
| uint | anim_type: 14 |
| ushort | anim_val |
| int | frm |
| QtCanvasPixmapArray * | images |
Friends | |
| bool | qt_testCollision (const QtCanvasSprite *s1, const QtCanvasSprite *s2) |
| bool | qt_testCollision (const QtCanvasSprite *s1, const QtCanvasSprite *s2) |
Additional Inherited Members | |
Protected Member Functions inherited from QtCanvasItem | |
| void | update () |
| void | update () |
| QtCanvasSprite::QtCanvasSprite | ( | QtCanvasPixmapArray * | array, |
| QtCanvas * | canvas | ||
| ) |
|
virtual |
| QtCanvasSprite::QtCanvasSprite | ( | QtCanvasPixmapArray * | array, |
| QtCanvas * | canvas | ||
| ) |
|
virtual |
|
privatevirtual |
Reimplemented from QtCanvasItem.
References QtCanvas::addItemToChunk(), bottomEdge(), QtCanvasItem::canvas(), QtCanvas::chunkSize(), QtCanvasItem::isVisible(), leftEdge(), rightEdge(), and topEdge().
Here is the call graph for this function:
|
privatevirtual |
Reimplemented from QtCanvasItem.
|
virtual |
Reimplemented from QtCanvasItem.
References anim_state, anim_type, anim_val, frame(), frameCount(), move(), Oscillate, QtCanvasItem::x(), QtCanvasItem::xVelocity(), QtCanvasItem::y(), and QtCanvasItem::yVelocity().
Here is the call graph for this function:
|
virtual |
Reimplemented from QtCanvasItem.
| int QtCanvasSprite::bottomEdge | ( | ) | const |
| int QtCanvasSprite::bottomEdge | ( | ) | const |
References image(), and topEdge().
Referenced by addToChunks(), changeChunks(), and removeFromChunks().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::bottomEdge | ( | int | ny | ) | const |
| int QtCanvasSprite::bottomEdge | ( | int | ny | ) | const |
|
virtual |
Implements QtCanvasItem.
|
virtual |
Implements QtCanvasItem.
References height(), leftEdge(), topEdge(), and width().
Here is the call graph for this function:
|
privatevirtual |
Reimplemented from QtCanvasItem.
References bottomEdge(), QtCanvasItem::canvas(), QtCanvas::chunkSize(), QtCanvasItem::isVisible(), leftEdge(), rightEdge(), QtCanvas::setChangedChunk(), and topEdge().
Here is the call graph for this function:
|
privatevirtual |
Reimplemented from QtCanvasItem.
|
virtual |
Implements QtCanvasItem.
References QtCanvasItem::collidesWith().
Here is the call graph for this function:
|
virtual |
Implements QtCanvasItem.
|
privatevirtual |
Implements QtCanvasItem.
References collision_double_dispatch().
Here is the call graph for this function:
|
privatevirtual |
Implements QtCanvasItem.
|
virtual |
Implements QtCanvasItem.
References image(), leftEdge(), and topEdge().
Here is the call graph for this function:
|
virtual |
Implements QtCanvasItem.
|
inline |
References frm.
|
inline |
|
inline |
|
inline |
References QtCanvasPixmapArray::count(), and images.
Referenced by advance(), and move().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::height | ( | ) | const |
| int QtCanvasSprite::height | ( | ) | const |
References image().
Referenced by boundingRect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
References frm, QtCanvasPixmapArray::image(), and images.
Referenced by bottomEdge(), draw(), height(), imageAdvanced(), leftEdge(), rightEdge(), topEdge(), and width().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
virtual |
|
virtual |
References image().
Referenced by qt_testCollision().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::leftEdge | ( | ) | const |
| int QtCanvasSprite::leftEdge | ( | ) | const |
References QtCanvasPixmap::hotx, image(), and QtCanvasItem::x().
Referenced by addToChunks(), boundingRect(), changeChunks(), draw(), removeFromChunks(), and rightEdge().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::leftEdge | ( | int | nx | ) | const |
| int QtCanvasSprite::leftEdge | ( | int | nx | ) | const |
| void QtCanvasSprite::move | ( | double | x, |
| double | y | ||
| ) |
References QtCanvasItem::move(), QtCanvasItem::x(), and QtCanvasItem::y().
Referenced by advance(), and setFrame().
Here is the call graph for this function:
Here is the caller graph for this function:| void QtCanvasSprite::move | ( | double | x, |
| double | y | ||
| ) |
|
virtual |
|
virtual |
References QtCanvasItem::canvas(), frameCount(), frm, QtCanvasItem::hide(), QtCanvasItem::isVisible(), QtCanvasItem::move(), and QtCanvasItem::show().
Here is the call graph for this function:
|
privatevirtual |
Reimplemented from QtCanvasItem.
|
privatevirtual |
Reimplemented from QtCanvasItem.
References bottomEdge(), QtCanvasItem::canvas(), QtCanvas::chunkSize(), QtCanvasItem::isVisible(), leftEdge(), QtCanvas::removeItemFromChunk(), rightEdge(), and topEdge().
Referenced by ~QtCanvasSprite().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::rightEdge | ( | ) | const |
References image(), and leftEdge().
Referenced by addToChunks(), changeChunks(), and removeFromChunks().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::rightEdge | ( | ) | const |
| int QtCanvasSprite::rightEdge | ( | int | nx | ) | const |
| int QtCanvasSprite::rightEdge | ( | int | nx | ) | const |
|
virtual |
Reimplemented from QtCanvasItem.
|
virtual |
Reimplemented from QtCanvasItem.
References RTTI.
| void QtCanvasSprite::setFrame | ( | int | f | ) |
References move(), QtCanvasItem::x(), and QtCanvasItem::y().
Here is the call graph for this function:| void QtCanvasSprite::setFrame | ( | int | ) |
|
virtual |
|
virtual |
References anim_state, anim_type, anim_val, and QtCanvasItem::setAnimated().
Here is the call graph for this function:| void QtCanvasSprite::setSequence | ( | QtCanvasPixmapArray * | seq | ) |
| void QtCanvasSprite::setSequence | ( | QtCanvasPixmapArray * | seq | ) |
References a, QtCanvasPixmapArray::count(), frm, QtCanvasItem::hide(), images, QtCanvasItem::isVisible(), and QtCanvasItem::show().
Here is the call graph for this function:| int QtCanvasSprite::topEdge | ( | ) | const |
References QtCanvasPixmap::hoty, image(), and QtCanvasItem::y().
Referenced by addToChunks(), bottomEdge(), boundingRect(), changeChunks(), draw(), and removeFromChunks().
Here is the call graph for this function:
Here is the caller graph for this function:| int QtCanvasSprite::topEdge | ( | ) | const |
| int QtCanvasSprite::topEdge | ( | int | ny | ) | const |
| int QtCanvasSprite::topEdge | ( | int | ny | ) | const |
| int QtCanvasSprite::width | ( | ) | const |
| int QtCanvasSprite::width | ( | ) | const |
References image().
Referenced by boundingRect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
|
friend |
|
private |
Referenced by advance(), and setFrameAnimation().
|
private |
Referenced by advance(), and setFrameAnimation().
|
private |
Referenced by advance(), and setFrameAnimation().
|
private |
Referenced by frame(), image(), move(), and setSequence().
|
private |
Referenced by frameCount(), image(), and setSequence().
|
static |
Referenced by rtti().