Skip to content

Commit 3da9fc4

Browse files
author
wonder
committed
Removed Label class (not used anymore)
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11208 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5e2c1f8 commit 3da9fc4

10 files changed

+4
-271
lines changed

src/core/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ SET(QGIS_CORE_SRCS
8585
pal/costcalculator.cpp
8686
pal/feature.cpp
8787
pal/geomfunction.cpp
88-
pal/label.cpp
8988
pal/labelposition.cpp
9089
pal/layer.cpp
9190
pal/pal.cpp

src/core/pal/costcalculator.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <pal/layer.h>
99
#include <pal/pal.h>
10-
#include <pal/label.h>
1110

1211
#include "feature.h"
1312
#include "geomfunction.h"

src/core/pal/label.cpp

-107
This file was deleted.

src/core/pal/label.h

-132
This file was deleted.

src/core/pal/labelposition.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
#include <pal/layer.h>
4343
#include <pal/pal.h>
44-
#include <pal/label.h>
4544

4645
#include "costcalculator.h"
4746
#include "feature.h"

src/core/pal/pal.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <pal/pal.h>
5050
#include <pal/layer.h>
5151
#include <pal/palexception.h>
52+
#include <pal/palstat.h>
5253

5354
#include "linkedlist.hpp"
5455
#include "rtree.hpp"

src/core/pal/pal.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
#ifndef _PAL_H
3535
#define _PAL_H
3636

37-
#include <pal/label.h>
38-
#include <pal/palstat.h>
3937

4038
#include <list>
4139
#include <iostream>
@@ -62,6 +60,7 @@ namespace pal
6260

6361
class Layer;
6462
class LabelPosition;
63+
class PalStat;
6564
class Problem;
6665
class PointSet;
6766
class SimpleMutex;

src/core/pal/palgeometry.h

+1-23
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
#ifndef _PAL_GEOMETRY_H
3131
#define _PAL_GEOMETRY_H
3232

33-
#include <list>
34-
#include <pal/label.h>
33+
#include <cstdlib> // for size_t needed in geos_c.h
3534
#include <geos_c.h>
3635

3736
namespace pal
@@ -43,13 +42,6 @@ namespace pal
4342
class CORE_EXPORT PalGeometry
4443
{
4544
public:
46-
/*
47-
* \brief get the geometry in WKB hexa format
48-
* This method is called by Pal each time it needs a geom's coordinates
49-
*
50-
* @return WKB Hex buffer
51-
*/
52-
//virtual char * getWkbHexBuffer() = 0;
5345

5446
/**
5547
* \brief get the GEOSGeometry of the feature
@@ -67,20 +59,6 @@ namespace pal
6759
virtual void releaseGeosGeometry( GEOSGeometry *the_geom ) = 0;
6860

6961

70-
/*
71-
* \brief Called by Pal when it doesn't need the coordinates anymore
72-
* @param wkbBuffer is the WkbBuffer from PalGeometry::getWkbHexBuffer()
73-
*/
74-
//virtual void releaseWkbHexBuffer(char *wkbBuffer) = 0;
75-
76-
/*
77-
* \brief Give back a label to display
78-
* Pal call this method when label will no move anymore.
79-
*
80-
* @param label the label to disploy
81-
*/
82-
//virtual void addLabel(Label *label) = 0;
83-
8462
virtual ~PalGeometry() {}
8563
};
8664

src/core/pal/problem.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#include <pal/pal.h>
4949
#include <pal/palstat.h>
5050
#include <pal/layer.h>
51-
#include <pal/label.h>
5251

5352
#include "linkedlist.hpp"
5453
#include "rtree.hpp"

src/core/qgspalobjectpositionmanager.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ void QgsPALObjectPositionManager::findObjectPositions( const QgsRenderContext& r
109109
double bbox[4]; bbox[0] = viewExtent.xMinimum(); bbox[1] = viewExtent.yMinimum(); bbox[2] = viewExtent.xMaximum(); bbox[3] = viewExtent.yMaximum();
110110

111111

112-
pal::PalStat* stat = 0;
113112
//set map units
114113
pal::Units mapUnits;
115114
switch ( unitType )
@@ -132,8 +131,7 @@ void QgsPALObjectPositionManager::findObjectPositions( const QgsRenderContext& r
132131
mPositionEngine.setMapUnit( mapUnits );
133132
mPositionEngine.setDpi( renderContext.scaleFactor() * 25.4 );
134133

135-
std::list<pal::LabelPosition*>* resultLabelList = mPositionEngine.labeller( renderContext.rendererScale(), bbox, &stat, false );
136-
delete stat;
134+
std::list<pal::LabelPosition*>* resultLabelList = mPositionEngine.labeller( renderContext.rendererScale(), bbox, NULL, false );
137135

138136
//and read the positions back to the overlay objects
139137
if ( !resultLabelList )

0 commit comments

Comments
 (0)