forked from tudelft3d/City4CFD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.h
76 lines (62 loc) · 2.38 KB
/
types.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
City4CFD
Copyright (c) 2021-2022, 3D Geoinformation Research Group, TU Delft
This file is part of City4CFD.
City4CFD 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.
City4CFD 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 City4CFD. If not, see <http://www.gnu.org/licenses/>.
For any information or further details about the use of City4CFD, contact
Ivan Pađen
3D Geoinformation Research Group
Delft University of Technology
*/
#ifndef CITY4CFD_TYPES_H
#define CITY4CFD_TYPES_H
#include "nlohmann/json.hpp"
//-- Typedefs for smart pointers
class Building; class Boundary; class TopoFeature;
class PolyFeature; class Terrain; class SurfaceLayer;
class ReconstructedBuilding; class ImportedBuilding;
typedef std::shared_ptr<Terrain> Terrainptr;
typedef std::vector<std::shared_ptr<Building>> Buildings;
typedef std::vector<std::shared_ptr<ReconstructedBuilding>> ReconstructedBuildings;
typedef std::vector<std::shared_ptr<ImportedBuilding>> ImportedBuildings;
typedef std::vector<std::shared_ptr<Boundary>> Boundaries;
typedef std::vector<std::shared_ptr<TopoFeature>> OutputFeatures;
typedef std::vector<std::shared_ptr<PolyFeature>> PolyFeatures;
typedef std::vector<std::shared_ptr<SurfaceLayer>> SurfaceLayers;
typedef std::vector<std::unique_ptr<nlohmann::json>> JsonVector;
//-- TopoClasses
typedef enum { // temp
TERRAIN = 0,
BUILDING = 1,
SIDES = 2,
TOP = 3,
SURFACELAYER = 4,
} TopoClass;
//-- Domain types
typedef enum {
ROUND = 0,
RECTANGLE = 1,
OVAL = 2
} DomainType;
//-- Output Formats
typedef enum {
OBJ = 0,
CityJSON = 1,
STL = 2,
} GeomFormat;
//-- Global Constants
namespace global {
const double largnum = 1e7;
const double smallnum = 1e-7;
}
#endif //CITY4CFD_TYPES_H