dmpsymbol.cpp
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
40
41
42
43
44
/**************************************************************************
* file: dmpsymbol.cpp
* Author: wanzhongping
* Date: 2021-07-04 15:11:11
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#include "dmpsymbol.h"
#include <memory>
DmpSymbol *DmpSymbol::DefaultSymbol(DmpWkbTypes::GeometryType geomType)
{
std::unique_ptr<DmpSymbol> symbol;
switch ( geomType )
{
case DmpWkbTypes::PointGeometry:
symbol = std::make_unique<DmpMarkerSymbol>();
break;
case DmpWkbTypes::LineGeometry:
symbol = std::make_unique<DmpLineSymbol>();
break;
case DmpWkbTypes::PolygonGeometry:
symbol = std::make_unique<DmpFillSymbol>();
break;
default:
return nullptr;
}
return symbol.release();
}
void DmpSymbol::RenderFeature( const DmpFeature &feature, DmpRenderContext &context, int layer)
{
}
void DmpSymbol::StartRender(DmpRenderContext &context)
{
}
void DmpSymbol::StopRender(DmpRenderContext &context)
{
}