A wdiget used to control the visualization of temporal data. More...
#include <TimeSliderWidget.h>
Signals | |
void | deleteTimeSliderWidget () |
This sign warns that this widget must be destroyed. More... | |
Public Member Functions | |
void | addTemporalImages (const QString &filePath) |
void | addTrajectory (te::st::TrajectoryDataSetLayer *tl, const QString &pixmapFile) |
Add trajectory to animation scene. More... | |
void | calculateAllSpatialExtent () |
It calculates the spatial extent. More... | |
void | calculateAllTemporalExtent () |
It calculates the temporal extent. More... | |
void | changeDirection () |
Change direction. More... | |
void | createNewPixmap () |
create new pixmap. More... | |
void | deleteMe () |
It emits, indirectly, a sign for this widget is destroyed. More... | |
void | draw () |
Set transformation matrix and draw current animation. More... | |
te::dt::TimeInstant | getFinalTime () |
It gets the final time. More... | |
te::dt::TimeInstant | getInitialTime () |
It gets the initial time. More... | |
QString | getTemporalImageType (const QString &path) |
This method is used to find out the type of temporal image has the folder. NOTE: It should be edited to enter with new types of temporal images. NOTE: You must find a way to discover its kind. More... | |
virtual void | layerAdded (te::map::AbstractLayerPtr layer) |
This method is used to add a new layer. More... | |
virtual void | layerRemoved (te::map::AbstractLayerPtr layer) |
This method is used to remove a layer. More... | |
virtual void | layerSelected (te::map::AbstractLayerPtr layer) |
This method is used to set current layer. More... | |
te::qt::widgets::ImageItem * | loadImageData (const QString &path) |
This method is used to load a temporal image data. NOTE: It should be edited to enter with new types of temporal images. More... | |
void | putToBack (AnimationItem *item) |
It puts graphic item to back. More... | |
void | putToFront (AnimationItem *item) |
It puts graphic item to front. More... | |
void | setDirection (const QAbstractAnimation::Direction &direction) |
Sets the animation direction. More... | |
void | setDuration (const unsigned int &duration) |
Sets the animation duration. More... | |
void | setGoAndBack (bool t) |
Sets the mode of animation. More... | |
void | showWidget (const bool &b) |
TimeSliderWidget (MapDisplay *d, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructor. More... | |
~TimeSliderWidget () | |
Destructor. More... | |
Protected Slots | |
void | dropAction () |
void | onAnimationComboBoxActivated (int i) |
Opacity combo box activated. More... | |
void | onAnimationDragEnterEvent (QDragEnterEvent *e) |
Drag enter event on display. More... | |
void | onAnimationDropEvent (QDropEvent *) |
void | onApplyTimeIntervalPushButtonClicked (bool b) |
Apply time interval push button clicked. More... | |
void | onAutoPanCheckBoxClicked (bool) |
void | onBackPushButtonClicked (bool b) |
void | onBackwardRadioButtonClicked (bool b) |
Backward radio button clicked. More... | |
void | onDateTimeEditChanged (const QDateTime &t) |
It takes the necessary steps after changing the current time of animation. More... | |
void | onDisplayPaintEvent (QPainter *p) |
it draw on display. More... | |
void | onDrawTrailCheckBoxClicked (bool b) |
Draw track check box clicked. More... | |
void | onDurationValueChanged (int v) |
It takes the necessary steps after changing the duration. More... | |
void | onExtentChanged () |
It takes the necessary measures after the change of extent. More... | |
void | onFinishAnimation () |
It takes the necessary measures after the end of the trajectory. More... | |
void | onForwardRadioButtonClicked (bool b) |
Forward radio button clicked. More... | |
void | onFrontPushButtonClicked (bool b) |
void | onGoAndBackCheckBoxClicked (bool b) |
Forward and then backward check box clicked. More... | |
void | onHelpPushButtonClicked () |
Help button clicked. More... | |
void | onIconRotateCheckBoxClicked (bool) |
void | onLoopCheckBoxClicked (bool b) |
Loop check box clicked. More... | |
void | onOpacityValueChanged (int v) |
It takes the necessary steps after changing the duration. More... | |
void | onPanFactorValueChanged (double) |
void | onPlayToolButtonnClicked () |
Play or pause the animation. More... | |
void | onRemoveAllPushButtonClicked (bool) |
Remove all animations. More... | |
void | onRemovePushButtonClicked (bool) |
Remove item animation. More... | |
void | onResetFinalTimePushButtonClicked () |
Reset final time button clicked. More... | |
void | onResetInitialTimePushButtonClicked () |
Reset initial time button clicked. More... | |
void | onSettingsToolButtonnClicked () |
it opens the configuration window animation. More... | |
void | onSliderMoved (int value) |
It takes the necessary measures after slider move. More... | |
void | onSridChanged () |
It takes the necessary measures after the change of extent. More... | |
void | onStopToolButtonnClicked () |
Stop animation. More... | |
void | onTrajectoryPixmapSizeChanged (int) |
Protected Member Functions | |
void | adjustPropertyDialog (te::qt::widgets::AnimationItem *) |
bool | coverageAlreadyExists (QPair< QString, QString > &item) |
void | createAnimations () |
Create animations. More... | |
void | erase (const unsigned int &curTime) |
It Erase trajectory piece. More... | |
bool | eventFilter (QObject *, QEvent *) |
it filters the events of interest. More... | |
QDateTime | fixDateTimeEdit (QDateTimeEdit *dte, const QDateTime &t) |
It corrects the edited date time. More... | |
int | getAnimationTime (const te::dt::TimeInstant &tinstant) |
It it gets the animation time on a time instant. /param tinstant The time instant. More... | |
QString | getDateString (const te::dt::TimeInstant &t) |
te::dt::TimeInstant | getTimeInstant () |
It it gets the animation time instant. More... | |
void | initProperty () |
It initialize a property animation dialog. More... | |
bool | isSettingChanged () |
Is Setting Changed. More... | |
void | loadAnimation (const QString &title) |
void | play () |
Play animation. More... | |
void | removeAnimation (const int &ind) |
void | setErasePerfectly (bool b) |
True to erase trajectory piece perfectly. Note: Perfectly clear implies loss of performance. More... | |
void | showPropertySection (bool b) |
Show Property. More... | |
bool | trajectoryAlreadyExists (QPair< QString, QString > &item) |
void | updateSliderPos () |
Updates the position of the slider with respect to time animation. More... | |
void | updateTimeTextEdit () |
Update animation time. More... | |
Private Attributes | |
QList< QString > | m_animationIdList |
List containing the shadow of m_ui->m_animationComboBox. More... | |
AnimationScene * | m_animationScene |
The animation scene. More... | |
QGraphicsView * | m_animationView |
The animation graphics view. More... | |
bool | m_comingBack |
Flag to indicate that the trend is coming back. More... | |
QList< QPair< QString, QString > > | m_coverageItemList |
List of all animation items (title, path). More... | |
int | m_currentTime |
Current animation time (relative to time duration). More... | |
bool | m_dateTimeChanged |
flag to signal change in animation time. More... | |
QAbstractAnimation::Direction | m_direction |
QAbstractAnimation::Forward or QAbstractAnimation::Backward. More... | |
MapDisplay * | m_display |
The map display. More... | |
QByteArray | m_dropBA |
Layer animation with drag and drop. More... | |
Qt::KeyboardModifiers | m_dropModifiers |
Control pressed to add animation with drag and drop. More... | |
QList< QUrl > | m_dropUrls |
Urls to animation with drag and drop. More... | |
int | m_duration |
The animation's duration time in miliseconds. More... | |
bool | m_erasePerfectly |
flag to erase trajectory piece perfectly (default = false). More... | |
bool | m_finished |
flag to signal animation finish. More... | |
bool | m_goAndBack |
Forward and then backward direction. More... | |
bool | m_loop |
This property holds whether the slider's animation is on loop. More... | |
int | m_maxSliderValue |
The max slider value. More... | |
QDateTime | m_oldFQDateTime |
The old final Qt date time. More... | |
QDateTime | m_oldIQDateTime |
The old initial Qt date time. More... | |
QDateTime | m_oldQDateTime |
The old Qt date time. More... | |
double | m_panFactor |
the range is between 0.002 and 0.5 More... | |
QParallelAnimationGroup * | m_parallelAnimation |
The parallel animation. More... | |
bool | m_paused |
flag to signal animation pause. More... | |
te::gm::Envelope | m_spatialExtent |
Spatial extent. More... | |
SliderPropertiesDialog * | m_spd |
Slider Properties Dialog. More... | |
te::dt::TimePeriod | m_temporalAnimationExtent |
Animation temporal extent. It is used for show animation. More... | |
te::dt::TimePeriod | m_temporalExtent |
Temporal extent. More... | |
QList< QPair< QString, te::st::TrajectoryDataSetLayer * > > | m_trajectoryItemList |
List of all trajectory items (title, layer). More... | |
std::auto_ptr< Ui::TimeSliderWidgetForm > | m_ui |
The widget form. More... | |
Friends | |
class | SliderPropertiesDialog |
A wdiget used to control the visualization of temporal data.
Definition at line 84 of file TimeSliderWidget.h.
te::qt::widgets::TimeSliderWidget::TimeSliderWidget | ( | MapDisplay * | d, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
It constructs a Time Slider Widget
te::qt::widgets::TimeSliderWidget::~TimeSliderWidget | ( | ) |
Destructor.
It destructs a Time Slider Widget
void te::qt::widgets::TimeSliderWidget::addTemporalImages | ( | const QString & | filePath | ) |
void te::qt::widgets::TimeSliderWidget::addTrajectory | ( | te::st::TrajectoryDataSetLayer * | tl, |
const QString & | pixmapFile | ||
) |
Add trajectory to animation scene.
title | The trajectory title. |
pixmapFile | The trajectory icon. |
poinstFile | The trajectory points. |
|
protected |
void te::qt::widgets::TimeSliderWidget::calculateAllSpatialExtent | ( | ) |
It calculates the spatial extent.
void te::qt::widgets::TimeSliderWidget::calculateAllTemporalExtent | ( | ) |
It calculates the temporal extent.
void te::qt::widgets::TimeSliderWidget::changeDirection | ( | ) |
Change direction.
|
protected |
|
protected |
Create animations.
void te::qt::widgets::TimeSliderWidget::createNewPixmap | ( | ) |
create new pixmap.
void te::qt::widgets::TimeSliderWidget::deleteMe | ( | ) |
It emits, indirectly, a sign for this widget is destroyed.
|
signal |
This sign warns that this widget must be destroyed.
void te::qt::widgets::TimeSliderWidget::draw | ( | ) |
Set transformation matrix and draw current animation.
|
protectedslot |
|
protected |
It Erase trajectory piece.
|
protected |
it filters the events of interest.
|
protected |
It corrects the edited date time.
/param dte DateTimeEdit to be fixed. /param t The edite date time.
|
protected |
It it gets the animation time on a time instant. /param tinstant The time instant.
|
protected |
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getFinalTime | ( | ) |
It gets the final time.
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getInitialTime | ( | ) |
It gets the initial time.
QString te::qt::widgets::TimeSliderWidget::getTemporalImageType | ( | const QString & | path | ) |
This method is used to find out the type of temporal image has the folder. NOTE: It should be edited to enter with new types of temporal images. NOTE: You must find a way to discover its kind.
path | The folder that has temporal images and the control file. |
|
protected |
It it gets the animation time instant.
|
protected |
It initialize a property animation dialog.
|
protected |
Is Setting Changed.
|
virtual |
This method is used to add a new layer.
Implements te::qt::widgets::InterfaceController.
|
virtual |
This method is used to remove a layer.
Implements te::qt::widgets::InterfaceController.
|
virtual |
This method is used to set current layer.
Implements te::qt::widgets::InterfaceController.
|
protected |
te::qt::widgets::ImageItem* te::qt::widgets::TimeSliderWidget::loadImageData | ( | const QString & | path | ) |
This method is used to load a temporal image data. NOTE: It should be edited to enter with new types of temporal images.
Param path The folder that has temporal images and the control file.
|
protectedslot |
Opacity combo box activated.
i | The index of combo box. |
|
protectedslot |
Drag enter event on display.
e | The drag enter event. |
|
protectedslot |
|
protectedslot |
Apply time interval push button clicked.
b | True if the button is checked, or false if the button is unchecked |
|
protectedslot |
|
protectedslot |
|
protectedslot |
Backward radio button clicked.
b | True if the button is checked, or false if the button is unchecked |
|
protectedslot |
It takes the necessary steps after changing the current time of animation.
t | The new current time. |
|
protectedslot |
it draw on display.
p | Pointer to QPainter. |
|
protectedslot |
Draw track check box clicked.
b | True if the button is checked, or false if the button is unchecked |
|
protectedslot |
It takes the necessary steps after changing the duration.
v | Value of duration in miliseconds. |
|
protectedslot |
It takes the necessary measures after the change of extent.
|
protectedslot |
It takes the necessary measures after the end of the trajectory.
|
protectedslot |
Forward radio button clicked.
b | True if the button is checked, or false if the button is unchecked |
|
protectedslot |
|
protectedslot |
Forward and then backward check box clicked.
b | True if the button is checked, or false if the button is unchecked |
|
protectedslot |
Help button clicked.
|
protectedslot |
|
protectedslot |
Loop check box clicked.
b | True if the button is checked, or false if the button is unchecked |
|
protectedslot |
It takes the necessary steps after changing the duration.
v | Value of opacity (0 - 255). |
|
protectedslot |
|
protectedslot |
Play or pause the animation.
|
protectedslot |
Remove all animations.
|
protectedslot |
Remove item animation.
|
protectedslot |
Reset final time button clicked.
|
protectedslot |
Reset initial time button clicked.
|
protectedslot |
it opens the configuration window animation.
|
protectedslot |
It takes the necessary measures after slider move.
e | The slider value. |
|
protectedslot |
It takes the necessary measures after the change of extent.
|
protectedslot |
Stop animation.
|
protectedslot |
|
protected |
Play animation.
void te::qt::widgets::TimeSliderWidget::putToBack | ( | AnimationItem * | item | ) |
It puts graphic item to back.
item | The graphic item. |
void te::qt::widgets::TimeSliderWidget::putToFront | ( | AnimationItem * | item | ) |
It puts graphic item to front.
item | The graphic item. |
|
protected |
void te::qt::widgets::TimeSliderWidget::setDirection | ( | const QAbstractAnimation::Direction & | direction | ) |
Sets the animation direction.
direction | The animation direction. |
void te::qt::widgets::TimeSliderWidget::setDuration | ( | const unsigned int & | duration | ) |
Sets the animation duration.
duration | The animation duration in miliseconds. |
|
protected |
True to erase trajectory piece perfectly. Note: Perfectly clear implies loss of performance.
void te::qt::widgets::TimeSliderWidget::setGoAndBack | ( | bool | t | ) |
Sets the mode of animation.
t | True if the animation goes back and forth |
|
protected |
Show Property.
b | true = show, false = hide |
void te::qt::widgets::TimeSliderWidget::showWidget | ( | const bool & | b | ) |
|
protected |
|
protected |
Updates the position of the slider with respect to time animation.
|
protected |
Update animation time.
|
friend |
Definition at line 88 of file TimeSliderWidget.h.
|
private |
List containing the shadow of m_ui->m_animationComboBox.
Definition at line 531 of file TimeSliderWidget.h.
|
private |
The animation scene.
Definition at line 510 of file TimeSliderWidget.h.
|
private |
The animation graphics view.
Definition at line 509 of file TimeSliderWidget.h.
|
private |
Flag to indicate that the trend is coming back.
Definition at line 507 of file TimeSliderWidget.h.
|
private |
List of all animation items (title, path).
Definition at line 526 of file TimeSliderWidget.h.
|
private |
Current animation time (relative to time duration).
Definition at line 515 of file TimeSliderWidget.h.
|
private |
flag to signal change in animation time.
Definition at line 521 of file TimeSliderWidget.h.
|
private |
QAbstractAnimation::Forward or QAbstractAnimation::Backward.
Definition at line 505 of file TimeSliderWidget.h.
|
private |
The map display.
Definition at line 508 of file TimeSliderWidget.h.
|
private |
Layer animation with drag and drop.
Definition at line 529 of file TimeSliderWidget.h.
|
private |
Control pressed to add animation with drag and drop.
Definition at line 527 of file TimeSliderWidget.h.
|
private |
Urls to animation with drag and drop.
Definition at line 528 of file TimeSliderWidget.h.
|
private |
The animation's duration time in miliseconds.
Definition at line 504 of file TimeSliderWidget.h.
|
private |
flag to erase trajectory piece perfectly (default = false).
Definition at line 516 of file TimeSliderWidget.h.
|
private |
flag to signal animation finish.
Definition at line 523 of file TimeSliderWidget.h.
|
private |
Forward and then backward direction.
Definition at line 506 of file TimeSliderWidget.h.
|
private |
This property holds whether the slider's animation is on loop.
Definition at line 503 of file TimeSliderWidget.h.
|
private |
The max slider value.
Definition at line 522 of file TimeSliderWidget.h.
|
private |
The old final Qt date time.
Definition at line 520 of file TimeSliderWidget.h.
|
private |
The old initial Qt date time.
Definition at line 519 of file TimeSliderWidget.h.
|
private |
The old Qt date time.
Definition at line 518 of file TimeSliderWidget.h.
|
private |
the range is between 0.002 and 0.5
Definition at line 532 of file TimeSliderWidget.h.
|
private |
The parallel animation.
Definition at line 511 of file TimeSliderWidget.h.
|
private |
flag to signal animation pause.
Definition at line 524 of file TimeSliderWidget.h.
|
private |
Spatial extent.
Definition at line 512 of file TimeSliderWidget.h.
|
private |
Slider Properties Dialog.
Definition at line 530 of file TimeSliderWidget.h.
|
private |
Animation temporal extent. It is used for show animation.
Definition at line 514 of file TimeSliderWidget.h.
|
private |
Temporal extent.
Definition at line 513 of file TimeSliderWidget.h.
|
private |
List of all trajectory items (title, layer).
Definition at line 525 of file TimeSliderWidget.h.
|
private |
The widget form.
Definition at line 517 of file TimeSliderWidget.h.