|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68934 - in trunk/libs/geometry/example: . with_external_libs
From: barend.gehrels_at_[hidden]
Date: 2011-02-15 17:18:22
Author: barendgehrels
Date: 2011-02-15 17:18:21 EST (Tue, 15 Feb 2011)
New Revision: 68934
URL: http://svn.boost.org/trac/boost/changeset/68934
Log:
Fixed custom polygon example
Added antitalising in Qt (tip Martin Dobias)
Text files modified:
trunk/libs/geometry/example/c06_custom_polygon_example.cpp | 12 +++++++++---
trunk/libs/geometry/example/with_external_libs/qt.vsprops | 4 ++--
trunk/libs/geometry/example/with_external_libs/x06_qt_world_mapper.cpp | 2 +-
3 files changed, 12 insertions(+), 6 deletions(-)
Modified: trunk/libs/geometry/example/c06_custom_polygon_example.cpp
==============================================================================
--- trunk/libs/geometry/example/c06_custom_polygon_example.cpp (original)
+++ trunk/libs/geometry/example/c06_custom_polygon_example.cpp 2011-02-15 17:18:21 EST (Tue, 15 Feb 2011)
@@ -57,11 +57,17 @@
{
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;
};
Modified: trunk/libs/geometry/example/with_external_libs/qt.vsprops
==============================================================================
--- trunk/libs/geometry/example/with_external_libs/qt.vsprops (original)
+++ trunk/libs/geometry/example/with_external_libs/qt.vsprops 2011-02-15 17:18:21 EST (Tue, 15 Feb 2011)
@@ -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
Modified: trunk/libs/geometry/example/with_external_libs/x06_qt_world_mapper.cpp
==============================================================================
--- trunk/libs/geometry/example/with_external_libs/x06_qt_world_mapper.cpp (original)
+++ trunk/libs/geometry/example/with_external_libs/x06_qt_world_mapper.cpp 2011-02-15 17:18:21 EST (Tue, 15 Feb 2011)
@@ -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 @@
QPainter painter(this);
painter.setBrush(Qt::green);
+ painter.setRenderHint(QPainter::Antialiasing);
BOOST_FOREACH(country_type const& country, m_countries)
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk