This class allows to add multiple trajectories and temporal image. More...
#include <AnimationScene.h>
Public Member Functions | |
| void | addItem (AnimationItem *item) |
| Add item. More... | |
| AnimationScene (te::qt::widgets::MapDisplay *display, QObject *parent=0) | |
| Constructor It constructs a animation Scene. More... | |
| void | clear () |
| Clear scene. Remove all items. More... | |
| void | createNewPixmap () |
| Create a new clear pixmap. More... | |
| void | draw (const int &curTime) |
| It draws the animation item. More... | |
| void | removeItem (AnimationItem *item) |
| Remove item. More... | |
| void | setDuration (const int &duration) |
| It sets the trajectory duration. More... | |
| virtual | ~AnimationScene () |
| Destructor It destructs a animation Scene. More... | |
Public Attributes | |
| te::qt::widgets::MapDisplay * | m_display |
| It configures automatic pan over a trajectory. More... | |
| QMutex | m_mutex |
| To not use m_trajectoryPixmap simultaneously. More... | |
| int | m_numberOfCoverages |
| Number of coverage items. More... | |
| int | m_numberOfTrajectories |
| Number of trajectory items. More... | |
| QPixmap * | m_trajectoryPixmap |
| QPixmap where all the trajectory item are drawn. More... | |
This class allows to add multiple trajectories and temporal image.
Definition at line 50 of file AnimationScene.h.
| te::qt::widgets::AnimationScene::AnimationScene | ( | te::qt::widgets::MapDisplay * | display, |
| QObject * | parent = 0 |
||
| ) |
Constructor It constructs a animation Scene.
|
virtual |
Destructor It destructs a animation Scene.
| void te::qt::widgets::AnimationScene::addItem | ( | AnimationItem * | item | ) |
Add item.
| item | The graphics item. It can be trajectory item or pixmap item. |
| void te::qt::widgets::AnimationScene::clear | ( | ) |
Clear scene. Remove all items.
| void te::qt::widgets::AnimationScene::createNewPixmap | ( | ) |
Create a new clear pixmap.
| void te::qt::widgets::AnimationScene::draw | ( | const int & | curTime | ) |
It draws the animation item.
| curtime | The normalized current time (between 0 and 1). |
| void te::qt::widgets::AnimationScene::removeItem | ( | AnimationItem * | item | ) |
Remove item.
| item | The graphics item. |
| void te::qt::widgets::AnimationScene::setDuration | ( | const int & | duration | ) |
It sets the trajectory duration.
| duration | The animation duration in miliseconds |
| te::qt::widgets::MapDisplay* te::qt::widgets::AnimationScene::m_display |
It configures automatic pan over a trajectory.
| title | The trajectory title.Indicates where the scene is displayed. |
Definition at line 107 of file AnimationScene.h.
| QMutex te::qt::widgets::AnimationScene::m_mutex |
To not use m_trajectoryPixmap simultaneously.
Definition at line 109 of file AnimationScene.h.
| int te::qt::widgets::AnimationScene::m_numberOfCoverages |
Number of coverage items.
Definition at line 111 of file AnimationScene.h.
| int te::qt::widgets::AnimationScene::m_numberOfTrajectories |
Number of trajectory items.
Definition at line 110 of file AnimationScene.h.
| QPixmap* te::qt::widgets::AnimationScene::m_trajectoryPixmap |
QPixmap where all the trajectory item are drawn.
Definition at line 108 of file AnimationScene.h.