<table><tr><td style="">kossebau created this revision.<br />kossebau added reviewers: Marble, shentey, nienhueser, rahn.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2828" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>GeoPolygonGraphicsItem has special code paths for polygons of buildings or<br />
bathymetry which complicate the logic (and also bring a small price at<br />
runtime, due to repeated checks or unneeded building properties).<br />
Distinct subclasses of GeoPolygonGraphicsItem for each type make the methods<br />
more simple and focussed.<br />
With more work on Vector OSM I expect even more special code for<br />
GeoPolygonGraphicsItem, so separate subclasses should help even more in the<br />
future.</p>
<p>Input wanted especially on:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">naming pattern of new classes</li>
<li class="remarkup-list-item">who should know about types, GeoPolygonGraphicsItem or GeometryLayer? GeometryLayer::whichBuildingAt(...) already puts concept of buildings into GeometryLayer (though GeoPolygonGraphicsItem's isBuilding() checks for even more visual categories, mismatch correct?)</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>rMARBLE Marble</div></div></div><br /><div><strong>BRANCH</strong><div><div>splitGeoPolygonGraphicsItem</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2828" rel="noreferrer">https://phabricator.kde.org/D2828</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/marble/geodata/CMakeLists.txt<br />
src/lib/marble/geodata/graphicsitem/AbstractGeoPolygonGraphicsItem.cpp<br />
src/lib/marble/geodata/graphicsitem/AbstractGeoPolygonGraphicsItem.h<br />
src/lib/marble/geodata/graphicsitem/BathymetryGeoPolygonGraphicsItem.cpp<br />
src/lib/marble/geodata/graphicsitem/BathymetryGeoPolygonGraphicsItem.h<br />
src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp<br />
src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.h<br />
src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp<br />
src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.h<br />
src/lib/marble/layers/GeometryLayer.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>kossebau, Marble, shentey, nienhueser, rahn<br /><strong>Cc: </strong>marble-devel<br /></div>