Main Page
Modules
Namespaces
Classes
Files
File List
File Members
HistogramFrameFactory.cpp
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/charts/HistogramFrameFactory.cpp
22
23
\brief A factory to build the histogram frame object.
24
*/
25
26
#include "
HistogramFrame.h
"
27
#include "
HistogramFrameFactory.h
"
28
29
te::qt::widgets::HistogramFrameFactory
*
te::qt::widgets::HistogramFrameFactory::sm_factory
(0);
30
31
void
te::qt::widgets::HistogramFrameFactory::initialize
()
32
{
33
finalize
();
34
sm_factory
=
new
HistogramFrameFactory
;
35
}
36
37
void
te::qt::widgets::HistogramFrameFactory::finalize
()
38
{
39
delete
sm_factory;
40
sm_factory = 0;
41
}
42
43
te::qt::widgets::HistogramFrameFactory::~HistogramFrameFactory
()
44
{
45
46
}
47
48
te::qt::widgets::ChartWidget
*
te::qt::widgets::HistogramFrameFactory::build
()
49
{
50
return
new
HistogramFrame
;
51
}
52
53
te::qt::widgets::HistogramFrameFactory::HistogramFrameFactory
()
54
:
te
::qt::widgets::
ChartWidgetFactory
(
"Histogram Style"
)
55
{
56
57
}
58
59
te::qt::widgets::ChartWidget
*
te::qt::widgets::HistogramFrameFactory::create
(QWidget* parent)
60
{
61
return
new
HistogramFrame
(parent);
62
}
te::qt::widgets::HistogramFrameFactory::sm_factory
static HistogramFrameFactory * sm_factory
Definition:
HistogramFrameFactory.h:70
te::qt::widgets::HistogramFrameFactory::HistogramFrameFactory
HistogramFrameFactory()
Definition:
HistogramFrameFactory.cpp:53
te::qt::widgets::HistogramFrame
A frame for setting display options.
Definition:
HistogramFrame.h:53
te::qt::widgets::ChartWidgetFactory
A factory to build widget objects.
Definition:
ChartWidgetFactory.h:50
te
URI C++ Library.
Definition:
AddressGeocodingOp.h:51
te::qt::widgets::HistogramFrameFactory::~HistogramFrameFactory
~HistogramFrameFactory()
Definition:
HistogramFrameFactory.cpp:43
HistogramFrameFactory.h
A factory to build the histogram frame object.
te::qt::widgets::HistogramFrameFactory::build
te::qt::widgets::ChartWidget * build()
Concrete factories (derived from this one) must implement this method in order to create objects...
Definition:
HistogramFrameFactory.cpp:48
te::qt::widgets::HistogramFrameFactory::initialize
static void initialize()
Definition:
HistogramFrameFactory.cpp:31
te::qt::widgets::ChartWidget
A base widget for settings.
Definition:
ChartWidget.h:50
te::qt::widgets::HistogramFrameFactory::create
virtual te::qt::widgets::ChartWidget * create(QWidget *parent=0)
Definition:
HistogramFrameFactory.cpp:59
te::qt::widgets::HistogramFrameFactory
A factory to build the histogram frame object.
Definition:
HistogramFrameFactory.h:50
HistogramFrame.h
A frame used to adjust a histogram's chart parameters, weather it is about it's data or it's visual s...
te::qt::widgets::HistogramFrameFactory::finalize
static void finalize()
Definition:
HistogramFrameFactory.cpp:37
git_master
terralib5
src
terralib
qt
widgets
charts
HistogramFrameFactory.cpp
Generated on Tue Jan 12 2016 08:40:57 for TerraLib by
1.8.9.1