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
638dedb3
Commit
638dedb3
authored
Nov 04, 2024
by
Riegel
Browse files
Add Tab for GenericAttributes
parent
314f1216
Changes
8
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/mapper/citygml3/Citygml3FeatureMapper.java
View file @
638dedb3
...
@@ -228,7 +228,13 @@ public class Citygml3FeatureMapper extends ObjectWalker {
...
@@ -228,7 +228,13 @@ public class Citygml3FeatureMapper extends ObjectWalker {
parseAndAddSolid
(
as
.
getLod1Solid
(),
Lod
.
LOD1
,
co
);
parseAndAddSolid
(
as
.
getLod1Solid
(),
Lod
.
LOD1
,
co
);
parseAndAddSolid
(
as
.
getLod2Solid
(),
Lod
.
LOD2
,
co
);
parseAndAddSolid
(
as
.
getLod2Solid
(),
Lod
.
LOD2
,
co
);
parseAndAddSolid
(
as
.
getLod3Solid
(),
Lod
.
LOD3
,
co
);
parseAndAddSolid
(
as
.
getLod3Solid
(),
Lod
.
LOD3
,
co
);
parseAndAddGenericAttributes
(
as
,
co
);
}
private
void
parseAndAddGenericAttributes
(
AbstractSpace
as
,
CityObject
co
)
{
for
(
AbstractGenericAttributeProperty
aga
:
as
.
getGenericAttributes
())
{
co
.
addGenericAttribute
(
new
GenericAttribute
(
aga
));
}
}
}
@Override
@Override
...
@@ -903,7 +909,6 @@ public class Citygml3FeatureMapper extends ObjectWalker {
...
@@ -903,7 +909,6 @@ public class Citygml3FeatureMapper extends ObjectWalker {
}
}
}
}
SurfaceMapper
surfaceMapper
=
new
SurfaceMapper
(
polygonMap
,
references
,
compositeMap
,
vertexMap
,
config
);
SurfaceMapper
surfaceMapper
=
new
SurfaceMapper
(
polygonMap
,
references
,
compositeMap
,
vertexMap
,
config
);
for
(
AbstractSpaceBoundaryProperty
surfaceProp
:
gmlAb
.
getBoundaries
())
{
for
(
AbstractSpaceBoundaryProperty
surfaceProp
:
gmlAb
.
getBoundaries
())
{
if
(!
surfaceProp
.
isSetObject
())
{
if
(!
surfaceProp
.
isSetObject
())
{
...
...
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/utils/CityGmlUtils.java
View file @
638dedb3
...
@@ -41,6 +41,7 @@ import java.util.Set;
...
@@ -41,6 +41,7 @@ import java.util.Set;
*/
*/
public
final
class
CityGmlUtils
{
public
final
class
CityGmlUtils
{
private
CityGmlUtils
()
{
private
CityGmlUtils
()
{
// util class
// util class
}
}
...
...
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties
View file @
638dedb3
...
@@ -64,6 +64,7 @@ MainWindow.errorsTab=Errors
...
@@ -64,6 +64,7 @@ MainWindow.errorsTab=Errors
MainWindow.polygonsTab
=
Polygons
MainWindow.polygonsTab
=
Polygons
MainWindow.edgesTab
=
Edges
MainWindow.edgesTab
=
Edges
MainWindow.verticesTab
=
Vertices
MainWindow.verticesTab
=
Vertices
MainWindow.attributeTab
=
Attributes
MainWindow.logTab
=
Log
MainWindow.logTab
=
Log
MainWindow.globalErrorsTab
=
Global Errors
MainWindow.globalErrorsTab
=
Global Errors
OpenFileDialog.fileLabel
=
File:
OpenFileDialog.fileLabel
=
File:
...
...
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties
View file @
638dedb3
...
@@ -62,6 +62,7 @@ MainWindow.errorsTab=Fehler
...
@@ -62,6 +62,7 @@ MainWindow.errorsTab=Fehler
MainWindow.polygonsTab
=
Polygone
MainWindow.polygonsTab
=
Polygone
MainWindow.edgesTab
=
Kanten
MainWindow.edgesTab
=
Kanten
MainWindow.verticesTab
=
Punkte
MainWindow.verticesTab
=
Punkte
MainWindow.attributeTab
=
Attribute
MainWindow.logTab
=
Log
MainWindow.logTab
=
Log
MainWindow.globalErrorsTab
=
Globale Fehler
MainWindow.globalErrorsTab
=
Globale Fehler
OpenFileDialog.fileLabel
=
Datei:
OpenFileDialog.fileLabel
=
Datei:
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
View file @
638dedb3
...
@@ -428,6 +428,7 @@ public class CityDoctorController {
...
@@ -428,6 +428,7 @@ public class CityDoctorController {
mainWindow
.
getCityFurnitureView
().
setRoot
(
null
);
mainWindow
.
getCityFurnitureView
().
setRoot
(
null
);
mainWindow
.
getOtherObjectsView
().
setRoot
(
null
);
mainWindow
.
getOtherObjectsView
().
setRoot
(
null
);
mainWindow
.
getErrorTree
().
getRoot
().
getChildren
().
clear
();
mainWindow
.
getErrorTree
().
getRoot
().
getChildren
().
clear
();
mainWindow
.
getAttributeView
().
getRoot
().
getChildren
().
clear
();
mainWindow
.
getGlobalErrorsView
().
getItems
().
clear
();
mainWindow
.
getGlobalErrorsView
().
getItems
().
clear
();
clearGeometryTrees
();
clearGeometryTrees
();
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/MainWindow.java
View file @
638dedb3
...
@@ -78,6 +78,9 @@ public class MainWindow extends Application {
...
@@ -78,6 +78,9 @@ public class MainWindow extends Application {
@FXML
@FXML
private
TreeView
<
Renderable
>
cityFurnitureView
;
private
TreeView
<
Renderable
>
cityFurnitureView
;
@FXML
private
TreeView
<
Renderable
>
attributeView
;
@FXML
@FXML
TreeView
<
Renderable
>
otherObjectsView
;
TreeView
<
Renderable
>
otherObjectsView
;
...
@@ -177,6 +180,9 @@ public class MainWindow extends Application {
...
@@ -177,6 +180,9 @@ public class MainWindow extends Application {
@FXML
@FXML
private
Tab
verticesTab
;
private
Tab
verticesTab
;
@FXML
private
Tab
attributeTab
;
@FXML
@FXML
private
Tab
logTab
;
private
Tab
logTab
;
...
@@ -419,6 +425,7 @@ public class MainWindow extends Application {
...
@@ -419,6 +425,7 @@ public class MainWindow extends Application {
polygonsTab
.
setText
(
Localization
.
getText
(
"MainWindow.polygonsTab"
));
polygonsTab
.
setText
(
Localization
.
getText
(
"MainWindow.polygonsTab"
));
edgesTab
.
setText
(
Localization
.
getText
(
"MainWindow.edgesTab"
));
edgesTab
.
setText
(
Localization
.
getText
(
"MainWindow.edgesTab"
));
verticesTab
.
setText
(
Localization
.
getText
(
"MainWindow.verticesTab"
));
verticesTab
.
setText
(
Localization
.
getText
(
"MainWindow.verticesTab"
));
attributeTab
.
setText
(
Localization
.
getText
(
"MainWindow.attributeTab"
));
logTab
.
setText
(
Localization
.
getText
(
"MainWindow.logTab"
));
logTab
.
setText
(
Localization
.
getText
(
"MainWindow.logTab"
));
globalErrorsTab
.
setText
(
Localization
.
getText
(
"MainWindow.globalErrorsTab"
));
globalErrorsTab
.
setText
(
Localization
.
getText
(
"MainWindow.globalErrorsTab"
));
memoryLabel
.
setText
(
Localization
.
getText
(
"MainWindow.memoryLabel"
));
memoryLabel
.
setText
(
Localization
.
getText
(
"MainWindow.memoryLabel"
));
...
@@ -746,6 +753,7 @@ public class MainWindow extends Application {
...
@@ -746,6 +753,7 @@ public class MainWindow extends Application {
vegetationView
.
setShowRoot
(
true
);
vegetationView
.
setShowRoot
(
true
);
setupSelectListener
(
vegetationView
);
setupSelectListener
(
vegetationView
);
vegetationView
.
setCellFactory
(
param
->
new
RenderableTreeCell
());
vegetationView
.
setCellFactory
(
param
->
new
RenderableTreeCell
());
vegetationView
.
setContextMenu
(
cMenu
);
transView
.
setShowRoot
(
true
);
transView
.
setShowRoot
(
true
);
setupSelectListener
(
transView
);
setupSelectListener
(
transView
);
...
@@ -786,6 +794,10 @@ public class MainWindow extends Application {
...
@@ -786,6 +794,10 @@ public class MainWindow extends Application {
setupSelectListener
(
edgeView
);
setupSelectListener
(
edgeView
);
edgeView
.
setRoot
(
new
TreeItem
<>());
edgeView
.
setRoot
(
new
TreeItem
<>());
edgeView
.
setCellFactory
(
param
->
new
RenderableTreeCell
());
edgeView
.
setCellFactory
(
param
->
new
RenderableTreeCell
());
setupSelectListener
(
attributeView
);
attributeView
.
setRoot
(
new
TreeItem
<>());
attributeView
.
setCellFactory
(
param
->
new
RenderableTreeCell
());
}
}
private
void
setupSelectListener
(
TreeView
<
Renderable
>
view
)
{
private
void
setupSelectListener
(
TreeView
<
Renderable
>
view
)
{
...
@@ -979,6 +991,10 @@ public class MainWindow extends Application {
...
@@ -979,6 +991,10 @@ public class MainWindow extends Application {
return
cityFurnitureView
;
return
cityFurnitureView
;
}
}
public
TreeView
<
Renderable
>
getAttributeView
()
{
return
attributeView
;
}
public
TreeView
<
Renderable
>
getOtherObjectsView
()
{
public
TreeView
<
Renderable
>
getOtherObjectsView
()
{
return
otherObjectsView
;
return
otherObjectsView
;
}
}
...
@@ -1036,6 +1052,7 @@ public class MainWindow extends Application {
...
@@ -1036,6 +1052,7 @@ public class MainWindow extends Application {
polygonView
.
getSelectionModel
().
clearSelection
();
polygonView
.
getSelectionModel
().
clearSelection
();
edgeView
.
getSelectionModel
().
clearSelection
();
edgeView
.
getSelectionModel
().
clearSelection
();
vertexView
.
getSelectionModel
().
clearSelection
();
vertexView
.
getSelectionModel
().
clearSelection
();
attributeView
.
getSelectionModel
().
clearSelection
();
errorView
.
getSelectionModel
().
clearSelection
();
errorView
.
getSelectionModel
().
clearSelection
();
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/Renderer.java
View file @
638dedb3
...
@@ -185,6 +185,7 @@ public class Renderer {
...
@@ -185,6 +185,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
building
);
errorUpdater
=
()
->
displayErrors
(
building
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
building
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -234,6 +235,7 @@ public class Renderer {
...
@@ -234,6 +235,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
bp
);
errorUpdater
=
()
->
displayErrors
(
bp
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
bp
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -268,6 +270,7 @@ public class Renderer {
...
@@ -268,6 +270,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
room
);
errorUpdater
=
()
->
displayErrors
(
room
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
room
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -293,6 +296,7 @@ public class Renderer {
...
@@ -293,6 +296,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
furniture
);
errorUpdater
=
()
->
displayErrors
(
furniture
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
furniture
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -318,6 +322,7 @@ public class Renderer {
...
@@ -318,6 +322,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
storey
);
errorUpdater
=
()
->
displayErrors
(
storey
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
storey
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -343,6 +348,7 @@ public class Renderer {
...
@@ -343,6 +348,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
buildingUnit
);
errorUpdater
=
()
->
displayErrors
(
buildingUnit
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
buildingUnit
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -368,6 +374,7 @@ public class Renderer {
...
@@ -368,6 +374,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
tunnel
);
errorUpdater
=
()
->
displayErrors
(
tunnel
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
tunnel
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -435,6 +442,7 @@ public class Renderer {
...
@@ -435,6 +442,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
bridge
);
errorUpdater
=
()
->
displayErrors
(
bridge
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
bridge
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -469,6 +477,7 @@ public class Renderer {
...
@@ -469,6 +477,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
co
);
errorUpdater
=
()
->
displayErrors
(
co
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
co
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -482,6 +491,7 @@ public class Renderer {
...
@@ -482,6 +491,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
relief
);
errorUpdater
=
()
->
displayErrors
(
relief
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
relief
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -504,6 +514,7 @@ public class Renderer {
...
@@ -504,6 +514,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
bi
);
errorUpdater
=
()
->
displayErrors
(
bi
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
bi
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -529,6 +540,7 @@ public class Renderer {
...
@@ -529,6 +540,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
cf
);
errorUpdater
=
()
->
displayErrors
(
cf
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
cf
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -548,6 +560,7 @@ public class Renderer {
...
@@ -548,6 +560,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
gco
);
errorUpdater
=
()
->
displayErrors
(
gco
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
gco
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -573,6 +586,7 @@ public class Renderer {
...
@@ -573,6 +586,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
errorUpdater
=
()
->
displayErrors
(
bs
);
errorUpdater
=
()
->
displayErrors
(
bs
);
errorUpdater
.
run
();
errorUpdater
.
run
();
addGenericAttributesToView
(
bs
);
});
});
};
};
refresher
.
run
();
refresher
.
run
();
...
@@ -648,6 +662,7 @@ public class Renderer {
...
@@ -648,6 +662,7 @@ public class Renderer {
currentGeometry
=
geom
;
currentGeometry
=
geom
;
}
}
addGeometryDataToView
(
geom
);
addGeometryDataToView
(
geom
);
addGenericAttributesToView
(
geom
.
getParent
());
mainWindow
.
zoomOutForBoundingBox
(
BoundingBox
.
of
(
geom
.
getPolygons
()));
mainWindow
.
zoomOutForBoundingBox
(
BoundingBox
.
of
(
geom
.
getPolygons
()));
errorUpdater
=
()
->
displayErrors
(
geom
);
errorUpdater
=
()
->
displayErrors
(
geom
);
errorUpdater
.
run
();
errorUpdater
.
run
();
...
@@ -668,6 +683,13 @@ public class Renderer {
...
@@ -668,6 +683,13 @@ public class Renderer {
}
}
}
}
private
void
addGenericAttributesToView
(
CityObject
co
)
{
clearAttributes
();
for
(
GenericAttribute
gen
:
co
.
getGenericAttributes
())
{
addGenericAttributeToView
(
gen
);
}
}
private
void
addVertexToView
(
Vertex
v
)
{
private
void
addVertexToView
(
Vertex
v
)
{
Renderable
cf
=
new
VertexNode
(
v
);
Renderable
cf
=
new
VertexNode
(
v
);
TreeItem
<
Renderable
>
ti
=
new
TreeItem
<>(
cf
);
TreeItem
<
Renderable
>
ti
=
new
TreeItem
<>(
cf
);
...
@@ -711,6 +733,12 @@ public class Renderer {
...
@@ -711,6 +733,12 @@ public class Renderer {
}
}
}
}
private
void
addGenericAttributeToView
(
GenericAttribute
gen
)
{
GenericAttributeNode
genNode
=
new
GenericAttributeNode
(
gen
);
TreeItem
<
Renderable
>
ti
=
new
TreeItem
<>(
genNode
);
mainWindow
.
getAttributeView
().
getRoot
().
getChildren
().
add
(
ti
);
}
private
CheckStatus
determineCheckStatus
(
Checkable
c
)
{
private
CheckStatus
determineCheckStatus
(
Checkable
c
)
{
if
(!
c
.
isValidated
())
{
if
(!
c
.
isValidated
())
{
return
CheckStatus
.
NOT_CHECKED
;
return
CheckStatus
.
NOT_CHECKED
;
...
@@ -742,6 +770,7 @@ public class Renderer {
...
@@ -742,6 +770,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
...
@@ -774,6 +803,7 @@ public class Renderer {
...
@@ -774,6 +803,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
currentTriGeom
=
TriangulatedGeometry
.
of
(
model
,
lodFilters
);
currentTriGeom
=
TriangulatedGeometry
.
of
(
model
,
lodFilters
);
...
@@ -807,6 +837,7 @@ public class Renderer {
...
@@ -807,6 +837,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
...
@@ -843,6 +874,7 @@ public class Renderer {
...
@@ -843,6 +874,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
...
@@ -877,6 +909,7 @@ public class Renderer {
...
@@ -877,6 +909,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
...
@@ -909,6 +942,7 @@ public class Renderer {
...
@@ -909,6 +942,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
...
@@ -935,6 +969,7 @@ public class Renderer {
...
@@ -935,6 +969,7 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
loadingDialog
.
show
();
loadingDialog
.
show
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
Thread
t
=
new
Thread
(()
->
{
Thread
t
=
new
Thread
(()
->
{
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
Set
<
ConcretePolygon
>
polygons
=
new
HashSet
<>();
...
@@ -1099,9 +1134,14 @@ public class Renderer {
...
@@ -1099,9 +1134,14 @@ public class Renderer {
Platform
.
runLater
(()
->
{
Platform
.
runLater
(()
->
{
mainWindow
.
getMeshGroup
().
getChildren
().
clear
();
mainWindow
.
getMeshGroup
().
getChildren
().
clear
();
clearGeometryTrees
();
clearGeometryTrees
();
clearAttributes
();
});
});
}
}
private
void
clearAttributes
()
{
mainWindow
.
getAttributeView
().
getRoot
().
getChildren
().
clear
();
}
public
void
highlight
(
Polygon
p
)
{
public
void
highlight
(
Polygon
p
)
{
highlightController
.
highlight
(
p
,
currentTriGeom
);
highlightController
.
highlight
(
p
,
currentTriGeom
);
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/MainWindow.fxml
View file @
638dedb3
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.*?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TreeView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?>
<BorderPane
fx:id=
"mainPane"
maxHeight=
"1.7976931348623157E308"
maxWidth=
"1.7976931348623157E308"
minHeight=
"400.0"
minWidth=
"400.0"
xmlns=
"http://javafx.com/javafx/22"
xmlns:fx=
"http://javafx.com/fxml/1"
>
<BorderPane
fx:id=
"mainPane"
maxHeight=
"1.7976931348623157E308"
maxWidth=
"1.7976931348623157E308"
minHeight=
"400.0"
minWidth=
"400.0"
xmlns=
"http://javafx.com/javafx/22"
xmlns:fx=
"http://javafx.com/fxml/1"
>
<center>
<center>
<SplitPane
fx:id=
"mainContainer"
dividerPositions=
"0.47069431920649235"
maxHeight=
"1.7976931348623157E308"
maxWidth=
"1.7976931348623157E308"
minWidth=
"300.0"
prefHeight=
"600.0"
prefWidth=
"1100.0"
>
<SplitPane
fx:id=
"mainContainer"
dividerPositions=
"0.47069431920649235"
maxHeight=
"1.7976931348623157E308"
maxWidth=
"1.7976931348623157E308"
minWidth=
"300.0"
prefHeight=
"600.0"
prefWidth=
"1100.0"
>
...
@@ -129,6 +113,11 @@
...
@@ -129,6 +113,11 @@
<TreeView
fx:id=
"vertexView"
prefHeight=
"200.0"
prefWidth=
"200.0"
showRoot=
"false"
/>
<TreeView
fx:id=
"vertexView"
prefHeight=
"200.0"
prefWidth=
"200.0"
showRoot=
"false"
/>
</content>
</content>
</Tab>
</Tab>
<Tab
fx:id=
"attributeTab"
text=
"Attributes"
>
<content>
<TreeView
fx:id=
"attributeView"
prefHeight=
"200.0"
prefWidth=
"200.0"
showRoot=
"false"
/>
</content>
</Tab>
</tabs>
</tabs>
</TabPane>
</TabPane>
</items>
</items>
...
...
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