Loading...
Searching...
No Matches
AnimationView.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file terralib/qt/widgets/st/Animation.h
22
23 \brief This file defines a class for a Trajectory Animation.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SLIDER_INTERNAL_ANIMATION_VIEW_H
27#define __TERRALIB_QT_WIDGETS_SLIDER_INTERNAL_ANIMATION_VIEW_H
28
29// TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QGraphicsView>
34
35namespace te
36{
37 namespace qt
38 {
39 namespace widgets
40 {
41 class MapDisplay;
42 /*!
43 \brief This class is a animation view.
44 */
45 class TEQTWIDGETSEXPORT AnimationView : public QGraphicsView
46 {
47 Q_OBJECT
48
49 public:
50 /*!
51 \brief Constructor
52 It constructs a AnimationView.
53 \param md the map display where the animation is done.
54 */
56
57 /*!
58 \brief Destructor
59 It destructs a AnimationView.
60 */
61 virtual ~AnimationView();
62
63 void mousePressEvent(QMouseEvent*);
64 void mouseMoveEvent(QMouseEvent*);
65 void mouseReleaseEvent(QMouseEvent*);
66 void mouseDoubleClickEvent(QMouseEvent*);
67 void enterEvent(QEvent*);
68 void keyPressEvent(QKeyEvent*);
69 void keyReleaseEvent(QKeyEvent*);
70 void leaveEvent(QEvent*);
71 void resizeEvent(QResizeEvent*);
72
73 void dragEnterEvent(QDragEnterEvent*);
74 void dragLeaveEvent(QDragLeaveEvent*);
75 void dragMoveEvent(QDragMoveEvent*);
76 void dropEvent(QDropEvent*);
77 void paintEvent(QPaintEvent*);
78 void setMatrix();
79
80 signals:
81 void animationDragEnterEvent(QDragEnterEvent*);
82 void animationDropEvent(QDropEvent*);
83
84 private:
86
87 public:
90 };
91 } // end namespace widgets
92 } // end namespace qt
93} // end namespace te
94
95#endif // __TERRALIB_QT_WIDGETS_SLIDER_INTERNAL_ANIMATION_VIEW_H
96
This class is a animation view.
Definition: AnimationView.h:46
AnimationView(te::qt::widgets::MapDisplay *md)
Constructor It constructs a AnimationView.
void dragMoveEvent(QDragMoveEvent *)
void paintEvent(QPaintEvent *)
void dropEvent(QDropEvent *)
void animationDropEvent(QDropEvent *)
void keyReleaseEvent(QKeyEvent *)
virtual ~AnimationView()
Destructor It destructs a AnimationView.
void dragLeaveEvent(QDragLeaveEvent *)
void mousePressEvent(QMouseEvent *)
void mouseDoubleClickEvent(QMouseEvent *)
void animationDragEnterEvent(QDragEnterEvent *)
void keyPressEvent(QKeyEvent *)
void dragEnterEvent(QDragEnterEvent *)
void mouseMoveEvent(QMouseEvent *)
void resizeEvent(QResizeEvent *)
void mouseReleaseEvent(QMouseEvent *)
A widget to control the display of a set of layers.
Definition: MapDisplay.h:72
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63