Main Page
Modules
Namespaces
Classes
Files
File List
File Members
TsMapDisplay.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 TsMapDisplay.cpp
22
23
\brief Test suite for the Qt Map Display widget.
24
*/
25
26
27
// Unit-Test TerraLib
28
#include "
TsMapDisplay.h
"
29
30
// TerraLib
31
#include <
terralib/color.h
>
32
#include <
terralib/common.h
>
33
#include <
terralib/dataaccess.h
>
34
#include <
terralib/geometry.h
>
35
#include <
terralib/maptools.h
>
36
#include <
terralib/postgis.h
>
37
#include <
terralib/qt/widgets.h
>
38
39
// Qt
40
#include <QtGui/QApplication>
41
42
// STL
43
#include <ctime>
44
45
CPPUNIT_TEST_SUITE_REGISTRATION
(
TsMapDisplay
);
46
47
void
TsMapDisplay::setUp
()
48
{
49
}
50
51
void
TsMapDisplay::tearDown
()
52
{
53
}
54
55
void
TsMapDisplay::tcSetExtent
()
56
{
57
#ifdef TE_COMPILE_ALL
58
int
argc = 0;
59
QApplication
app(argc, 0);
60
return
;
61
#endif
62
}
63
64
void
TsMapDisplay::tcShowLayer
()
65
{
66
#ifdef TE_COMPILE_ALL
67
int
argc = 0;
68
QApplication
app(argc, 0);
69
return
;
70
#endif
71
}
72
QApplication
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(TsMapDisplay)
TsMapDisplay.h
Test suite for the Qt Map Display widget.
TsMapDisplay::tcShowLayer
void tcShowLayer()
Test Case: it will show a new layer in the map display.
Definition:
TsMapDisplay.cpp:64
TsMapDisplay
Test suite for the Qt canvas widget.
Definition:
TsMapDisplay.h:44
TsMapDisplay::tcSetExtent
void tcSetExtent()
Test Case: it will test if the map display is working properly when showing a given geogragic area...
Definition:
TsMapDisplay.cpp:55
TsMapDisplay::setUp
void setUp()
Definition:
TsMapDisplay.cpp:47
widgets.h
This file contains include headers for the TerraLib Qt widgets.
postgis.h
This file contains include headers for the TerraLib PostGIS driver.
color.h
This file contains include headers for the Color Model of TerraLib.
common.h
This file contains include headers for the TerraLib Common Runtime module.
geometry.h
This file contains include headers for the Vector Geometry model of TerraLib.
dataaccess.h
This file contains include headers for the Data Access module of TerraLib.
maptools.h
This file contains include headers for the Map Tools module of TerraLib.
TsMapDisplay::tearDown
void tearDown()
Definition:
TsMapDisplay.cpp:51
terralib5_src
unittest
qtwidgets
TsMapDisplay.cpp
Generated on Wed Jun 6 2018 12:16:16 for TerraLib by
1.8.11