]> gerrit.simantics Code Review - simantics/district.git/commit
Optimization of district scene graph node rendering 55/3355/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 16 Oct 2019 22:46:26 +0000 (01:46 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 17 Oct 2019 09:59:08 +0000 (09:59 +0000)
commit81e0cb1fb018e2f1098fc610fb91bda89dce81f1
tree8e190d2c699b4796e1aa220a092595d133f203c9
parent74600320e9ef95377a2e0acee5d445334e1e55e5
Optimization of district scene graph node rendering

* Removed as many repetitive Graphics2D.getTransform calls as possible
* Cleaned up map info nodes from lower right corner of the screen to
  support hi-dpi/display zoom
* Enabled r-tree based picking for district diagrams
* Cleaner looking and more properly working map scale indicator

gitlab #63

Change-Id: Ieebbfc659ef71ba4ff3dad00664fb7b6ee5019b2
(cherry picked from commit b018055e3c5809d33161154aebdc47f733721cdb)
18 files changed:
org.simantics.district.maps/src/org/simantics/maps/eclipse/MapPainter.java
org.simantics.district.maps/src/org/simantics/maps/sg/Formatting.java [new file with mode: 0644]
org.simantics.district.maps/src/org/simantics/maps/sg/MapAttributionNode.java
org.simantics.district.maps/src/org/simantics/maps/sg/MapInfoConstants.java [new file with mode: 0644]
org.simantics.district.maps/src/org/simantics/maps/sg/MapInfoNode.java [new file with mode: 0644]
org.simantics.district.maps/src/org/simantics/maps/sg/MapLocationInfoNode.java [new file with mode: 0644]
org.simantics.district.maps/src/org/simantics/maps/sg/MapLocationZoomInfoNode.java [deleted file]
org.simantics.district.maps/src/org/simantics/maps/sg/MapScaleNode.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/DistrictDiagramViewer.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/NetworkDrawingParticipant.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkNodeUtils.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkVertexNode.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictRenderingHints.java [new file with mode: 0644]
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictRenderingPreparationNode.java [new file with mode: 0644]
org.simantics.district.region.ui/src/org/simantics/district/region/ui/handlers/ZoomToRegionHandler.java
org.simantics.district.selection.ui/src/org/simantics/district/selection/ui/ElementSelectionTools.java