dmpvectorvacuatelayer.cpp
1.1 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
45
46
47
48
/**************************************************************************
* file: dmpvectorvacuatelayer.cpp
* Author: qingxiongf
* Date: 2021-12-13 10:05:35
* Email: qingxiongf@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#include "dmpvectorvacuatelayer.h"
DmpVectorVacuateLayer::DmpVectorVacuateLayer(/* args */)
{
}
DmpVectorVacuateLayer::~DmpVectorVacuateLayer()
{
}
bool DmpVectorVacuateLayer::IsCurrentLayer(double d)
{
if(d > m_ddis)
{
return true;
}
return false;
}
std::shared_ptr<DmpVectorVacuateLayer> DmpVectorVacuateLayer::clone()
{
std::shared_ptr<DmpVectorVacuateLayer> vacuateLayer(new DmpVectorVacuateLayer(*this));
return vacuateLayer;
}
bool DmpVectorVacuateLayer::Init(double dis, const std::string& tableName, const std::string& connectstr)
{
m_ddis =dis;
m_tableName = tableName;
connectstr_ = connectstr;
return true;
}
double DmpVectorVacuateLayer::GeDisPix()
{
return this->m_ddis;
}