Loading...
Searching...
No Matches
HotPointMimeData.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/process/qt/HotPointMimeData.h
22
23 \brief A Mime Data to represents a hot point from Graphic Item.
24*/
25
26#ifndef __TERRALIB_PROCESS_QT_INTERNAL_HOTPOINTMIMEDATA_H
27#define __TERRALIB_PROCESS_QT_INTERNAL_HOTPOINTMIMEDATA_H
28
29#include "../../Config.h"
30
31// Qt Includes
32#include <QMimeData>
33
34namespace te
35{
36 namespace process
37 {
38 namespace qt
39 {
40 class HotPointGraphicsItem;
41 class TaskGraphicsItem;
42
43 /*!
44 \class HotPointMimeData
45
46 \brief A Mime Data to represents a hot point from Graphic Item.
47
48 */
49 class TEPROCESSEXPORT HotPointMimeData : public QMimeData
50 {
51 public:
52
53 /*! \brief Default constructor. */
55
56 /*! \brief Virtual destructor. */
58
59 /*!
60 \brief Function used to get the hotpoint for this mime data
61
62 \return A valid pointer to a HotPointGraphicsItem object.
63 */
65
66 /*!
67 \brief Function used to get the task for this mime data
68
69 \return A valid pointer to a TaskGraphicsItem object.
70 */
72
73 protected:
74
75 HotPointGraphicsItem* m_hotPoint; //!< Pointer to hotpoint graphic item.
76
77 TaskGraphicsItem* m_task; //!< Pointer to task graphic item.
78 };
79 }
80 }
81}
82
83#endif // __TERRALIB_PROCESS_QT_INTERNAL_HOTPOINTMIMEDATA_H
A GraphicItem to represents Task parameters as hot point.
A Mime Data to represents a hot point from Graphic Item.
~HotPointMimeData()
Virtual destructor.
TaskGraphicsItem * m_task
Pointer to task graphic item.
HotPointGraphicsItem * m_hotPoint
Pointer to hotpoint graphic item.
HotPointGraphicsItem * getHotPoint() const
Function used to get the hotpoint for this mime data.
HotPointMimeData(TaskGraphicsItem *task, HotPointGraphicsItem *hotPoint)
Default constructor.
TaskGraphicsItem * getTask() const
Function used to get the task for this mime data.
A GraphicItem to represents a Task Process Builder item.
TerraLib.
#define TEPROCESSEXPORT
Definition: Config.h:47