Commit 1a2c932e authored by Bernhard Beschow's avatar Bernhard Beschow

make static

parent 9ff4092d
......@@ -160,7 +160,7 @@ void GeoPolygonGraphicsItem::initializeBuildingPainting(const GeoPainter* painte
}
}
QPointF GeoPolygonGraphicsItem::centroid(const QPolygonF &polygon, double &area) const
QPointF GeoPolygonGraphicsItem::centroid(const QPolygonF &polygon, double &area)
{
auto centroid = QPointF(0.0, 0.0);
area = 0.0;
......@@ -518,8 +518,8 @@ void GeoPolygonGraphicsItem::paintFrame(GeoPainter *painter, const ViewportParam
painter->restore();
}
void GeoPolygonGraphicsItem::screenPolygons(const ViewportParams *viewport, const GeoDataPolygon * polygon, QVector<QPolygonF*> & innerPolygons, QVector<QPolygonF*> & outlines) const {
void GeoPolygonGraphicsItem::screenPolygons(const ViewportParams *viewport, const GeoDataPolygon *polygon, QVector<QPolygonF *> &innerPolygons, QVector<QPolygonF *> &outlines)
{
Q_ASSERT(polygon);
QVector<QPolygonF*> outerPolygons;
......
......@@ -51,14 +51,14 @@ private:
static double extractBuildingHeight(const GeoDataFeature *feature);
static QString extractBuildingLabel(const GeoDataFeature *feature);
static QList<NamedEntry> extractNamedEntries(const GeoDataFeature *feature);
void screenPolygons(const ViewportParams *viewport, const GeoDataPolygon* polygon, QVector<QPolygonF*> &polygons, QVector<QPolygonF*> &outlines) const;
static void screenPolygons(const ViewportParams *viewport, const GeoDataPolygon* polygon, QVector<QPolygonF*> &polygons, QVector<QPolygonF*> &outlines);
QPen configurePainter(GeoPainter* painter, const ViewportParams *viewport, bool isBuildingFrame);
static bool isBuilding(GeoDataFeature::GeoDataVisualCategory visualCategory);
void initializeBuildingPainting(const GeoPainter* painter, const ViewportParams *viewport,
bool &drawAccurate3D, bool &isCameraAboveBuilding, bool &hasInnerBoundaries,
QVector<QPolygonF*>& outlinePolygons,
QVector<QPolygonF*>& innerPolygons) const;
QPointF centroid(const QPolygonF &polygon, double &area) const;
static QPointF centroid(const QPolygonF &polygon, double &area);
const GeoDataPolygon *const m_polygon;
const GeoDataLinearRing *const m_ring;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment