mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 05:24:02 +00:00
Fixed custom polygon example
Added antitalising in Qt (tip Martin Dobias) [SVN r68934]
This commit is contained in:
parent
fb6625dafb
commit
48f280b0c0
@ -57,11 +57,17 @@ namespace boost { namespace geometry { namespace traits
|
|||||||
{
|
{
|
||||||
|
|
||||||
template<> struct tag<my_polygon> { typedef polygon_tag type; };
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
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"
|
PreprocessorDefinitions="QT_NO_DEBUG;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalLibraryDirectories="$(QT)\lib"
|
|
||||||
AdditionalDependencies="qtmain.lib QtGui4.lib QtCore4.lib"
|
AdditionalDependencies="qtmain.lib QtGui4.lib QtCore4.lib"
|
||||||
|
AdditionalLibraryDirectories="$(QT)\lib"
|
||||||
IgnoreDefaultLibraryNames="msvcrt.lib"
|
IgnoreDefaultLibraryNames="msvcrt.lib"
|
||||||
/>
|
/>
|
||||||
<UserMacro
|
<UserMacro
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
// 1) download (from http://qt.nokia.com), configure and make QT
|
// 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)
|
// 2) if necessary, adapt Qt clause in include path (note there is a Qt property sheet)
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
@ -66,6 +65,7 @@ class WorldMapper : public QWidget
|
|||||||
|
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
painter.setBrush(Qt::green);
|
painter.setBrush(Qt::green);
|
||||||
|
painter.setRenderHint(QPainter::Antialiasing);
|
||||||
|
|
||||||
BOOST_FOREACH(country_type const& country, m_countries)
|
BOOST_FOREACH(country_type const& country, m_countries)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user