dmprenderer.h
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**************************************************************************
* file: dmprenderer.h
* Author: wanzhongping
* Date: 2021-07-02 17:59:05
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#ifndef __dmprenderer_h__
#define __dmprenderer_h__
#include "dmap_core.h"
#include "dmprendercontext.h"
#include "dmpsymbol.h"
#include "dmpwkbtypes.h"
#include <string>
class DmpFeature;
//渲染器基类
class CORE_EXPORT DmpFeatureRenderer
{
public:
static DmpFeatureRenderer *DefaultRenderer(DmpWkbTypes::GeometryType geomType);
virtual ~DmpFeatureRenderer();
virtual bool RenderFeature(const DmpFeature &feature, DmpRenderContext &context, int layer = -1);
virtual DmpSymbol *SymbolForFeature( const DmpFeature &feature, DmpRenderContext &context ) const = 0;
virtual void StartRender(DmpRenderContext &context);
virtual void StopRender(DmpRenderContext &context);
protected:
DmpFeatureRenderer(const std::string &type);
std::string type_;
};
#endif //__dmprenderer_h__