forked from tudelft3d/3dfier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Building.h
59 lines (49 loc) · 2.23 KB
/
Building.h
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
49
50
51
52
53
54
55
56
57
58
59
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2016 3D geoinformation research group, TU Delft
This file is part of 3dfier.
3dfier is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
3dfier is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with 3difer. If not, see <http://www.gnu.org/licenses/>.
For any information or further details about the use of 3dfier, contact
Hugo Ledoux
Faculty of Architecture & the Built Environment
Delft University of Technology
Julianalaan 134, Delft 2628BL, the Netherlands
*/
#ifndef Building_h
#define Building_h
#include "TopoFeature.h"
class Building: public Flat {
public:
Building(char *wkt, std::string layername, AttributeMap attributes, std::string pid, float heightref_top, float heightref_base);
bool lift();
bool add_elevation_point(Point2 &p, double z, float radius, LAS14Class lasclass, bool lastreturn);
void get_obj(std::unordered_map< std::string, unsigned long > &dPts, int lod, std::string mtl, std::string &fs);
void get_citygml(std::ofstream& of);
void get_citygml_imgeo(std::ofstream& of);
void get_imgeo_nummeraanduiding(std::ofstream& of);
void get_csv(std::ofstream& of);
std::string get_all_z_values();
std::string get_mtl();
bool get_shape(OGRLayer* layer, bool writeAttributes);
TopoClass get_class();
bool is_hard();
int get_height_base();
int get_height_ground_at_percentile(float percentile);
int get_height_roof_at_percentile(float percentile);
private:
std::vector<int> _zvaluesground;
static float _heightref_top;
static float _heightref_base;
int _height_base;
};
#endif /* Building_h */