Subversion Repositories public

Rev

Rev 278 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 278 Rev 280
Line 10... Line 10...
10
//
10
//
11
//
11
//
12
#ifndef _RENDER_H
12
#ifndef _RENDER_H
13
#define _RENDER_H
13
#define _RENDER_H
14
 
14
 
-
 
15
#include "config.h"
-
 
16
 
-
 
17
// Everything here is only available, if Mapnik is available!
-
 
18
#if defined HAVE_MAPNIK
-
 
19
 
15
#include <mapnik/map.hpp>
20
#include <mapnik/map.hpp>
16
#include <mapnik/datasource_cache.hpp>
21
#include <mapnik/datasource_cache.hpp>
17
#include <mapnik/font_engine_freetype.hpp>
22
#include <mapnik/font_engine_freetype.hpp>
18
#include <mapnik/agg_renderer.hpp>
23
#include <mapnik/agg_renderer.hpp>
19
#include <mapnik/filter_factory.hpp>
24
#include <mapnik/filter_factory.hpp>
Line 257... Line 262...
257
 
262
 
258
	public:
263
	public:
259
	   SRender();
264
	   SRender();
260
	   ~SRender();
265
	   ~SRender();
261
 
266
 
262
	   void setDrawArea(const QLabel &lb) { label = (QLabel *)&lb; };
267
	   void setDrawArea(int, int);
-
 
268
	   QPixmap pixmap() { return pxmap; };
263
	   void setShapePath(const QString &str) { if (str.isNull()) return; shapePath = str; };
269
	   void setShapePath(const QString &str) { if (str.isNull()) return; shapePath = str; };
264
	   void setXmlPath(const QString &path) { if (path.isNull()) return; XmlPath = path; };
270
	   void setXmlPath(const QString &path) { if (path.isNull()) return; XmlPath = path; };
265
	   bool getMap(double lx, double ly, double rx, double ry);
271
	   bool getMap(double lx, double ly, double rx, double ry);
266
	   inline void setMapType(map_type mt) { __map_type = mt; }
272
	   inline void setMapType(map_type mt) { __map_type = mt; }
267
	   inline map_type getMapType() { return __map_type; }
273
	   inline map_type getMapType() { return __map_type; }
Line 303... Line 309...
303
	   POLYGONPATTERNSYMBOLIZER *allocPolygonPatternSymbolizer();
309
	   POLYGONPATTERNSYMBOLIZER *allocPolygonPatternSymbolizer();
304
	   SHIELDSYMBOLIZER *allocShieldSymbolizer();
310
	   SHIELDSYMBOLIZER *allocShieldSymbolizer();
305
	   LINEPATTERNSYMBOLIZER *allocLinePatternSymbolizer();
311
	   LINEPATTERNSYMBOLIZER *allocLinePatternSymbolizer();
306
 
312
 
307
	private:
313
	private:
308
	   QLabel *label;
314
	   QPixmap pxmap;
309
	   QString shapePath;
315
	   QString shapePath;
310
	   QString pluginPath;
316
	   QString pluginPath;
311
	   QString fontPath;
317
	   QString fontPath;
312
	   QString XmlPath;
318
	   QString XmlPath;
313
	   bool geographic;
319
	   bool geographic;
314
	   map_type __map_type;
320
	   map_type __map_type;
-
 
321
	   int _width, _height;
315
	   CONTAINER Container;
322
	   CONTAINER Container;
316
	   bool ControlSet;
323
	   bool ControlSet;
317
	   int Field;
324
	   int Field;
318
	   int XmlLine;	// Line number of the current position in XML file
325
	   int XmlLine;	// Line number of the current position in XML file
319
	   double _lx, _ly, _rx, _ry;
326
	   double _lx, _ly, _rx, _ry;
Line 331... Line 338...
331
	   POLYGONPATTERNSYMBOLIZER 	*PolygonPatternSymbolizer;
338
	   POLYGONPATTERNSYMBOLIZER 	*PolygonPatternSymbolizer;
332
	   SHIELDSYMBOLIZER	 	*ShieldSymbolizer;
339
	   SHIELDSYMBOLIZER	 	*ShieldSymbolizer;
333
	   LINEPATTERNSYMBOLIZER    	*LinePatternSymbolizer;
340
	   LINEPATTERNSYMBOLIZER    	*LinePatternSymbolizer;
334
};
341
};
335
 
342
 
-
 
343
#endif // HAVE_MAPNIK
336
#endif // _RENDER_H
344
#endif // _RENDER_H
337
 
345