1 Star 0 Fork 0

osglibs/3DCityLoD

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BuildingPart.h 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
Shuang He 提交于 2011-04-16 00:11 +08:00 . full commit
#pragma once
#include "heads.h"
#include "Footprint.h"
class BuildingPart
{
public:
explicit BuildingPart(std::string);
~BuildingPart(void);
inline void addRoof(const OGRPolygon* roof){_roofs->addGeometry(roof);}
inline void addWall(const OGRPolygon* wall){ _walls->addGeometry(wall);}
inline void setFootprint(const Footprint fp){_footprint = fp;}
inline std::string getId()const{return _id;}
inline int getNumRoofs()const {return _roofs->getNumGeometries();}
inline int getNumWalls()const {return _walls->getNumGeometries();}
inline OGRMultiPolygon* getRoofs()const {return _roofs;}
inline OGRMultiPolygon* getWalls()const {return _walls;}
inline Footprint& getFootprint() {return _footprint;}
double getAltitude();
double getHeight();
private:
std::string _id;
OGRMultiPolygon* _roofs;
OGRMultiPolygon* _walls;
double _altitude;
double _height;
Footprint _footprint;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/osglibs/3DCityLoD.git
[email protected]:osglibs/3DCityLoD.git
osglibs
3DCityLoD
3DCityLoD
master

搜索帮助