]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/function/Functions.java
Show detailed geometry on further zoom distance
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / function / Functions.java
index cc05a173b739e2b6d33fe5b823e3f1fa513c236b..14c75030e019d7598bc2e8b08db82302b8af38c1 100644 (file)
@@ -510,52 +510,13 @@ public class Functions {
     private static List<String> listInstanceNames(ReadGraph graph, Variable context, Resource type) throws DatabaseException {
         Resource indexRoot = Variables.getIndexRoot(graph, context);
         DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        List<Resource> properties = QueryIndexUtils.searchByType(graph, indexRoot, DN.Vertex_ScaleProperty);
+        List<Resource> properties = Collections.emptyList();//QueryIndexUtils.searchByType(graph, indexRoot, DN.Vertex_ScaleProperty);
         return properties.stream()
                 .map(m -> createEnumeratedValue(graph, m))
                 .map(EnumeratedValue::getName)
                 .collect(Collectors.toList());
     }
 
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object edgeThicknessPropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return listInstanceNames(graph, context, DN.Edge_ThicknessProperty);
-    }
-    
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object arrowLengthPropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return listInstanceNames(graph, context, DN.Edge_ArrowLengthProperty);
-    }
-    
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object nodeScalePropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return listInstanceNames(graph, context, DN.Vertex_ScaleProperty);
-    }
-
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object edgeThicknessPropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        Resource diagram = resolveElement(graph, context);
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return baseMappingModifier(graph, diagram, DN.Diagram_edgeThicknessProperty, DN.Edge_ThicknessProperty, context);
-    }
-
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object arrowLengthPropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        Resource diagram = resolveElement(graph, context);
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return baseMappingModifier(graph, diagram, DN.Diagram_arrowLengthProperty, DN.Edge_ArrowLengthProperty, context);
-    }
-    
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object nodeScalePropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        Resource diagram = resolveElement(graph, context);
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return baseMappingModifier(graph, diagram, DN.Diagram_nodeScaleProperty, DN.Vertex_ScaleProperty, context);
-    }
-
     @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
     public static Function1<Resource, Double> hasDiameterValue(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
         return directPropertyValueFunction(DistrictNetworkResource.getInstance(graph).Edge_HasDiameter, 0);