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
1970e72e
Commit
1970e72e
authored
Jul 23, 2025
by
Riegel
Browse files
Refactor: Add special deserializer for Geometry
parent
40043594
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/Geometry.java
View file @
1970e72e
...
@@ -26,6 +26,8 @@ import de.hft.stuttgart.citydoctor2.utils.BoundingBoxCalculator;
...
@@ -26,6 +26,8 @@ import de.hft.stuttgart.citydoctor2.utils.BoundingBoxCalculator;
import
de.hft.stuttgart.citydoctor2.utils.SerializablePair
;
import
de.hft.stuttgart.citydoctor2.utils.SerializablePair
;
import
javafx.scene.paint.Color
;
import
javafx.scene.paint.Color
;
import
java.io.IOException
;
import
java.io.ObjectInputStream
;
import
java.io.Serial
;
import
java.io.Serial
;
import
java.util.*
;
import
java.util.*
;
...
@@ -344,6 +346,11 @@ public class Geometry extends GmlElement {
...
@@ -344,6 +346,11 @@ public class Geometry extends GmlElement {
return
false
;
return
false
;
}
}
@Serial
private
void
readObject
(
ObjectInputStream
in
)
throws
IOException
,
ClassNotFoundException
{
in
.
defaultReadObject
();
updateVertices
();
}
public
void
clearMetaData
()
{
public
void
clearMetaData
()
{
if
(
vertices
!=
null
)
{
if
(
vertices
!=
null
)
{
...
...
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