26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
30 #include "../Config.h"
32 #include "../../../geometry.h"
33 #include "../../../datatype.h"
34 #include "../InterfaceController.h"
40 #include <QAbstractAnimation>
47 namespace Ui {
class TimeSliderWidgetForm; }
50 class QParallelAnimationGroup;
67 class TrajectoryDataSet;
68 class TrajectoryDataSetLayer;
126 void addTemporalImages(
const QString& filePath);
143 QString getTemporalImageType(
const QString& path);
157 void calculateAllSpatialExtent();
162 void calculateAllTemporalExtent();
167 void changeDirection();
173 void setGoAndBack(
bool t);
179 void setDirection(
const QAbstractAnimation::Direction& direction);
185 void setDuration(
const unsigned int& duration);
190 void createNewPixmap();
230 void showWidget(
const bool& b);
237 bool eventFilter(QObject*, QEvent*);
242 void updateTimeTextEdit();
247 void updateSliderPos();
257 void createAnimations();
280 void erase(
const unsigned int& curTime);
287 void setErasePerfectly(
bool b);
296 QDateTime fixDateTimeEdit(QDateTimeEdit* dte,
const QDateTime& t);
298 void loadAnimation(
const QString& title);
300 void removeAnimation(
const int& ind);
305 bool trajectoryAlreadyExists(QPair<QString, QString>& item);
306 bool coverageAlreadyExists(QPair<QString, QString>& item);
318 void showPropertySection(
bool b);
325 bool isSettingChanged();
338 void onDisplayPaintEvent(QPainter* p);
344 void onAnimationDragEnterEvent(QDragEnterEvent* e);
346 void onAnimationDropEvent(QDropEvent*);
350 void onSettingsToolButtonnClicked();
355 void onPlayToolButtonnClicked();
360 void onStopToolButtonnClicked();
366 void onSliderMoved(
int value);
371 void onExtentChanged();
376 void onSridChanged();
381 void onFinishAnimation();
387 void onDurationValueChanged(
int v);
393 void onOpacityValueChanged(
int v);
399 void onDateTimeEditChanged(
const QDateTime& t);
401 void onAutoPanCheckBoxClicked(
bool);
402 void onPanFactorValueChanged(
double);
403 void onFrontPushButtonClicked(
bool b);
404 void onBackPushButtonClicked(
bool b);
409 void onHelpPushButtonClicked();
416 void onDrawTrailCheckBoxClicked(
bool b);
423 void onForwardRadioButtonClicked(
bool b);
430 void onBackwardRadioButtonClicked(
bool b);
437 void onLoopCheckBoxClicked(
bool b);
444 void onGoAndBackCheckBoxClicked(
bool b);
451 void onApplyTimeIntervalPushButtonClicked(
bool b);
458 void onAnimationComboBoxActivated(
int i);
463 void onRemovePushButtonClicked(
bool);
468 void onRemoveAllPushButtonClicked(
bool);
473 void onResetInitialTimePushButtonClicked();
478 void onResetFinalTimePushButtonClicked();
480 void onTrajectoryPixmapSizeChanged(
int);
482 void onIconRotateCheckBoxClicked(
bool);
491 void deleteTimeSliderWidget();
520 std::auto_ptr<Ui::TimeSliderWidgetForm>
m_ui;
541 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
A class to represent time instant.
An Envelope defines a 2D rectangular region.
A class to represent time period.
A layer with reference to a dataset that contains trajectories.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr