Loading...
Searching...
No Matches
ProcessGraphicsView.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/ProcessGraphicsView.h
22
23 \brief A QGraphicsVIew to display a Process Builder items.
24*/
25
26#ifndef __TERRALIB_PROCESS_QT_INTERNAL_PROCESSGRAPHICSVIEW_H
27#define __TERRALIB_PROCESS_QT_INTERNAL_PROCESSGRAPHICSVIEW_H
28
29#include "../../Config.h"
30
31// Qt Includes
32#include <QGraphicsScene>
33#include <QGraphicsView>
34
35namespace te
36{
37 namespace process
38 {
39 namespace qt
40 {
41 /*!
42 \class ProcessGraphicsView
43
44 \brief A QGraphicsVIew to display a Process Builder items.
45
46 */
47 class TEPROCESSEXPORT ProcessGraphicsView : public QGraphicsView
48 {
49 Q_OBJECT
50
51 public:
52
53 /*! \brief Default constructor. */
54 ProcessGraphicsView(QGraphicsScene* scene, QWidget* parent = nullptr);
55
56 /*! \brief Virtual destructor. */
58
59 protected:
60
61 /*! \brief Function used to controll the view scale. Used to apply zoom to graphics view. */
62 void wheelEvent(QWheelEvent *event) override;
63 };
64 }
65 }
66}
67
68#endif // __TERRALIB_PROCESS_QT_INTERNAL_PROCESSGRAPHICSVIEW_H
A QGraphicsVIew to display a Process Builder items.
void wheelEvent(QWheelEvent *event) override
Function used to controll the view scale. Used to apply zoom to graphics view.
ProcessGraphicsView(QGraphicsScene *scene, QWidget *parent=nullptr)
Default constructor.
~ProcessGraphicsView()
Virtual destructor.
TerraLib.
#define TEPROCESSEXPORT
Definition: Config.h:47