This class is a dialog for the Animation. 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 Trajectory Scene. More... | |
void | clear () |
Clear scene. 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 | setAutomaticPan (const QString &title) |
It configures automatic pan over a trajectory. More... | |
void | setDuration (const int &duration) |
It sets the trajectory duration. More... | |
void | setMatrix () |
It sets the transformation matrix. More... | |
virtual | ~AnimationScene () |
Destructor It destructs a Trajectory Scene. More... | |
Public Attributes | |
te::qt::widgets::MapDisplay * | m_display |
Indicates where the scene is displayed. More... | |
QMutex | m_mutex |
To not use the scene pixmap 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 is a dialog for the Animation.
This class is a dialog for the Trajectory Scene.
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 Trajectory Scene.
Definition at line 12 of file AnimationScene.cpp.
References createNewPixmap().
|
virtual |
Destructor It destructs a Trajectory Scene.
Definition at line 22 of file AnimationScene.cpp.
void te::qt::widgets::AnimationScene::addItem | ( | AnimationItem * | item | ) |
void te::qt::widgets::AnimationScene::clear | ( | ) |
Clear scene.
Definition at line 82 of file AnimationScene.cpp.
void te::qt::widgets::AnimationScene::createNewPixmap | ( | ) |
Create a new clear pixmap.
Definition at line 27 of file AnimationScene.cpp.
Referenced by AnimationScene().
void te::qt::widgets::AnimationScene::draw | ( | const int & | curTime | ) |
It draws the animation item.
curtime | The normalized current time (between 0 and 1). |
Definition at line 125 of file AnimationScene.cpp.
References te::qt::widgets::AnimationItem::draw(), and te::qt::widgets::AnimationItem::m_curTimeDuration.
void te::qt::widgets::AnimationScene::removeItem | ( | AnimationItem * | item | ) |
void te::qt::widgets::AnimationScene::setAutomaticPan | ( | const QString & | title | ) |
It configures automatic pan over a trajectory.
title | The trajectory title. |
Definition at line 111 of file AnimationScene.cpp.
References te::qt::widgets::AnimationItem::m_automaticPan, and te::qt::widgets::AnimationItem::m_title.
void te::qt::widgets::AnimationScene::setDuration | ( | const int & | duration | ) |
It sets the trajectory duration.
duration | The animation duration in miliseconds |
Definition at line 100 of file AnimationScene.cpp.
References te::qt::widgets::AnimationItem::setDuration().
void te::qt::widgets::AnimationScene::setMatrix | ( | ) |
It sets the transformation matrix.
Definition at line 89 of file AnimationScene.cpp.
References te::qt::widgets::AnimationItem::setMatrix().
te::qt::widgets::MapDisplay* te::qt::widgets::AnimationScene::m_display |
Indicates where the scene is displayed.
Definition at line 112 of file AnimationScene.h.
QMutex te::qt::widgets::AnimationScene::m_mutex |
To not use the scene pixmap simultaneously.
Definition at line 114 of file AnimationScene.h.
Referenced by te::qt::widgets::TrajectoryItem::draw(), te::qt::widgets::TrajectoryItem::drawForward(), and te::qt::widgets::TrajectoryItem::erase().
int te::qt::widgets::AnimationScene::m_numberOfCoverages |
Number of coverage items.
Definition at line 116 of file AnimationScene.h.
int te::qt::widgets::AnimationScene::m_numberOfTrajectories |
Number of trajectory items.
Definition at line 115 of file AnimationScene.h.
QPixmap* te::qt::widgets::AnimationScene::m_trajectoryPixmap |
QPixmap where all the trajectory item are drawn.
Definition at line 113 of file AnimationScene.h.
Referenced by te::qt::widgets::TrajectoryItem::draw(), te::qt::widgets::TrajectoryItem::drawForward(), and te::qt::widgets::TrajectoryItem::erase().