26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
30 #include "../Config.h"
31 #include "../../../geometry.h"
32 #include "../../../datatype.h"
33 #include "../InterfaceController.h"
37 #include <QAbstractAnimation>
44 namespace Ui {
class TimeSliderWidgetForm; }
47 class QParallelAnimationGroup;
64 class TrajectoryDataSet;
65 class TrajectoryDataSetLayer;
123 void addTemporalImages(
const QString& filePath);
140 QString getTemporalImageType(
const QString& path);
154 void calculateAllSpatialExtent();
159 void calculateAllTemporalExtent();
164 void changeDirection();
170 void setGoAndBack(
bool t);
176 void setDirection(
const QAbstractAnimation::Direction& direction);
182 void setDuration(
const unsigned int& duration);
187 void createNewPixmap();
232 bool eventFilter(QObject*, QEvent*);
237 void updateTimeTextEdit();
242 void updateSliderPos();
252 void createAnimations();
275 void erase(
const unsigned int& curTime);
282 void setErasePerfectly(
bool b);
291 QDateTime fixDateTimeEdit(QDateTimeEdit* dte,
const QDateTime& t);
293 void loadAnimation(
const QString& title);
295 void removeAnimation(
const int& ind);
300 bool trajectoryAlreadyExists(QPair<QString, QString>& item);
301 bool coverageAlreadyExists(QPair<QString, QString>& item);
313 void showPropertySection(
bool b);
320 bool isSettingChanged();
333 void onDisplayPaintEvent(QPainter* p);
339 void onAnimationDragEnterEvent(QDragEnterEvent* e);
341 void onAnimationDropEvent(QDropEvent*);
345 void onSettingsToolButtonnClicked();
350 void onPlayToolButtonnClicked();
355 void onStopToolButtonnClicked();
361 void onSliderMoved(
int value);
366 void onExtentChanged();
371 void onSridChanged();
376 void onFinishAnimation();
382 void onDurationValueChanged(
int v);
388 void onOpacityValueChanged(
int v);
394 void onDateTimeEditChanged(
const QDateTime& t);
396 void onAutoPanCheckBoxClicked(
bool);
397 void onPanFactorValueChanged(
double);
398 void onFrontPushButtonClicked(
bool b);
399 void onBackPushButtonClicked(
bool b);
404 void onHelpPushButtonClicked();
411 void onDrawTrailCheckBoxClicked(
bool b);
418 void onForwardRadioButtonClicked(
bool b);
425 void onBackwardRadioButtonClicked(
bool b);
432 void onLoopCheckBoxClicked(
bool b);
439 void onGoAndBackCheckBoxClicked(
bool b);
446 void onApplyTimeIntervalPushButtonClicked(
bool b);
453 void onAnimationComboBoxActivated(
int i);
458 void onRemovePushButtonClicked(
bool);
463 void onRemoveAllPushButtonClicked(
bool);
468 void onResetInitialTimePushButtonClicked();
473 void onResetFinalTimePushButtonClicked();
475 void onTrajectoryPixmapSizeChanged(
int);
477 void onIconRotateCheckBoxClicked(
bool);
486 void deleteTimeSliderWidget();
515 std::auto_ptr<Ui::TimeSliderWidgetForm>
m_ui;
536 #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