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
35
namespace
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
*/
55
AnimationView
(
te::qt::widgets::MapDisplay
* md);
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
:
85
MapDisplay
*
m_display
;
86
87
public
:
88
bool
m_dragDropAccepted
;
89
bool
m_sameSRID
;
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
te::qt::widgets::AnimationView
This class is a animation view.
Definition:
AnimationView.h:46
te::qt::widgets::AnimationView::AnimationView
AnimationView(te::qt::widgets::MapDisplay *md)
Constructor It constructs a AnimationView.
te::qt::widgets::AnimationView::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *)
te::qt::widgets::AnimationView::m_dragDropAccepted
bool m_dragDropAccepted
Definition:
AnimationView.h:88
te::qt::widgets::AnimationView::paintEvent
void paintEvent(QPaintEvent *)
te::qt::widgets::AnimationView::dropEvent
void dropEvent(QDropEvent *)
te::qt::widgets::AnimationView::animationDropEvent
void animationDropEvent(QDropEvent *)
te::qt::widgets::AnimationView::keyReleaseEvent
void keyReleaseEvent(QKeyEvent *)
te::qt::widgets::AnimationView::~AnimationView
virtual ~AnimationView()
Destructor It destructs a AnimationView.
te::qt::widgets::AnimationView::dragLeaveEvent
void dragLeaveEvent(QDragLeaveEvent *)
te::qt::widgets::AnimationView::mousePressEvent
void mousePressEvent(QMouseEvent *)
te::qt::widgets::AnimationView::leaveEvent
void leaveEvent(QEvent *)
te::qt::widgets::AnimationView::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *)
te::qt::widgets::AnimationView::setMatrix
void setMatrix()
te::qt::widgets::AnimationView::enterEvent
void enterEvent(QEvent *)
te::qt::widgets::AnimationView::animationDragEnterEvent
void animationDragEnterEvent(QDragEnterEvent *)
te::qt::widgets::AnimationView::m_sameSRID
bool m_sameSRID
Definition:
AnimationView.h:89
te::qt::widgets::AnimationView::keyPressEvent
void keyPressEvent(QKeyEvent *)
te::qt::widgets::AnimationView::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *)
te::qt::widgets::AnimationView::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *)
te::qt::widgets::AnimationView::m_display
MapDisplay * m_display
Definition:
AnimationView.h:85
te::qt::widgets::AnimationView::resizeEvent
void resizeEvent(QResizeEvent *)
te::qt::widgets::AnimationView::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *)
te::qt::widgets::MapDisplay
A widget to control the display of a set of layers.
Definition:
MapDisplay.h:72
te
TerraLib.
Definition:
AddressGeocodingOp.h:52
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition:
Config.h:63
git_release
src
terralib
qt
widgets
st
AnimationView.h
Generated on Mon Jun 5 2023 10:44:31 for TerraLib by
1.9.1