Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
c42d600d
Commit
c42d600d
authored
Mar 11, 2026
by
Luna Riegel
Browse files
Refactor: Unify methods
parent
2d2568b9
Changes
41
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorHealerGUI/src/main/java/de/hft/stuttgart/citydoctor2/healer/gui/HealerController.java
View file @
c42d600d
...
@@ -134,7 +134,7 @@ public class HealerController {
...
@@ -134,7 +134,7 @@ public class HealerController {
if
(
doBoundarySurfaceHaveGeometryErrors
(
b
.
getBoundarySurfaces
()))
{
if
(
doBoundarySurfaceHaveGeometryErrors
(
b
.
getBoundarySurfaces
()))
{
return
true
;
return
true
;
}
}
return
doBuildingInstallationsContainGeometryErrors
(
b
.
get
Building
Installations
());
return
doBuildingInstallationsContainGeometryErrors
(
b
.
getInstallations
());
}
}
private
void
addBuildingToTree
(
Building
b
,
ChooseFeatureDialog
dialog
)
{
private
void
addBuildingToTree
(
Building
b
,
ChooseFeatureDialog
dialog
)
{
...
@@ -143,7 +143,7 @@ public class HealerController {
...
@@ -143,7 +143,7 @@ public class HealerController {
buildingItem
.
setExpanded
(
true
);
buildingItem
.
setExpanded
(
true
);
buildGeometryTreeItems
(
b
,
buildingItem
);
buildGeometryTreeItems
(
b
,
buildingItem
);
buildBoundarySurfaceItems
(
b
.
getBoundarySurfaces
(),
buildingItem
);
buildBoundarySurfaceItems
(
b
.
getBoundarySurfaces
(),
buildingItem
);
buildBuildingInstallationItems
(
b
.
get
Building
Installations
(),
buildingItem
);
buildBuildingInstallationItems
(
b
.
getInstallations
(),
buildingItem
);
}
}
private
void
buildBuildingInstallationItems
(
List
<
Installation
>
buildingInstallations
,
private
void
buildBuildingInstallationItems
(
List
<
Installation
>
buildingInstallations
,
...
@@ -577,7 +577,7 @@ public class HealerController {
...
@@ -577,7 +577,7 @@ public class HealerController {
collectPolygons
(
availablePolygons
,
b
.
getBoundarySurfaces
());
collectPolygons
(
availablePolygons
,
b
.
getBoundarySurfaces
());
}
}
if
(
useBi
)
{
if
(
useBi
)
{
for
(
Installation
bi
:
b
.
get
Building
Installations
())
{
for
(
Installation
bi
:
b
.
getInstallations
())
{
for
(
Geometry
geom
:
bi
.
getGeometries
())
{
for
(
Geometry
geom
:
bi
.
getGeometries
())
{
List
<
Polygon
>
polygons
=
availablePolygons
.
computeIfAbsent
(
geom
.
getLod
(),
l
->
new
ArrayList
<>());
List
<
Polygon
>
polygons
=
availablePolygons
.
computeIfAbsent
(
geom
.
getLod
(),
l
->
new
ArrayList
<>());
polygons
.
addAll
(
geom
.
getPolygons
());
polygons
.
addAll
(
geom
.
getPolygons
());
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment