Commit b9af569e authored by Matthias Betz's avatar Matthias Betz
Browse files

remove low memory mode

parent 8536ec35
Pipeline #12291 failed with stage
in 1 minute and 15 seconds
package de.hft.stuttgart.citydoctor2.gui.tree; package de.hft.stuttgart.citydoctor2.gui.tree;
import de.hft.stuttgart.citydoctor2.datastructure.CityDoctorModel; import java.util.concurrent.atomic.AtomicInteger;
import de.hft.stuttgart.citydoctor2.gui.CityDoctorController; import de.hft.stuttgart.citydoctor2.gui.CityDoctorController;
import javafx.scene.control.TreeItem; import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeView; import javafx.scene.control.TreeView;
import java.util.concurrent.atomic.AtomicInteger;
public abstract class AddMoreButtonRunnable implements Runnable{ public abstract class AddMoreButtonRunnable implements Runnable{
......
...@@ -4,13 +4,9 @@ import de.hft.stuttgart.citydoctor2.datastructure.CityObject; ...@@ -4,13 +4,9 @@ import de.hft.stuttgart.citydoctor2.datastructure.CityObject;
import de.hft.stuttgart.citydoctor2.gui.CheckStatus; import de.hft.stuttgart.citydoctor2.gui.CheckStatus;
import de.hft.stuttgart.citydoctor2.gui.Renderer; import de.hft.stuttgart.citydoctor2.gui.Renderer;
import de.hft.stuttgart.citydoctor2.gui.tree.Renderable; import de.hft.stuttgart.citydoctor2.gui.tree.Renderable;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class CityObjectNode extends Renderable { public class CityObjectNode extends Renderable {
private static final Logger logger = LogManager.getLogger(CityObjectNode.class);
private final CityObject co; private final CityObject co;
private String text; private String text;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"> <VBox xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<Label fx:id="fileLabel" text="File:"> <Label fx:id="fileLabel" text="File:">
<padding> <padding>
...@@ -60,7 +60,6 @@ ...@@ -60,7 +60,6 @@
<rowConstraints> <rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints> </rowConstraints>
<children> <children>
<Label fx:id="roundingPlacesLabel" text="NumberOfRoundingPlaces:"> <Label fx:id="roundingPlacesLabel" text="NumberOfRoundingPlaces:">
...@@ -80,11 +79,6 @@ ...@@ -80,11 +79,6 @@
<Font size="14.0" /> <Font size="14.0" />
</font></Label> </font></Label>
<CheckBox fx:id="useValidationBox" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="1" /> <CheckBox fx:id="useValidationBox" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Label fx:id="lowMemoryLabel" text="Low Memory Consumption Mode" GridPane.rowIndex="2">
<font>
<Font size="14.0" />
</font></Label>
<CheckBox fx:id="lowMemoryBox" mnemonicParsing="false" selected="true" GridPane.columnIndex="1" GridPane.rowIndex="2" />
</children> </children>
</GridPane> </GridPane>
</content> </content>
......
...@@ -71,7 +71,6 @@ public class NonPlanarGenetic { ...@@ -71,7 +71,6 @@ public class NonPlanarGenetic {
ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig(); ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig();
config.setNumberOfRoundingPlacesInGlobalParameters(8); config.setNumberOfRoundingPlacesInGlobalParameters(8);
config.setSchematronFilePathInGlobalParameters(null); config.setSchematronFilePathInGlobalParameters(null);
config.getParserConfiguration().setUseLowMemoryConsumption(false);
List<Path> gmlFiles = getPathsForGmlFiles(); List<Path> gmlFiles = getPathsForGmlFiles();
for (Path gmlFile : gmlFiles) { for (Path gmlFile : gmlFiles) {
...@@ -348,8 +347,6 @@ public class NonPlanarGenetic { ...@@ -348,8 +347,6 @@ public class NonPlanarGenetic {
v.setY(newPoint.getY()); v.setY(newPoint.getY());
v.setZ(newPoint.getZ()); v.setZ(newPoint.getZ());
} }
// update edges
copy.prepareForChecking();
// recheck // recheck
c.executeChecksForCheckable(copy); c.executeChecksForCheckable(copy);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment