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();
227 void showWidget(
const bool& b);
234 bool eventFilter(QObject*, QEvent*);
239 void updateTimeTextEdit();
244 void updateSliderPos();
254 void createAnimations();
277 void erase(
const unsigned int& curTime);
284 void setErasePerfectly(
bool b);
293 QDateTime fixDateTimeEdit(QDateTimeEdit* dte,
const QDateTime& t);
295 void loadAnimation(
const QString& title);
297 void removeAnimation(
const int& ind);
302 bool trajectoryAlreadyExists(QPair<QString, QString>& item);
303 bool coverageAlreadyExists(QPair<QString, QString>& item);
315 void showPropertySection(
bool b);
322 bool isSettingChanged();
335 void onDisplayPaintEvent(QPainter* p);
341 void onAnimationDragEnterEvent(QDragEnterEvent* e);
343 void onAnimationDropEvent(QDropEvent*);
347 void onSettingsToolButtonnClicked();
352 void onPlayToolButtonnClicked();
357 void onStopToolButtonnClicked();
363 void onSliderMoved(
int value);
368 void onExtentChanged();
373 void onSridChanged();
378 void onFinishAnimation();
384 void onDurationValueChanged(
int v);
390 void onOpacityValueChanged(
int v);
396 void onDateTimeEditChanged(
const QDateTime& t);
398 void onAutoPanCheckBoxClicked(
bool);
399 void onPanFactorValueChanged(
double);
400 void onFrontPushButtonClicked(
bool b);
401 void onBackPushButtonClicked(
bool b);
406 void onHelpPushButtonClicked();
413 void onDrawTrailCheckBoxClicked(
bool b);
420 void onForwardRadioButtonClicked(
bool b);
427 void onBackwardRadioButtonClicked(
bool b);
434 void onLoopCheckBoxClicked(
bool b);
441 void onGoAndBackCheckBoxClicked(
bool b);
448 void onApplyTimeIntervalPushButtonClicked(
bool b);
455 void onAnimationComboBoxActivated(
int i);
460 void onRemovePushButtonClicked(
bool);
465 void onRemoveAllPushButtonClicked(
bool);
470 void onResetInitialTimePushButtonClicked();
475 void onResetFinalTimePushButtonClicked();
477 void onTrajectoryPixmapSizeChanged(
int);
479 void onIconRotateCheckBoxClicked(
bool);
488 void deleteTimeSliderWidget();
517 std::auto_ptr<Ui::TimeSliderWidgetForm>
m_ui;
538 #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