Fixed custom polygon example

Added antitalising in Qt (tip Martin Dobias)

[SVN r68934]
This commit is contained in:
Barend Gehrels 2011-02-15 22:18:21 +00:00
parent fb6625dafb
commit 48f280b0c0
3 changed files with 12 additions and 6 deletions

View File

@ -57,11 +57,17 @@ namespace boost { namespace geometry { namespace traits
{
template<> struct tag<my_polygon> { typedef polygon_tag type; };
template<> struct ring_type<my_polygon> { typedef my_ring type; };
template<> struct ring_const_type<my_polygon> { typedef my_ring const& type; };
template<> struct ring_mutable_type<my_polygon> { typedef my_ring& type; };
template<> struct interior_type<my_polygon>
template<> struct interior_const_type<my_polygon>
{
typedef boost::array<my_ring, 2> type;
typedef boost::array<my_ring, 2> const& type;
};
template<> struct interior_mutable_type<my_polygon>
{
typedef boost::array<my_ring, 2>& type;
};

View File

@ -6,13 +6,13 @@
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(QT)\include;$(QT)\include\QtGui"
AdditionalIncludeDirectories="$(QT)\include;$(QT)\include\QtGui;$(QT)\include\QtCore"
PreprocessorDefinitions="QT_NO_DEBUG;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
/>
<Tool
Name="VCLinkerTool"
AdditionalLibraryDirectories="$(QT)\lib"
AdditionalDependencies="qtmain.lib QtGui4.lib QtCore4.lib"
AdditionalLibraryDirectories="$(QT)\lib"
IgnoreDefaultLibraryNames="msvcrt.lib"
/>
<UserMacro

View File

@ -13,7 +13,6 @@
// 1) download (from http://qt.nokia.com), configure and make QT
// 2) if necessary, adapt Qt clause in include path (note there is a Qt property sheet)
#include <sstream>
#include <fstream>
#include <QtGui>
@ -66,6 +65,7 @@ class WorldMapper : public QWidget
QPainter painter(this);
painter.setBrush(Qt::green);
painter.setRenderHint(QPainter::Antialiasing);
BOOST_FOREACH(country_type const& country, m_countries)
{