BasicFillWidgetFactory.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/se/BasicFillWidgetFactory.h
22
23
\brief A concrete factory that builds a fill widget used to configure a basic fill element.
24
*/
25
26
#ifndef __TERRALIB_QT_SE_INTERNAL_BASICFILLWIDGETFACTORY_H
27
#define __TERRALIB_QT_SE_INTERNAL_BASICFILLWIDGETFACTORY_H
28
29
// TerraLib
30
#include "../Config.h"
31
#include "
AbstractFillWidgetFactory.h
"
32
33
namespace
te
34
{
35
namespace
qt
36
{
37
namespace
widgets
38
{
39
/*!
40
\class BasicFillWidgetFactory
41
42
\brief A concrete factory that builds a fill widget used to configure a basic fill element.
43
44
\sa AbstractFillWidgetFactory
45
*/
46
class
TEQTWIDGETSEXPORT
BasicFillWidgetFactory
:
public
AbstractFillWidgetFactory
47
{
48
public
:
49
50
/** @name Public Initializer
51
* Methods for the control of the factory singleton.
52
*/
53
//@{
54
55
/*! \brief It initializes the factory: the singleton instance will be registered in the abstract factory AbstractFillWidgetFactory. */
56
static
void
initialize
();
57
58
/*! \brief It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory AbstractFillWidgetFactory. */
59
static
void
finalize
();
60
61
//@}
62
63
/** @name Public Destructor
64
* Destructor.
65
*/
66
//@{
67
68
/*!
69
\brief Destructor.
70
71
\note It will automatically unregister the factory from the dictionary.
72
*/
73
~BasicFillWidgetFactory
();
74
75
//@}
76
77
protected
:
78
79
/** @name Re-implementation of Pure Virtual Method
80
* Concrete factory methods.
81
*/
82
//@{
83
84
AbstractFillWidget
*
build
();
85
86
//@}
87
88
protected
:
89
90
/** @name Protected Initializers
91
* Initializers.
92
*/
93
//@{
94
95
/*!
96
\brief It creates the factory.
97
98
The key of a BasicFillWidgetFactory is a string.
99
100
\param factoryKey The key that identifies the factory.
101
*/
102
BasicFillWidgetFactory
();
103
104
//@}
105
106
private
:
107
108
static
std::string
sm_factoryKey
;
//!< The factory key.
109
static
BasicFillWidgetFactory
*
sm_factory
;
//!< A pointer to the global factory.
110
};
111
112
}
// end namespace widgets
113
}
// end namespace qt
114
}
// end namespace te
115
116
#endif
// __TERRALIB_QT_SE_INTERNAL_BASICFILLWIDGETFACTORY_H
AbstractFillWidgetFactory.h
The abstract factory of widgets used to configure Symbology Enconding Fill element.
te::qt::widgets::AbstractFillWidgetFactory
The abstract factory of widgets used to configure Symbology Enconding Fill element.
Definition:
AbstractFillWidgetFactory.h:54
te::qt::widgets::AbstractFillWidget
Abstract class that represents a widget that can be used to build a fill element.
Definition:
AbstractFillWidget.h:52
te::qt::widgets::BasicFillWidgetFactory
A concrete factory that builds a fill widget used to configure a basic fill element.
Definition:
BasicFillWidgetFactory.h:47
te::qt::widgets::BasicFillWidgetFactory::~BasicFillWidgetFactory
~BasicFillWidgetFactory()
Destructor.
te::qt::widgets::BasicFillWidgetFactory::finalize
static void finalize()
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the ...
te::qt::widgets::BasicFillWidgetFactory::sm_factoryKey
static std::string sm_factoryKey
The factory key.
Definition:
BasicFillWidgetFactory.h:108
te::qt::widgets::BasicFillWidgetFactory::BasicFillWidgetFactory
BasicFillWidgetFactory()
It creates the factory.
te::qt::widgets::BasicFillWidgetFactory::initialize
static void initialize()
It initializes the factory: the singleton instance will be registered in the abstract factory Abstrac...
te::qt::widgets::BasicFillWidgetFactory::build
AbstractFillWidget * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
te::qt::widgets::BasicFillWidgetFactory::sm_factory
static BasicFillWidgetFactory * sm_factory
A pointer to the global factory.
Definition:
BasicFillWidgetFactory.h:109
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
se
BasicFillWidgetFactory.h
Generated on Mon Jun 5 2023 10:44:31 for TerraLib by
1.9.1