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 | calculateSpatialExtent () |
It calculates the spatial extent. More... | |
void | calculateTemporalExtent () |
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::qt::widgets::PixmapItem * | getEtaCtlParameters (const QString &path) |
te::qt::widgets::PixmapItem * | getEtaMetadata (const QString &path) |
te::dt::TimeInstant | getEtaTime (const QString &file) |
te::dt::TimeInstant | getFinalTime () |
It gets the final time. More... | |
te::qt::widgets::PixmapItem * | getGoesMetadata (const QString &path) |
te::dt::TimeInstant | getGoesTime (const QString &file) |
te::qt::widgets::PixmapItem * | getHidroCtlParameters (const QString &path) |
te::qt::widgets::PixmapItem * | getHidroMetadata (const QString &path) |
te::dt::TimeInstant | getHidroTime (const QString &file) |
te::dt::TimeInstant | getInitialTime () |
It gets the initial time. More... | |
te::qt::widgets::PixmapItem * | getMetadata (const QString &path) |
te::qt::widgets::PixmapItem * | getTemporalImageCtlParameters (const QString &path) |
te::qt::widgets::PixmapItem * | getTemporalImageMetadata (const QString &path) |
te::dt::TimeInstant | getTemporalImageTime (const QString &file) |
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... | |
void | putToBack (AnimationItem *item) |
It puts graphic item to back. More... | |
void | putToFront (AnimationItem *item) |
It puts graphic item to front. More... | |
void | setAutomaticPan (const QString &title) |
It configures automatic pan over a animation path. It toggles auto pan state. More... | |
void | setDirection (const QAbstractAnimation::Direction &direction) |
Sets the animation direction. More... | |
void | setDuration (const unsigned int &duration) |
Sets the animation duration. More... | |
void | setEtaLUT (te::qt::widgets::PixmapItem *pi) |
void | setGoAndBack (bool t) |
Sets the mode of animation. More... | |
void | setHidroLUT (te::qt::widgets::PixmapItem *pi) |
TimeSliderWidget (MapDisplay *d, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructor. More... | |
~TimeSliderWidget () | |
Destructor. More... | |
Protected Slots | |
void | dropAction () |
void | onAnimationComboBoxActivated (int i) |
Trajectory color 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) |
Apply animation items push button clicked. It Sets the visibility of animations. More... | |
void | onFrontPushButtonClicked (bool b) |
void | onGoAndBackCheckBoxClicked (bool b) |
Forward and then backward check box clicked. More... | |
void | onHeightValueChanged (int) |
void | onHelpPushButtonClicked () |
Help button clicked. More... | |
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 | onWidthValueChanged (int) |
Protected Member Functions | |
void | adjustTrajectoryGroupBox (te::qt::widgets::AnimationItem *) |
Remove animation item from the opacity combo box and trajectory color combo box. More... | |
bool | coverageAlreadyExists (QPair< QString, QString > &item) |
void | createAnimations () |
Create animations. More... | |
void | drawPixmapItem (PixmapItem *pi, const QRectF &dwrect, QPainter *painter) |
Draw the pixmap item. More... | |
void | drawTrajectoryIcon (const TrajectoryItem *t, const QPoint &pos, QPainter *painter) |
Draw the trajectory icon. 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) |
QImage * | getImage (te::qt::widgets::PixmapItem *pi) |
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 QString &title) |
void | removeOnPropertieCombo (const QString &title) |
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, te::st::TrajectoryDataSetLayer * > &item) |
void | updateSliderPos () |
Updates the position of the slider with respect to time animation. More... | |
void | updateTimeTextEdit () |
Update animation time. More... | |
Private Attributes | |
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 |
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 |
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... | |
QParallelAnimationGroup * | m_parallelAnimation |
The parallel animation. More... | |
bool | m_paused |
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
Definition at line 67 of file TimeSliderWidget.cpp.
References te::map::MapDisplay::getExtent(), te::map::MapDisplay::getSRID(), te::gm::Envelope::isValid(), m_animationScene, m_animationView, m_direction, m_display, m_duration, m_loop, m_maxSliderValue, m_parallelAnimation, m_spd, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::SliderPropertiesDialog::m_ui, m_ui, onAnimationDragEnterEvent(), onAnimationDropEvent(), onDateTimeEditChanged(), onDisplayPaintEvent(), onDurationValueChanged(), onExtentChanged(), onFinishAnimation(), onPlayToolButtonnClicked(), onSettingsToolButtonnClicked(), onSliderMoved(), onSridChanged(), onStopToolButtonnClicked(), te::qt::widgets::MapDisplay::setExtent(), setGoAndBack(), te::qt::widgets::MapDisplay::setSRID(), and SliderPropertiesDialog.
te::qt::widgets::TimeSliderWidget::~TimeSliderWidget | ( | ) |
void te::qt::widgets::TimeSliderWidget::addTemporalImages | ( | const QString & | filePath | ) |
Definition at line 796 of file TimeSliderWidget.cpp.
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. |
Definition at line 694 of file TimeSliderWidget.cpp.
References te::dt::AbstractData::clone(), te::st::TrajectoryDataSet::getGeometry(), te::map::AbstractLayer::getSRID(), te::st::TrajectoryDataSet::getTemporalExtent(), te::st::TrajectoryDataSet::getTime(), te::dt::TimeInstant::getTimeInstant(), te::map::AbstractLayer::getTitle(), te::st::TrajectoryDataSetLayer::getTrajectoryDataset(), te::gm::LineStringType, te::qt::widgets::AnimationItem::m_route, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::Animation::m_temporalExtent, te::qt::widgets::AnimationItem::m_time, te::st::TrajectoryDataSet::moveNext(), te::gm::LineString::setPointN(), and te::st::TrajectoryDataSet::size().
|
protected |
Remove animation item from the opacity combo box and trajectory color combo box.
ai | The item to be removed. |
Definition at line 2820 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_automaticPan, te::qt::widgets::TrajectoryItem::m_backwardColor, te::qt::widgets::TrajectoryItem::m_drawTrail, te::qt::widgets::TrajectoryItem::m_forwardColor, and te::qt::widgets::AnimationItem::m_panFactor.
void te::qt::widgets::TimeSliderWidget::calculateSpatialExtent | ( | ) |
It calculates the spatial extent.
Definition at line 989 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_animation, te::qt::widgets::Animation::m_spatialExtent, te::qt::widgets::AnimationItem::m_SRID, TE_UNKNOWN_SRS, and te::gm::Envelope::transform().
void te::qt::widgets::TimeSliderWidget::calculateTemporalExtent | ( | ) |
It calculates the temporal extent.
Definition at line 1020 of file TimeSliderWidget.cpp.
References te::dt::TimePeriod::getFinalTimeInstant(), te::dt::TimePeriod::getInitialTimeInstant(), te::qt::widgets::AnimationItem::m_animation, te::qt::widgets::Animation::m_temporalAnimationExtent, and te::qt::widgets::Animation::m_temporalExtent.
void te::qt::widgets::TimeSliderWidget::changeDirection | ( | ) |
Change direction.
Definition at line 1866 of file TimeSliderWidget.cpp.
|
protected |
Definition at line 670 of file TimeSliderWidget.cpp.
|
protected |
Create animations.
Definition at line 1061 of file TimeSliderWidget.cpp.
References te::qt::widgets::Animation::createAnimationDataInDisplayProjection(), te::qt::widgets::AnimationItem::m_animation, te::qt::widgets::Animation::m_spatialExtent, te::qt::widgets::Animation::m_temporalAnimationExtent, te::qt::widgets::Animation::m_temporalExtent, and times().
void te::qt::widgets::TimeSliderWidget::createNewPixmap | ( | ) |
create new pixmap.
Definition at line 1237 of file TimeSliderWidget.cpp.
void te::qt::widgets::TimeSliderWidget::deleteMe | ( | ) |
It emits, indirectly, a sign for this widget is destroyed.
Definition at line 1958 of file TimeSliderWidget.cpp.
|
signal |
This sign warns that this widget must be destroyed.
void te::qt::widgets::TimeSliderWidget::draw | ( | ) |
Set transformation matrix and draw current animation.
Definition at line 1242 of file TimeSliderWidget.cpp.
|
protected |
Draw the pixmap item.
/param pi The pixmap item. /param dwrect The rect of map display in world coordinates. /param painter The painter.
Definition at line 2281 of file TimeSliderWidget.cpp.
References getImage(), te::qt::widgets::PixmapItem::m_currentImageFile, te::qt::widgets::PixmapItem::m_imaRect, te::qt::widgets::AnimationItem::m_matrix, and te::qt::widgets::AnimationItem::m_opacity.
|
protected |
Draw the trajectory icon.
/param t The trajectory item. /param pos The top left position in device coordinates. /param painter The painter.
Definition at line 2337 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_opacity.
|
protectedslot |
Definition at line 554 of file TimeSliderWidget.cpp.
References te::qt::widgets::AbstractTreeItem::getLayer(), te::map::AbstractLayer::getTitle(), and te::qt::widgets::AnimationItem::m_animation.
|
protected |
It Erase trajectory piece.
Definition at line 2055 of file TimeSliderWidget.cpp.
|
protected |
it filters the events of interest.
Definition at line 1279 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), te::dt::Date::getYear(), te::qt::widgets::TrajectoryItem::m_backwardColor, te::qt::widgets::TrajectoryItem::m_forwardColor, te::qt::widgets::TrajectoryItem::m_iconFile, te::qt::widgets::TrajectoryItem::m_iconSize, and te::qt::widgets::AnimationItem::m_title.
|
protected |
It corrects the edited date time.
/param dte DateTimeEdit to be fixed. /param t The edite date time.
Definition at line 2233 of file TimeSliderWidget.cpp.
|
protected |
It it gets the animation time on a time instant. /param tinstant The time instant.
Definition at line 1097 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getTimeInstant().
|
protected |
Definition at line 2812 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getEtaCtlParameters | ( | const QString & | path | ) |
Definition at line 2997 of file TimeSliderWidget.cpp.
References te::qt::widgets::PixmapItem::m_imaRect, te::qt::widgets::PixmapItem::m_ncols, te::qt::widgets::PixmapItem::m_nlines, te::qt::widgets::AnimationItem::m_SRID, and te::qt::widgets::PixmapItem::m_undef.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getEtaMetadata | ( | const QString & | path | ) |
Definition at line 3327 of file TimeSliderWidget.cpp.
References te::gm::Envelope::getHeight(), te::dt::TimeInstant::getTimeInstant(), te::gm::Envelope::getWidth(), te::gm::LineStringType, te::qt::widgets::PixmapItem::m_files, te::qt::widgets::PixmapItem::m_imaRect, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::qt::widgets::AnimationItem::m_route, te::qt::widgets::Animation::m_spatialExtent, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::Animation::m_temporalExtent, te::qt::widgets::AnimationItem::m_time, and te::gm::LineString::setPoint().
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getEtaTime | ( | const QString & | file | ) |
Definition at line 3417 of file TimeSliderWidget.cpp.
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getFinalTime | ( | ) |
It gets the final time.
Definition at line 2553 of file TimeSliderWidget.cpp.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getGoesMetadata | ( | const QString & | path | ) |
Definition at line 936 of file TimeSliderWidget.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::gm::LineStringType, te::qt::widgets::PixmapItem::m_files, te::qt::widgets::PixmapItem::m_imaRect, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::qt::widgets::AnimationItem::m_route, te::qt::widgets::Animation::m_spatialExtent, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::PixmapItem::m_suffix, te::qt::widgets::Animation::m_temporalExtent, te::qt::widgets::AnimationItem::m_time, and te::gm::LineString::setPoint().
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getGoesTime | ( | const QString & | file | ) |
Definition at line 2864 of file TimeSliderWidget.cpp.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getHidroCtlParameters | ( | const QString & | path | ) |
Definition at line 2893 of file TimeSliderWidget.cpp.
References te::qt::widgets::PixmapItem::m_imaRect, te::qt::widgets::PixmapItem::m_ncols, te::qt::widgets::PixmapItem::m_nlines, te::qt::widgets::AnimationItem::m_SRID, and te::qt::widgets::PixmapItem::m_undef.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getHidroMetadata | ( | const QString & | path | ) |
Definition at line 3272 of file TimeSliderWidget.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::gm::LineStringType, te::qt::widgets::PixmapItem::m_files, te::qt::widgets::PixmapItem::m_imaRect, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::qt::widgets::AnimationItem::m_route, te::qt::widgets::Animation::m_spatialExtent, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::Animation::m_temporalExtent, te::qt::widgets::AnimationItem::m_time, and te::gm::LineString::setPoint().
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getHidroTime | ( | const QString & | file | ) |
Definition at line 3401 of file TimeSliderWidget.cpp.
|
protected |
Definition at line 3154 of file TimeSliderWidget.cpp.
References te::qt::widgets::PixmapItem::m_currentImageFile, te::qt::widgets::PixmapItem::m_dir, te::qt::widgets::PixmapItem::m_lut, te::qt::widgets::PixmapItem::m_ncols, te::qt::widgets::PixmapItem::m_nlines, te::qt::widgets::PixmapItem::m_suffix, and te::qt::widgets::PixmapItem::m_undef.
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getInitialTime | ( | ) |
It gets the initial time.
Definition at line 2544 of file TimeSliderWidget.cpp.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getMetadata | ( | const QString & | path | ) |
Definition at line 3244 of file TimeSliderWidget.cpp.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getTemporalImageCtlParameters | ( | const QString & | path | ) |
Definition at line 3484 of file TimeSliderWidget.cpp.
References te::qt::widgets::PixmapItem::m_imaRect, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::PixmapItem::m_suffix, and te::qt::widgets::PixmapItem::m_undef.
te::qt::widgets::PixmapItem * te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata | ( | const QString & | path | ) |
Definition at line 3432 of file TimeSliderWidget.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::gm::LineStringType, te::qt::widgets::PixmapItem::m_files, te::qt::widgets::PixmapItem::m_imaRect, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::qt::widgets::AnimationItem::m_route, te::qt::widgets::Animation::m_spatialExtent, te::qt::widgets::AnimationItem::m_SRID, te::qt::widgets::PixmapItem::m_suffix, te::qt::widgets::Animation::m_temporalExtent, te::qt::widgets::AnimationItem::m_time, and te::gm::LineString::setPoint().
te::dt::TimeInstant te::qt::widgets::TimeSliderWidget::getTemporalImageTime | ( | const QString & | file | ) |
Definition at line 3567 of file TimeSliderWidget.cpp.
|
protected |
It it gets the animation time instant.
Definition at line 1115 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getTimeInstant().
|
protected |
It initialize a property animation dialog.
Definition at line 2518 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
|
protected |
Is Setting Changed.
Definition at line 2601 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
|
virtual |
This method is used to add a new layer.
Implements te::qt::widgets::InterfaceController.
Definition at line 227 of file TimeSliderWidget.cpp.
References te::map::AbstractLayer::getTitle().
|
virtual |
This method is used to remove a layer.
Implements te::qt::widgets::InterfaceController.
Definition at line 243 of file TimeSliderWidget.cpp.
|
virtual |
This method is used to set current layer.
Implements te::qt::widgets::InterfaceController.
Definition at line 222 of file TimeSliderWidget.cpp.
|
protected |
|
protectedslot |
Trajectory color combo box activated.
i | The index of combo box. |
Opacity combo box activated.
i | The index of combo box. |
Definition at line 2784 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_opacity, te::qt::widgets::AnimationItem::m_time, and te::qt::widgets::AnimationItem::m_title.
|
protectedslot |
Drag enter event on display.
e | The drag enter event. |
Definition at line 477 of file TimeSliderWidget.cpp.
References te::qt::widgets::AbstractTreeItem::getLayer(), and te::qt::widgets::AnimationView::m_dragDropAccepted.
Referenced by TimeSliderWidget().
|
protectedslot |
Definition at line 545 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
Apply time interval push button clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 2672 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), te::dt::TimeInstant::getTimeInstant(), and te::dt::Date::getYear().
|
protectedslot |
Definition at line 2887 of file TimeSliderWidget.cpp.
|
protectedslot |
Definition at line 2036 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_title.
|
protectedslot |
Backward radio button clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 2642 of file TimeSliderWidget.cpp.
|
protectedslot |
It takes the necessary steps after changing the current time of animation.
t | The new current time. |
Definition at line 2180 of file TimeSliderWidget.cpp.
References te::dt::TimePeriod::getTimePeriod().
Referenced by TimeSliderWidget().
|
protectedslot |
it draw on display.
p | Pointer to QPainter. |
Definition at line 1133 of file TimeSliderWidget.cpp.
References te::gm::Envelope::getHeight(), te::qt::widgets::AnimationItem::getPosInDeviceCoordinate(), te::gm::Envelope::getWidth(), te::qt::widgets::AnimationItem::m_animationTime, te::gm::Envelope::m_llx, and te::gm::Envelope::m_lly.
Referenced by TimeSliderWidget().
|
protectedslot |
Draw track check box clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 264 of file TimeSliderWidget.cpp.
References te::qt::widgets::TrajectoryItem::m_drawTrail, and te::qt::widgets::AnimationItem::m_title.
|
protectedslot |
It takes the necessary steps after changing the duration.
v | Value of duration in miliseconds. |
Definition at line 2077 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
It takes the necessary measures after the change of extent.
Definition at line 1752 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
It takes the necessary measures after the end of the trajectory.
Definition at line 1876 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
Apply animation items push button clicked. It Sets the visibility of animations.
b | True if the button is checked, or false if the button is unchecked |
Forward radio button clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 2631 of file TimeSliderWidget.cpp.
|
protectedslot |
Definition at line 2017 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_title.
|
protectedslot |
Forward and then backward check box clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 2658 of file TimeSliderWidget.cpp.
|
protectedslot |
Definition at line 2464 of file TimeSliderWidget.cpp.
References te::qt::widgets::TrajectoryItem::m_iconFile, te::qt::widgets::TrajectoryItem::m_iconSize, and te::qt::widgets::AnimationItem::m_title.
|
protectedslot |
Help button clicked.
Definition at line 3584 of file TimeSliderWidget.cpp.
|
protectedslot |
Loop check box clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 2653 of file TimeSliderWidget.cpp.
|
protectedslot |
It takes the necessary steps after changing the duration.
v | Value of opacity (0 - 255). |
Definition at line 2387 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_opacity, and te::qt::widgets::AnimationItem::m_title.
|
protectedslot |
Definition at line 1268 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_panFactor.
|
protectedslot |
Play or pause the animation.
Definition at line 1666 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
Remove all animations.
Definition at line 372 of file TimeSliderWidget.cpp.
|
protectedslot |
Remove item animation.
Definition at line 362 of file TimeSliderWidget.cpp.
|
protectedslot |
Reset final time button clicked.
Definition at line 2571 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
|
protectedslot |
Reset initial time button clicked.
Definition at line 2562 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
|
protectedslot |
it opens the configuration window animation.
Definition at line 1658 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
It takes the necessary measures after slider move.
e | The slider value. |
Definition at line 1810 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
Referenced by TimeSliderWidget().
|
protectedslot |
It takes the necessary measures after the change of extent.
Definition at line 1771 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
Stop animation.
Definition at line 1716 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
|
protectedslot |
Definition at line 2408 of file TimeSliderWidget.cpp.
References te::qt::widgets::TrajectoryItem::m_iconFile, te::qt::widgets::TrajectoryItem::m_iconSize, and te::qt::widgets::AnimationItem::m_title.
|
protected |
Play animation.
Definition at line 1793 of file TimeSliderWidget.cpp.
void te::qt::widgets::TimeSliderWidget::putToBack | ( | AnimationItem * | item | ) |
It puts graphic item to back.
item | The graphic item. |
Definition at line 1990 of file TimeSliderWidget.cpp.
void te::qt::widgets::TimeSliderWidget::putToFront | ( | AnimationItem * | item | ) |
It puts graphic item to front.
item | The graphic item. |
Definition at line 1963 of file TimeSliderWidget.cpp.
|
protected |
Definition at line 384 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::m_animation, and te::qt::widgets::AnimationItem::m_title.
|
protected |
Definition at line 458 of file TimeSliderWidget.cpp.
void te::qt::widgets::TimeSliderWidget::setAutomaticPan | ( | const QString & | title | ) |
It configures automatic pan over a animation path. It toggles auto pan state.
title | The animation title. |
Definition at line 1249 of file TimeSliderWidget.cpp.
void te::qt::widgets::TimeSliderWidget::setDirection | ( | const QAbstractAnimation::Direction & | direction | ) |
Sets the animation direction.
direction | The animation direction. |
Definition at line 1217 of file TimeSliderWidget.cpp.
References te::qt::widgets::AnimationItem::setDirection(), and te::qt::widgets::AnimationItem::setDuration().
void te::qt::widgets::TimeSliderWidget::setDuration | ( | const unsigned int & | duration | ) |
Sets the animation duration.
duration | The animation duration in miliseconds. |
Definition at line 1232 of file TimeSliderWidget.cpp.
|
protected |
True to erase trajectory piece perfectly. Note: Perfectly clear implies loss of performance.
void te::qt::widgets::TimeSliderWidget::setEtaLUT | ( | te::qt::widgets::PixmapItem * | pi | ) |
Definition at line 3075 of file TimeSliderWidget.cpp.
References te::qt::widgets::PixmapItem::setLUT().
void te::qt::widgets::TimeSliderWidget::setGoAndBack | ( | bool | t | ) |
Sets the mode of animation.
t | True if the animation goes back and forth |
Definition at line 1211 of file TimeSliderWidget.cpp.
Referenced by TimeSliderWidget().
void te::qt::widgets::TimeSliderWidget::setHidroLUT | ( | te::qt::widgets::PixmapItem * | pi | ) |
Definition at line 2971 of file TimeSliderWidget.cpp.
References te::qt::widgets::PixmapItem::setLUT().
|
protected |
Show Property.
b | true = show, false = hide |
Definition at line 2580 of file TimeSliderWidget.cpp.
|
protected |
Definition at line 646 of file TimeSliderWidget.cpp.
|
protected |
Updates the position of the slider with respect to time animation.
Definition at line 1936 of file TimeSliderWidget.cpp.
|
protected |
Update animation time.
Definition at line 1946 of file TimeSliderWidget.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
|
friend |
Definition at line 88 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
The animation scene.
Definition at line 564 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
The animation graphics view.
Definition at line 563 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
Flag to indicate that the trend is coming back.
Definition at line 561 of file TimeSliderWidget.h.
|
private |
List of all animation items (title, path).
Definition at line 580 of file TimeSliderWidget.h.
|
private |
Current animation time (relative to time duration).
Definition at line 569 of file TimeSliderWidget.h.
|
private |
Definition at line 575 of file TimeSliderWidget.h.
|
private |
QAbstractAnimation::Forward or QAbstractAnimation::Backward.
Definition at line 559 of file TimeSliderWidget.h.
Referenced by te::qt::widgets::SliderPropertiesDialog::populateUi(), and TimeSliderWidget().
|
private |
The map display.
Definition at line 562 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
Layer animation with drag and drop.
Definition at line 583 of file TimeSliderWidget.h.
|
private |
Control pressed to add animation with drag and drop.
Definition at line 581 of file TimeSliderWidget.h.
|
private |
Urls to animation with drag and drop.
Definition at line 582 of file TimeSliderWidget.h.
|
private |
The animation's duration time in miliseconds.
Definition at line 558 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
flag to erase trajectory piece perfectly (default = false).
Definition at line 570 of file TimeSliderWidget.h.
|
private |
Definition at line 577 of file TimeSliderWidget.h.
|
private |
Forward and then backward direction.
Definition at line 560 of file TimeSliderWidget.h.
Referenced by te::qt::widgets::SliderPropertiesDialog::populateUi().
|
private |
This property holds whether the slider's animation is on loop.
Definition at line 557 of file TimeSliderWidget.h.
Referenced by te::qt::widgets::SliderPropertiesDialog::populateUi(), and TimeSliderWidget().
|
private |
The max slider value.
Definition at line 576 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
The old final Qt date time.
Definition at line 574 of file TimeSliderWidget.h.
|
private |
The old initial Qt date time.
Definition at line 573 of file TimeSliderWidget.h.
|
private |
The old Qt date time.
Definition at line 572 of file TimeSliderWidget.h.
|
private |
The parallel animation.
Definition at line 565 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
Definition at line 578 of file TimeSliderWidget.h.
|
private |
Spatial extent.
Definition at line 566 of file TimeSliderWidget.h.
|
private |
Slider Properties Dialog.
Definition at line 584 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().
|
private |
Animation temporal extent. It is used for show animation.
Definition at line 568 of file TimeSliderWidget.h.
Referenced by te::qt::widgets::SliderPropertiesDialog::populateUi().
|
private |
Temporal extent.
Definition at line 567 of file TimeSliderWidget.h.
Referenced by te::qt::widgets::SliderPropertiesDialog::populateUi().
|
private |
List of all trajectory items (title, layer).
Definition at line 579 of file TimeSliderWidget.h.
|
private |
The widget form.
Definition at line 571 of file TimeSliderWidget.h.
Referenced by TimeSliderWidget().