]> gerrit.simantics Code Review - simantics/district.git/commit
Optimization of district scene graph node rendering 49/3349/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 16 Oct 2019 22:46:26 +0000 (01:46 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 16 Oct 2019 22:47:42 +0000 (22:47 +0000)
commitb018055e3c5809d33161154aebdc47f733721cdb
tree7d0859b4f696922b66dd85d2ae2f1aa493992d56
parent6b98761b9c2e9835629d2c0aabefe92657d6d36b
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
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