Commit b2e184c0 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Remove PlacemarkFilter class which serves no purpose

parent b3dce195
......@@ -26,7 +26,6 @@ set( ${TARGET}_SRC
main.cpp
BaseClipper.cpp
BaseFilter.cpp
PlacemarkFilter.cpp
TinyPlanetProcessor.cpp
NodeReducer.cpp
TagsFilter.cpp
......
......@@ -22,7 +22,7 @@
namespace Marble {
NodeReducer::NodeReducer(GeoDataDocument* document, int zoomLevel) :
PlacemarkFilter(document),
BaseFilter(document),
m_resolution(resolutionForLevel(zoomLevel)),
m_removedNodes(0),
m_remainingNodes(0)
......
......@@ -11,13 +11,13 @@
#ifndef MARBLE_NODEREDUCER_H
#define MARBLE_NODEREDUCER_H
#include "PlacemarkFilter.h"
#include "BaseFilter.h"
#include "GeoDataLineString.h"
#include "MarbleMath.h"
namespace Marble {
class NodeReducer : public PlacemarkFilter {
class NodeReducer : public BaseFilter {
public:
NodeReducer(GeoDataDocument* document, int zoomLevel);
void process() override;
......
//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2016 David Kolozsvari <freedawson@gmail.com>
//
#include "PlacemarkFilter.h"
#include "GeoDataPlacemark.h"
namespace Marble {
PlacemarkFilter::PlacemarkFilter(GeoDataDocument *document) :
BaseFilter(document)
{
qDebug() << "Placemark count:" << placemarks().size();
}
}
//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2016 David Kolozsvari <freedawson@gmail.com>
//
#ifndef PLACEMARKHANDLER_H
#define PLACEMARKHANDLER_H
#include "BaseFilter.h"
namespace Marble {
class PlacemarkFilter : public BaseFilter
{
public:
explicit PlacemarkFilter(GeoDataDocument* document);
};
}
#endif // PLACEMARKHANDLER_H
......@@ -11,7 +11,7 @@
#include <QString>
#include <QStringList>
#include "PlacemarkFilter.h"
#include "BaseFilter.h"
#include "TagsFilter.h"
#include "GeoDataObject.h"
#include "GeoDataDocument.h"
......@@ -21,7 +21,7 @@
namespace Marble {
TagsFilter::TagsFilter(GeoDataDocument *geoDocument, const QStringList &tagsList, bool andFlag )
: PlacemarkFilter(geoDocument),
: BaseFilter(geoDocument),
m_accepted(new GeoDataDocument)
{
int total=0, tagCount=0;
......
......@@ -12,7 +12,7 @@
#ifndef MARBLE_TAGSFILTER_H
#define MARBLE_TAGSFILTER_H
#include "PlacemarkFilter.h"
#include "BaseFilter.h"
#include <QMap>
#include <QString>
......@@ -21,7 +21,7 @@ namespace Marble {
class GeoDataDocument;
class TagsFilter : public PlacemarkFilter
class TagsFilter : public BaseFilter
{
public:
//Filters placemarks which have tags in the hash
......
......@@ -24,7 +24,7 @@
namespace Marble {
TinyPlanetProcessor::TinyPlanetProcessor(GeoDataDocument* document) :
PlacemarkFilter(document)
BaseFilter(document)
{
}
......
......@@ -11,14 +11,14 @@
#ifndef TINYPLANETPROCESSOR_H
#define TINYPLANETPROCESSOR_H
#include "PlacemarkFilter.h"
#include "BaseFilter.h"
#include "OsmPlacemarkData.h"
#include <GeoDataLatLonBox.h>
namespace Marble {
class TinyPlanetProcessor : public PlacemarkFilter
class TinyPlanetProcessor : public BaseFilter
{
public:
explicit TinyPlanetProcessor(GeoDataDocument* document);
......
......@@ -11,7 +11,7 @@
#ifndef MARBLE_WAYCONCATENATOR_H
#define MARBLE_WAYCONCATENATOR_H
#include "PlacemarkFilter.h"
#include "BaseFilter.h"
#include "TagsFilter.h"
namespace Marble {
......
Supports Markdown
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