Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
9d93322a
Commit
9d93322a
authored
1 month ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Fix: Add BridgeObject to PDF report output
parent
1f568610
master
dev
dev_gui_features_zip_loading
archive/dev_gui_features_zip_loading
2 merge requests
!28
Version 3.17.0 Release
,
!26
Add ZIP-archive support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/PdfStreamReporter.java
+42
-0
...tuttgart/citydoctor2/reporting/pdf/PdfStreamReporter.java
with
42 additions
and
0 deletions
+42
-0
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/PdfStreamReporter.java
+
42
-
0
View file @
9d93322a
...
...
@@ -33,6 +33,7 @@ import de.hft.stuttgart.citydoctor2.datastructure.AbstractBuilding;
import
de.hft.stuttgart.citydoctor2.datastructure.AbstractFurniture
;
import
de.hft.stuttgart.citydoctor2.datastructure.AbstractRoom
;
import
de.hft.stuttgart.citydoctor2.datastructure.AbstractTunnel
;
import
de.hft.stuttgart.citydoctor2.datastructure.BridgeConstructiveElement
;
import
de.hft.stuttgart.citydoctor2.datastructure.BuildingUnit
;
import
de.hft.stuttgart.citydoctor2.datastructure.CityFurniture
;
import
de.hft.stuttgart.citydoctor2.datastructure.GenericCityObject
;
...
...
@@ -266,6 +267,8 @@ public class PdfStreamReporter implements StreamReporter {
bSection
.
setHeadlineColor
(
OK_COLOR
);
}
writeErrorForCityObject
(
co
,
bSection
);
BridgeObject
bo
=
(
BridgeObject
)
co
;
writeCheckResultForBridgeObject
(
bo
,
bSection
);
}
private
void
reportTrans
(
CityObject
co
,
boolean
hasError
)
{
...
...
@@ -407,6 +410,7 @@ public class PdfStreamReporter implements StreamReporter {
for
(
AbstractFurniture
af
:
ab
.
getBuildingRoomFurnitureList
())
{
writeCheckResultForAbstractFurniture
(
af
,
root
);
}
for
(
Storey
s
:
ab
.
getBuildingStoreys
())
{
writeCheckResultForStorey
(
s
,
root
);
}
...
...
@@ -421,6 +425,33 @@ public class PdfStreamReporter implements StreamReporter {
}
}
private
void
writeCheckResultForBridgeObject
(
BridgeObject
bo
,
Section
root
)
{
Map
<
CheckId
,
CheckResult
>
results
=
bo
.
getAllCheckResults
();
writeCheckResults
(
results
.
values
(),
root
);
for
(
BridgeObject
parts
:
bo
.
getParts
())
{
sectionMap
.
put
(
bo
.
getGmlId
().
getGmlString
(),
root
);
writeCheckResultForBridgeObject
(
parts
,
root
);
}
for
(
Geometry
geom
:
bo
.
getGeometries
())
{
writeCheckResultForGeometry
(
geom
,
root
);
}
for
(
AbstractRoom
ar
:
bo
.
getBridgeRooms
())
{
writeCheckResultForRoom
(
ar
,
root
);
}
for
(
AbstractFurniture
af
:
bo
.
getBridgeFurniture
())
{
writeCheckResultForAbstractFurniture
(
af
,
root
);
}
for
(
BridgeConstructiveElement
bce
:
bo
.
getConstructiveElements
())
{
writeCheckResultForBridgeConstructiveElement
(
bce
,
root
);
}
for
(
BoundarySurface
bs
:
bo
.
getBoundarySurfaces
())
{
writeCheckResultForBoundarySurface
(
bs
,
root
);
}
for
(
Installation
bi
:
bo
.
getBridgeInstallations
())
{
writeCheckResultForInstallation
(
bi
,
root
);
}
}
private
void
writeCheckResultForStorey
(
Storey
s
,
Section
root
)
{
Map
<
CheckId
,
CheckResult
>
results
=
s
.
getAllCheckResults
();
writeCheckResults
(
results
.
values
(),
root
);
...
...
@@ -507,6 +538,17 @@ public class PdfStreamReporter implements StreamReporter {
}
}
private
void
writeCheckResultForBridgeConstructiveElement
(
BridgeConstructiveElement
bce
,
Section
root
)
{
Map
<
CheckId
,
CheckResult
>
results
=
bce
.
getAllCheckResults
();
writeCheckResults
(
results
.
values
(),
root
);
for
(
Geometry
geom
:
bce
.
getGeometries
())
{
writeCheckResultForGeometry
(
geom
,
root
);
}
for
(
BoundarySurface
bs
:
bce
.
getBoundarySurfaces
())
{
writeCheckResultForBoundarySurface
(
bs
,
root
);
}
}
private
void
writeErrorForCityObject
(
CityObject
co
,
Section
section
)
{
Map
<
CheckId
,
CheckResult
>
results
=
co
.
getAllCheckResults
();
writeCheckResults
(
results
.
values
(),
section
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets