X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2Fvisualisations%2Fmodel%2FDynamicVisualisation.java;h=d64461e18936e6884f1ba5b686f0807415baecfe;hb=ff5441dd6a85ef6fb92c6b3b0cf709bbce878e5e;hp=3903b5540c359bf1c8c2bc08e284862c7a4e4e2d;hpb=6b98761b9c2e9835629d2c0aabefe92657d6d36b;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicVisualisation.java b/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicVisualisation.java index 3903b554..d64461e1 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicVisualisation.java +++ b/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicVisualisation.java @@ -6,11 +6,16 @@ import org.simantics.db.Resource; import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicArrowObject; import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicColoringObject; import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicSizingObject; +import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicSymbolContributionObject; +import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.StaticInformationContributionObject; public class DynamicVisualisation { private final String name; private final Resource visualisationResource; + + private final long interval; + private final boolean disabledUpdates; private final Map colorContributions; private final Map defaultColorContributions; @@ -21,6 +26,9 @@ public class DynamicVisualisation { private final Map defaultArrowContributions; private final Map arrowContributions; + private final Map staticInformationContributions; + private final Map dynamicSymbolContributions; + private final boolean hideEdges; private final boolean hidePoints; private final boolean hideConsumers; @@ -36,14 +44,22 @@ public class DynamicVisualisation { private final boolean dynamicSymbolsShutoffValves; private final boolean dynamicSymbolsValves; private final boolean dynamicSymbolsPumpingStations; + private boolean keyVariablesVertexHover; + private boolean keyVariablesEdgesHover; + private boolean resetVisualisation; + + private boolean showElevationServerBoundingBox; + private boolean isInSimulation; - public DynamicVisualisation(String name, Resource visualisationResource, - Map colorContributions, + public DynamicVisualisation(String name, Resource visualisationResource, long interval, boolean disabled, + boolean resetVisualisation, Map colorContributions, Map defaultColoringObjects, ColorBarOptions colorBarOptions, Map sizeContributions, Map defaultSizingObjects, SizeBarOptions sizeBarOptions, Map defaultArrowContributions, Map arrowContributions, + Map staticInformationContributions, + Map dynamicSymbolContributions, boolean hideEdges, boolean hidePoints, boolean hideConsumers, @@ -56,10 +72,17 @@ public class DynamicVisualisation { boolean dynamicSymbolsProducers, boolean dynamicSymbolsShutoffValves, boolean dynamicSymbolsValves, - boolean dynamicSymbolsPumpingStations + boolean dynamicSymbolsPumpingStations, + boolean keyVariablesVertexHover, + boolean keyVariablesEdgesHover, + boolean showElevationServerBoundingBox, + boolean isInSimulation ) { this.name = name; this.visualisationResource = visualisationResource; + this.interval = interval; + this.disabledUpdates = disabled; + this.resetVisualisation = resetVisualisation; this.colorContributions = colorContributions; this.defaultColorContributions = defaultColoringObjects; this.colorBarOptions = colorBarOptions; @@ -68,6 +91,8 @@ public class DynamicVisualisation { this.sizeBarOptions = sizeBarOptions; this.defaultArrowContributions = defaultArrowContributions; this.arrowContributions = arrowContributions; + this.staticInformationContributions = staticInformationContributions; + this.dynamicSymbolContributions = dynamicSymbolContributions; this.hidePoints = hidePoints; this.hideConsumers = hideConsumers; @@ -83,6 +108,12 @@ public class DynamicVisualisation { this.dynamicSymbolsPumpingStations = dynamicSymbolsPumpingStations; this.dynamicSymbolsShutoffValves = dynamicSymbolsShutoffValves; this.dynamicSymbolsValves = dynamicSymbolsValves; + + this.keyVariablesVertexHover = keyVariablesVertexHover; + this.keyVariablesEdgesHover = keyVariablesEdgesHover; + + this.showElevationServerBoundingBox = showElevationServerBoundingBox; + this.isInSimulation = isInSimulation; } public String getName() { @@ -125,6 +156,10 @@ public class DynamicVisualisation { return arrowContributions; } + public Map getStaticInformationContributions() { + return staticInformationContributions; + } + public boolean isHideEdges() { return hideEdges; } @@ -176,4 +211,32 @@ public class DynamicVisualisation { public boolean isDynamicSymbolsValves() { return dynamicSymbolsValves; } + + public long getInterval() { + return interval; + } + + public boolean disabledUpdates() { + return disabledUpdates; + } + + public boolean isKeyVariablesVertexHover() { + return keyVariablesVertexHover; + } + + public boolean isKeyVariablesEdgesHover() { + return keyVariablesEdgesHover; + } + + public boolean isResetVisualisation() { + return resetVisualisation; + } + + public boolean isInSimulation() { + return isInSimulation; + } + + public Map getDynamicSymbolContributions() { + return dynamicSymbolContributions; + } }