#include <introsprite.h>
Inheritance diagram for IntroSprite:
Public Types | |
| enum | MovementState { Idle, IntroDelay, IntroLinear1, IntroCircle, IntroLinear2, LinearMove } |
Public Member Functions | |
| IntroSprite (QString id, ThemeManager *theme, int advancePeriod, int no, QGraphicsScene *scence) | |
| Constructor for the sprite. | |
| ~IntroSprite () | |
| Destructor. | |
| void | startIntro (QPointF start, QPointF end, double radius, double duration, double delay) |
| Start an intro move. | |
| void | startLinear (QPointF start, QPointF end, double duration) |
| Start a linear movement from start to end with the given duration. | |
| void | startLinear (QPointF end, double duration) |
| Start a linear movement from the current position to end with the given duration. | |
| virtual void | advance (int phase) |
| Standard QGI advance function. | |
| virtual int | type () const |
| Retrieve the type of QGI. | |
| int | number () |
| Retrieve the sprite numbers (which introsprite e.g. | |
| virtual void | changeTheme () |
| Main theme notification method. | |
Definition at line 35 of file introsprite.h.
|
|
Definition at line 79 of file introsprite.h. |
|
||||||||||||||||||||||||
|
Constructor for the sprite.
Definition at line 34 of file introsprite.cpp. References Idle, PixmapSprite::mAdvancePeriod, PixmapSprite::mNo, and ThemeManager::updateTheme(). Here is the call graph for this function: |
|
|
Destructor.
Definition at line 48 of file introsprite.cpp. |
|
|
Standard QGI advance function.
Reimplemented from PixmapSprite. Definition at line 101 of file introsprite.cpp. References Themable::getScale(), Idle, IntroCircle, IntroDelay, IntroLinear1, IntroLinear2, LinearMove, and PixmapSprite::mAdvancePeriod. Here is the call graph for this function: |
|
|
Main theme notification method. Is called for any theme changes. It must be implemented so that the item redraws correctly when the theme changed. Reimplemented from PixmapSprite. Definition at line 54 of file introsprite.cpp. References PixmapSprite::changeTheme(). Here is the call graph for this function: |
|
|
Retrieve the sprite numbers (which introsprite e.g. 0-42)
Reimplemented from PixmapSprite. Definition at line 94 of file introsprite.h. References PixmapSprite::mNo. Referenced by DisplayIntro::advance(). |
|
||||||||||||||||||||||||
|
Start an intro move. The first half of the move is is on a straight line from start to end. The second part of the move is a circle with the given radius and the final part of the move is again a straight line to the end location. The sprite movement is started delayed with the given delay factor.
Definition at line 61 of file introsprite.cpp. References Themable::getScale(), and IntroDelay. Referenced by DisplayIntro::advance(). Here is the call graph for this function: |
|
||||||||||||
|
Start a linear movement from the current position to end with the given duration.
Definition at line 89 of file introsprite.cpp. References Themable::getScale(), and LinearMove. Here is the call graph for this function: |
|
||||||||||||||||
|
Start a linear movement from start to end with the given duration.
Definition at line 76 of file introsprite.cpp. References Themable::getScale(), and LinearMove. Here is the call graph for this function: |
|
|
Retrieve the type of QGI. This item is UserType+1
Reimplemented from PixmapSprite. Definition at line 89 of file introsprite.h. |
1.4.6