Loading...
Searching...
No Matches
DefaultTaskPropertyHandler.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/DefaultTaskPropertyHandler.h
22
23 \brief A default handler to list task properties into a property browser
24*/
25
26#ifndef __TERRALIB_PROCESS_QT_INTERNAL_DEFAULTTASKPROPERTYHANDLER_H
27#define __TERRALIB_PROCESS_QT_INTERNAL_DEFAULTTASKPROPERTYHANDLER_H
28
29#include "../../Config.h"
30
31#include "TaskPropertyHandler.h"
32
33namespace te
34{
35 namespace dt
36 {
37 class AbstractData;
38 }
39
40 namespace process
41 {
42 class TaskSharedPtr;
43
44 namespace qt
45 {
46 class ProcessManager;
47
48 /*!
49 \class DefaultTaskPropertyHandler
50
51 \brief A default handler to list task properties into a property browser
52
53 */
55 {
56 Q_OBJECT
57
58 public:
59
60 /*! \brief Default constructor. */
62
63 /*! \brief Virtual destructor. */
65
66 protected:
67
68 /*! \brief Function used to create the right property type given a param descriptor.
69
70 \param paramDesc Param descriptor used to create the property
71
72 \return QtProperty object.
73
74 */
75 virtual QtProperty* createProperty(te::process::TaskSharedPtr task, te::process::ParameterDescriptor& paramDesc) override;
76
77 /*! \brief Function used to set into qt property a terralib data.
78
79 \param data TerraLib object data
80 \param property Qt property object
81 \param dataType TerraLib object data type
82
83 */
84 virtual void setPropertyData(const te::dt::AbstractData* data, QtProperty* property, int dataType) override;
85
86 };
87
88 /*!
89 \class TaskPropertyHandlerFactory
90
91 \brief Abstract factory used to create Tasks property handlers.
92 */
94 {
95 public:
96
97 /*!
98 \brief Constructor.
99
100 \param factoryKey The key that identifies the factory.
101 */
103
104 //!< Destructor
106
107 protected:
108
110
111 };
112 }
113 }
114}
115
116#endif // __TERRALIB_PROCESS_QT_INTERNAL_DEFAULTTASKPROPERTYHANDLER_H
A base class for values that can be retrieved from the data access module.
Definition: AbstractData.h:56
TaskPropertyHandler * build() override
Concrete factories (derived from this one) must implement this method in order to create objects.
A default handler to list task properties into a property browser.
virtual QtProperty * createProperty(te::process::TaskSharedPtr task, te::process::ParameterDescriptor &paramDesc) override
Function used to create the right property type given a param descriptor.
virtual void setPropertyData(const te::dt::AbstractData *data, QtProperty *property, int dataType) override
Function used to set into qt property a terralib data.
DefaultTaskPropertyHandler()
Default constructor.
virtual ~DefaultTaskPropertyHandler()
Virtual destructor.
Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory s...
A handler to list task properties into a property browser.
TerraLib.
#define TEPROCESSEXPORT
Definition: Config.h:47