]>
gerrit.simantics Code Review - simantics/district.git/log
jsimomaa [Tue, 4 Jun 2019 12:38:51 +0000 (15:38 +0300)]
Add missing elevation server dependency to District-feature
gitlab #45
Change-Id: Ib0731c539585b8c2046e33e1fbf39ad4a6a5c926
Reino Ruusu [Fri, 24 May 2019 15:35:20 +0000 (18:35 +0300)]
Static information label profile definition.
gitlab #47
APROS-15309
Change-Id: I67aa5fa278304aa7f0f824cbba3762a3712c6f71
jsimomaa [Mon, 20 May 2019 07:46:17 +0000 (10:46 +0300)]
Fix district node/edge hiding profiles to work
gitlab #46
APROS-15365
Change-Id: I345d461e7f3707a4255519e71a2e1c1a903c5959
Reino Ruusu [Mon, 13 May 2019 09:45:00 +0000 (12:45 +0300)]
Reduction in size of hover label font to 9 pts.
gitlab #44
Change-Id: I9f05a864242623792f72fa7071ab47a5f949d8eb
jsimomaa [Mon, 13 May 2019 09:10:46 +0000 (12:10 +0300)]
First version of elevation server based on GeoTIFF files
gitlab #45
APROS-15308
Change-Id: I7aba5526bd45396967bbae8ed26e41934efef47f
jsimomaa [Mon, 29 Apr 2019 14:11:16 +0000 (17:11 +0300)]
Fix copy/paste of pumping station
gitlab #43
APROS-15307
Change-Id: I07dfa7852146c471fe177c7322c773320fefedac
jsimomaa [Mon, 29 Apr 2019 14:10:37 +0000 (17:10 +0300)]
Change route point to Vertex
gitlab #42
APROS-15325
Change-Id: I29598bb700ddc9aa53674b0387f1e72b62d735e1
jsimomaa [Tue, 23 Apr 2019 12:27:52 +0000 (15:27 +0300)]
Prevent scaling of edges as well when zoom level > 15
gitlab #35
APROS-15329
Change-Id: Ia3dd90a316d52209015d1bc1c61b83b11932c32d
Reino Ruusu [Tue, 23 Apr 2019 12:20:24 +0000 (15:20 +0300)]
Open SCL script output console on demand for context menu commands.
gitlab #34
Change-Id: I024b4cc70f0d2644cb527606366347e1d862ade0
jsimomaa [Mon, 22 Apr 2019 18:07:46 +0000 (21:07 +0300)]
Prevent scaling of vertices in zoom levels > 15
gitlab #35
APROS-15329
Change-Id: I8797d241c3ce59031851e6e74c66c0f4907783b7
jsimomaa [Mon, 22 Apr 2019 17:56:25 +0000 (20:56 +0300)]
Do not copy elevation to target but use existing elevation
gitlab #43
APROS-15307
Change-Id: I3cbc97ec442d7dda453093b1dd370413339e5437
jsimomaa [Mon, 22 Apr 2019 17:55:39 +0000 (20:55 +0300)]
Add default mappings for right/left click & prevent edge drawing
immediately after created new vertex by double click
gitlab #42
APROS-15325
Change-Id: I2ca2921a86ecc9d4f2102dade9217d28553aa8fa
Reino Ruusu [Wed, 17 Apr 2019 14:52:34 +0000 (17:52 +0300)]
Block exceptions actually caused by pending values from console.
MissingVariableValueExceptions are thrown by getProperty() calls when
pending values are cached for domain properties.
gitlab #44
Change-Id: I2ca32821feb020defad4e55f2dd5893e9d4083f7
jsimomaa [Fri, 12 Apr 2019 09:53:20 +0000 (12:53 +0300)]
Support copying of attributes from DN.MappedComponent
gitlab #43
Change-Id: I736cbe0454247aaaff51a553cf7a3f7778331f7f
jsimomaa [Thu, 11 Apr 2019 14:37:06 +0000 (17:37 +0300)]
Support copy and cut of dh element & create connections after
gitlab #43
APROS-15307
Change-Id: I9ade3a03bed1da37c1c7adea951998f611386947
Reino Ruusu [Tue, 9 Apr 2019 13:13:53 +0000 (16:13 +0300)]
Hover label profile for district elements.
Also includes some improvements in edge and vertex rendering and
selection.
gitlab #44
Change-Id: I007153a4ccb0417f9c1ee6a745876d024f5e2c8d
jsimomaa [Mon, 8 Apr 2019 16:42:10 +0000 (19:42 +0300)]
Initial version of dh element cut/paste (copy still WIP)
gitlab #43
APROS-15307
Change-Id: Ie1652086c689416e052aed38f5e523ab16ce7b2e
jsimomaa [Mon, 8 Apr 2019 09:44:34 +0000 (12:44 +0300)]
Allow starting/ending of manual network creation to vertices only
Added possibility to create default vertex mapping types by double click
Also disallow zoom levels higher than 20
gitlab #42
APROS-15325
APROS-15346
Change-Id: Iae9ce29b88b970e0e96bb245bd748d93b9f3db7d
Reino Ruusu [Mon, 8 Apr 2019 07:45:05 +0000 (10:45 +0300)]
Elimination of compiler warnings.
Change-Id: I115eca19e5750b8a60f312a537a9355082d45220
jsimomaa [Thu, 4 Apr 2019 17:53:10 +0000 (20:53 +0300)]
Make vertices smaller on map UI & CSV import performance improvements
gitlab #41
APROS-15329
Change-Id: I593b35c1d571b9d1a7f291bd3e81c77fc39b67b3
Reino Ruusu [Thu, 4 Apr 2019 13:43:29 +0000 (16:43 +0300)]
Better default value for arrow length.
gitlab #39
Change-Id: I7fdf6a6785e958be048dd6d3e49ff7156b72fd83
Reino Ruusu [Thu, 4 Apr 2019 12:39:40 +0000 (15:39 +0300)]
Added PipeStruct column to CSV generator script.
gitlab #40
Change-Id: I2016eb992246dd0c3e8a74c49b820bc48ba5ec6f
Reino Ruusu [Wed, 3 Apr 2019 14:41:43 +0000 (17:41 +0300)]
Add minimum span length paremeter to CSV generator script.
Also set units for distance parameters.
gitlab #40
Change-Id: If5d39eccf4f93d8efd472c765ec4d8a79bffc203
Reino Ruusu [Wed, 3 Apr 2019 14:40:46 +0000 (17:40 +0300)]
Added DimensionDN column to CSV generator script.
gitlab #40
Change-Id: I14717e4e1a35a17029e4dfc36715afe72f4c6d9d
Reino Ruusu [Thu, 21 Mar 2019 12:36:48 +0000 (14:36 +0200)]
QGIS Python script for generating pipelines CVS files.
gitlab #40
Change-Id: I4c6527eddbb5d61b4cac81f5bed2cfd49863c83a
Tuukka Lehtonen [Mon, 18 Mar 2019 21:10:37 +0000 (21:10 +0000)]
Merge "Fix to zoom level handling in Map UI." into release/1.35.1
Reino Ruusu [Wed, 13 Mar 2019 10:38:14 +0000 (12:38 +0200)]
Select midpoint of network branches for flow velocity arrows.
gitlab #39
Change-Id: Icdfdf511d85de428f22623f0e697b51265c9e7e4
Reino Ruusu [Mon, 11 Mar 2019 09:11:39 +0000 (11:11 +0200)]
Arrow length indicators for flow magnitude
gitlab #39
Change-Id: I0fa73f0025f02e115a49199ef41c82885a1bf4ca
(cherry picked from commit
0864cdbfa9df392bceb26ef3431034ebfc995bcb )
Reino Ruusu [Mon, 11 Mar 2019 18:17:17 +0000 (20:17 +0200)]
Fix to zoom level handling in Map UI.
gitlab #32
Change-Id: If91a547d85d044d2e4cc78c10ee632f4dc5845b1
(cherry picked from commit
a94392a0c857026b936436fbf61853b44a2c8d42 )
Reino Ruusu [Mon, 11 Mar 2019 07:58:01 +0000 (09:58 +0200)]
More sensible caching for connection lines.
gitlab #37
Change-Id: I8c88d8e6c77963722ebecac86834bdc4c27462e0
Reino Ruusu [Thu, 7 Mar 2019 19:13:33 +0000 (21:13 +0200)]
Connection lines for control inputs.
gitlab #37
Change-Id: I9d784032ccae42e50bfa13fbdb6600601a63ab5d
jsimomaa [Wed, 6 Mar 2019 20:09:23 +0000 (22:09 +0200)]
Add refresh to context menu in district network breakdown view
Also fixes selection of single vertex
gitlab #11
Change-Id: I3c8af80ccfda86be17dfdcede1269bfde0b16a40
jsimomaa [Wed, 6 Mar 2019 19:36:19 +0000 (21:36 +0200)]
Add edge geometry for detailed rendering in closer zoom levels
gitlab #35
Change-Id: I6930dc2b8225647b61beeee0dfa3408e8d1f70c6
jsimomaa [Wed, 6 Mar 2019 20:13:54 +0000 (22:13 +0200)]
Some initial fixes for DPI in map nodes (lot's TODO still)
gitlab #36
Change-Id: If7022ea127d595ea6eaa89878fce38212c81734f
Reino Ruusu [Wed, 6 Mar 2019 13:41:59 +0000 (15:41 +0200)]
Remove empty submenu when no component is specified.
gitlab #34
Change-Id: I2861a8d6217e785e31852dd1f5a5b785becd79fd
Reino Ruusu [Wed, 6 Mar 2019 09:45:37 +0000 (11:45 +0200)]
Presentation of component-specific actions.
gitlab #34
Change-Id: I9a88cbaf22c119dbf60a02fc67e7cc98f5d9148b
Reino Ruusu [Mon, 4 Mar 2019 15:33:03 +0000 (17:33 +0200)]
Resolve tie situations in n lowest/highest element selection.
Pick all elements that match the value of the n'th lowest/highest one.
Change-Id: I066ae39a2f7db73db93a6c3d4c9531ba4300236f
Reino Ruusu [Mon, 4 Mar 2019 13:01:15 +0000 (15:01 +0200)]
Merge remote-tracking branch 'origin/master' into release/1.35.1
Change-Id: Iae0a789dae29880dd235c6c9fe46a2ae115d6009
Reino Ruusu [Mon, 4 Mar 2019 12:51:38 +0000 (14:51 +0200)]
Merge remote-tracking branch 'origin/master' into release/1.35.1
Change-Id: I0b959bf912db2802ecfb35e0caa4ec6b2234829c
Reino Ruusu [Mon, 4 Mar 2019 12:43:02 +0000 (14:43 +0200)]
Merge remote-tracking branch 'origin/release/1.37.0' into release/1.35.1
Change-Id: I6bf440ee0e00dd266e46b0f81b6922dd89b54875
Reino Ruusu [Mon, 25 Feb 2019 10:18:57 +0000 (12:18 +0200)]
Merge remote-tracking branch 'origin/release/1.36.0' into release/1.35.1
Conflicts:
org.simantics.district.network/src/org/simantics/district/network/profile/DistrictNodeGroup.java
Change-Id: I2780355701d80fc5dc992442209f614136e3c9db
jsimomaa [Thu, 28 Feb 2019 09:15:13 +0000 (11:15 +0200)]
Add location & zoom node for network diagram - also OSM attribution
gitlab #33
Change-Id: I170d79d1af403d0dde6fb5b9ec8feb3157a1c113
jsimomaa [Thu, 28 Feb 2019 07:11:50 +0000 (09:11 +0200)]
Refactoring MapNode rendering & zooming to even zoom levels (0-20)
* With this change the map background bitmap-images are always sharp and
not blurred on e.g. zooming level 5.42 which was previously possible
gitlab #32
Change-Id: I1fd84ef25154f454efbff0b0195c447d90bd30fd
jsimomaa [Tue, 26 Feb 2019 21:45:19 +0000 (23:45 +0200)]
Expose transform of NetworkDrawingParticipant
* for programmatic vertex creation
gitlab #31
Change-Id: Ia2a337fb92dab169a5b2c74f13c93a88998f4617
Reino Ruusu [Fri, 22 Feb 2019 15:11:00 +0000 (17:11 +0200)]
Selection queries from explicit sets of elements.
gitlab #28
Change-Id: Iac2f3a51b66b37b4fbe04dc1f351327231ea00c7
Reino Ruusu [Fri, 22 Feb 2019 11:58:32 +0000 (13:58 +0200)]
Opening of diagram element query result in diagram view.
gitlab #28
Change-Id: Ibdecf9acc683bad6cd11161b50c99409581d4f46
Reino Ruusu [Fri, 22 Feb 2019 11:23:15 +0000 (13:23 +0200)]
Disable throttling for now, as it doens't work.
Also use setSynchronous() for diagram styles, as there is no
visualization for pending results.
gitlab #30
Change-Id: I53ce85ba6d81b69f41abe26930941f2bd9d610a1
Reino Ruusu [Wed, 20 Feb 2019 17:46:23 +0000 (19:46 +0200)]
Added symbol rendering for edges.
gitlab #27
Change-Id: I67e49bdec2f722121dd261c755ad7722469a3bc9
Reino Ruusu [Wed, 20 Feb 2019 17:38:20 +0000 (19:38 +0200)]
Value type of dynamic symbol function to Maybe String
Also add caching for symbol functions.
gitlab #27
Change-Id: I34ae22e6e1deae57bbf03ced6ba830c52ec74335
Reino Ruusu [Wed, 20 Feb 2019 17:28:38 +0000 (19:28 +0200)]
Generalization of mapped property accessors for other data types
gitlab #27
Change-Id: Id193ae3b4840a74710c6b86e32bfefd7e3fc3a17
Reino Ruusu [Mon, 18 Feb 2019 16:14:53 +0000 (18:14 +0200)]
Increase baseline size of vertices 10-fold to improve visibility.
gitlab #27
Change-Id: Iace3eaab32a06312e094d92b449a2780867fee2f
Reino Ruusu [Mon, 18 Feb 2019 11:10:43 +0000 (13:10 +0200)]
Flipped coordinate axes for network diagrams in import wizard.
gitlab #3
Change-Id: I36b5f67821079d91f7f75d3dc9bda79d83149c8e
jsimomaa [Tue, 19 Feb 2019 11:25:51 +0000 (13:25 +0200)]
First version of throttled profile results - configure via proeprty view
gitlab #30
Change-Id: Ie99ee4b3b83911646072d44757570b07f20c450d
jsimomaa [Mon, 18 Feb 2019 11:05:11 +0000 (13:05 +0200)]
Prevent selection of edge for route start and end points
gitlab #29
Change-Id: I43cfc51bd587e3784d5ec253add4ce742c253103
Reino Ruusu [Wed, 13 Feb 2019 08:36:02 +0000 (10:36 +0200)]
Refactoring of diagram element selection method to utils.
Change-Id: I568c2b93661eb7dab33c0e1e2966abac1183abde
Reino Ruusu [Fri, 1 Feb 2019 15:56:17 +0000 (17:56 +0200)]
UI for diagram element selection
gitlab #28
Change-Id: Id89372d9101dc7004b9b71b8ed6769b555b7b510
jsimomaa [Wed, 6 Feb 2019 08:51:16 +0000 (10:51 +0200)]
Remove dependency to org.simantics.db.testing
gitlab #28
Change-Id: Ic68c18ed39ed39d626a731dadfcfe705a2ef47cf
Reino Ruusu [Wed, 30 Jan 2019 14:33:06 +0000 (16:33 +0200)]
Bug fixes to element selection query processing
* Accept STR.Composite in addition to DIA.Diagram
* Fix error when selected element count in an NLowest or NHighest is
higher than the number of elements available
gitlab #28
TODO:
* UI for listing stored queries
* UI for defining/editing queries
* UI for executing queries
Change-Id: Ia88980863f4a64ec2c44df081596bb67417d298d
Reino Ruusu [Wed, 30 Jan 2019 14:20:28 +0000 (16:20 +0200)]
Management of mapped component properties in queries
gitlab #28
TODO:
* UI for listing stored queries
* UI for defining/editing queries
* UI for executing queries
Change-Id: Ie1c3892d77313c452560f7015b387825a9d34e9e
Reino Ruusu [Wed, 30 Jan 2019 13:34:26 +0000 (15:34 +0200)]
Implementation of non-UI parts of network element queries
gitlab #28
TODO:
* Management of mapped properties for map diagram elements
* UI for listing stored queries
* UI for defining/editing queries
* UI for executing queries
Change-Id: I5de84629ed75ce1ae48cd424dc872bb3456ec62b
jsimomaa [Thu, 24 Jan 2019 13:59:48 +0000 (15:59 +0200)]
Minor usability fixes for routing in district diagrams
gitlab #25
Change-Id: Ie5f87133f4602898377bf8c4b279c02d4cbec281
Reino Ruusu [Wed, 23 Jan 2019 10:05:02 +0000 (12:05 +0200)]
Dynamic vertex SVG symbol generation
gitlab #27
Change-Id: I7f01f451e7affd25d2c9e6e504f8242ce39caec2
Tuukka Lehtonen [Thu, 27 Dec 2018 09:51:59 +0000 (11:51 +0200)]
Start routing with 't' or 'T'
gitlab #25
Change-Id: Ib6c7597d5667173635da4217076ae51759520063
Tuukka Lehtonen [Thu, 27 Dec 2018 08:38:39 +0000 (10:38 +0200)]
Enable routing problem UI feedback for users
gitlab #25
Change-Id: I80f6bdb349ca44997d63882ef433813cf45c8504
Tuukka Lehtonen [Wed, 19 Dec 2018 10:11:29 +0000 (12:11 +0200)]
Removed unnecessary browse context include
The include broke Model Browser viewpoint by adding the standard
property browsing viewpoint to the effective model browser viewpoint.
gitlab #26
Change-Id: I0fbfd7ffaa34a50e283631d8514cdea4ceb852f4
Tuukka Lehtonen [Tue, 18 Dec 2018 12:36:45 +0000 (14:36 +0200)]
Improved Routes view functionality
Context menu now has:
* Select Route on Diagram (actually works now)
* Discard Route
* Rename Route
Route waypoint names are resolved properly already during creation and
show address if defined.
Route rename can also be initiated with F2 from the tree.
gitlab #25
Change-Id: If5edbe63032b2a5b42a616d4c058d2ea7f3a88c1
jsimomaa [Tue, 18 Dec 2018 06:13:00 +0000 (08:13 +0200)]
Trying to get map background coloring to work
gitlab #20
Change-Id: I6f4d3ff243784c33f8114990e27cdf83104909e3
jsimomaa [Mon, 17 Dec 2018 10:44:50 +0000 (12:44 +0200)]
Fix context menu for route view
gitlab #25
Change-Id: I3e7af22cc0775e3b98fc7a6864c26098f8a224c4
Tuukka Lehtonen [Mon, 17 Dec 2018 09:25:30 +0000 (11:25 +0200)]
Fixed NPE from Activator
gitlab #25
Change-Id: Ib4c2f6534ebdf09129f1491578f0d2df86e9b6cf
Tuukka Lehtonen [Sat, 15 Dec 2018 09:27:45 +0000 (11:27 +0200)]
Add org.simantics.district.route.feature to published P2 repository
gitlab #25
Change-Id: I6605ce0784622723fb0a94200e94be7600fcc8a7
Tuukka Lehtonen [Fri, 14 Dec 2018 22:13:25 +0000 (22:13 +0000)]
Merge "Initial version of the district network Routes view."
Tuukka Lehtonen [Fri, 14 Dec 2018 22:01:14 +0000 (00:01 +0200)]
Initial version of the district network Routes view.
The backend for the view is an OSGi service called RouteService which
defines an interface for managing routes. The backend handles database
writeback in the background. The UI only talks with the RouteService,
not the database.
Doesn't do much yet and nothing in the UI is finished yet. Just storing
initial work.
gitlab #25
Change-Id: Ifc79f7aebe943bdd5edae3a16052bf44ca3d3cbe
Tuukka Lehtonen [Fri, 14 Dec 2018 22:01:35 +0000 (22:01 +0000)]
Merge "Changed Network Properties selection view tab title to Input Data"
Tuukka Lehtonen [Fri, 14 Dec 2018 21:43:35 +0000 (23:43 +0200)]
Changed Network Properties selection view tab title to Input Data
gitlab #24
Change-Id: I062584e7ea52f533fe39679431cba8eec67b4f2a
jsimomaa [Thu, 13 Dec 2018 11:39:09 +0000 (13:39 +0200)]
Fix ChangeMappingTypeHandler to work only with selections of DN.Element
gitlab #22
Change-Id: If3e2e54df5980aa37a628da71c6167478c0be7b2
Tuukka Lehtonen [Mon, 10 Dec 2018 13:16:17 +0000 (15:16 +0200)]
Added new functions to Simantics/District
* possibleMappedComponent
* possibleDNElementMappedToComponent
* dnElementsMappedToComponents
gitlab #23
Change-Id: Ic6775beef2f6be30af655f4af243f1ee733b8842
jsimomaa [Fri, 7 Dec 2018 06:51:47 +0000 (08:51 +0200)]
Change mapping of elements, not the mapping itself
gitlab #22
Change-Id: I93210fdb5c66469c5eb40451435745f23528313f
jsimomaa [Wed, 5 Dec 2018 09:41:33 +0000 (11:41 +0200)]
Track changes control & split mapping to multiple diagrams control
gitlab #21
Change-Id: If516d580664ca4fa976f08cf1d4f3be1e973be2b
jsimomaa [Wed, 5 Dec 2018 09:04:53 +0000 (11:04 +0200)]
Use indexRoot directly for searching vertex/edge mappings
gitlab #19
Change-Id: I991bc43cd5f9654f90c7409224ecd069d216f27d
jsimomaa [Wed, 5 Dec 2018 09:03:09 +0000 (11:03 +0200)]
Change listening for district elements on network-diagram
gitlab #18
Change-Id: Iccb7ac53473f8981f36d66f1f3499afd2b1d415c
jsimomaa [Wed, 5 Dec 2018 09:32:00 +0000 (11:32 +0200)]
Change map background color in network diagram
gitlab #20
Change-Id: I4d81104cf61a99aeb4a02c9ade40337d253c6404
jsimomaa [Wed, 5 Dec 2018 09:01:24 +0000 (11:01 +0200)]
Use EPSG code instead of full WKT for creating CRS
gitlab #17
Change-Id: Ida549b67167259252f3fafd43dac03d3bc1ae116
Tuukka Lehtonen [Fri, 9 Nov 2018 08:52:38 +0000 (10:52 +0200)]
Added regions feature to repository
gitlab #14
(cherry picked from commit
822d56c9136c7866a3f6487493bfd11fe5022dbf )
Tuukka Lehtonen [Fri, 9 Nov 2018 08:52:38 +0000 (10:52 +0200)]
Added regions feature to repository
gitlab #14
Tuukka Lehtonen [Fri, 9 Nov 2018 08:48:39 +0000 (10:48 +0200)]
Added region bundles to tycho build
gitlab #14
(cherry picked from commit
69925558bf014de865292cc6a008c0263f4f4715 )
Tuukka Lehtonen [Fri, 9 Nov 2018 08:48:39 +0000 (10:48 +0200)]
Added region bundles to tycho build
gitlab #14
jsimomaa [Wed, 7 Nov 2018 09:18:54 +0000 (11:18 +0200)]
Fix variable exceptions for certain properties in district diagram
gitlab #16
Change-Id: I2fdcdeeb1c56122462862ddd1d056493842375fe
jsimomaa [Tue, 6 Nov 2018 08:03:04 +0000 (10:03 +0200)]
Enabling/Disabling map painting
gitlab #15
Change-Id: I034a334c4a47753342f9871ae68551ceda0b1d19
jsimomaa [Mon, 5 Nov 2018 14:07:02 +0000 (16:07 +0200)]
Add initial version of regions to source control
gitlab #14
Change-Id: I57884758ed59938fa61ef6e4139d9771183a7e21
(cherry picked from commit
48d9ed8412b4a8dc45dcd9db351923046de7fead )
jsimomaa [Wed, 7 Nov 2018 09:18:54 +0000 (11:18 +0200)]
Fix variable exceptions for certain properties in district diagram
gitlab #16
Change-Id: I2fdcdeeb1c56122462862ddd1d056493842375fe
jsimomaa [Tue, 6 Nov 2018 08:03:04 +0000 (10:03 +0200)]
Enabling/Disabling map painting
gitlab #15
Change-Id: I034a334c4a47753342f9871ae68551ceda0b1d19
jsimomaa [Mon, 5 Nov 2018 14:07:02 +0000 (16:07 +0200)]
Add initial version of regions to source control
gitlab #14
Change-Id: I57884758ed59938fa61ef6e4139d9771183a7e21
Tuukka Lehtonen [Sun, 21 Oct 2018 13:39:21 +0000 (16:39 +0300)]
Fixed regressions in box selection and element color function validation
* Edge element box selection didn't work because the contained picking
logic was not implemented properly in the edge element class.
* Element coloring brightness function validation did not set "graph"
key for SCLContext which caused compilation to fail occasionally which
broke the function evaluation.
* Fixed vertex selection visualization to stroke the edge of the normal
rendered rectangular shape which is much cleaner than the old default
selection visualization that was geometrically out of place for some
reason.
gitlab #2
Change-Id: Ib1f5e03a1eeb6101ffe0f527c5a54ece97e1ea8e
(cherry picked from commit
a4105d9cb79a428fbe3a4aa918fc6d1527f1988a )
Tuukka Lehtonen [Sun, 21 Oct 2018 13:39:21 +0000 (16:39 +0300)]
Fixed regressions in box selection and element color function validation
* Edge element box selection didn't work because the contained picking
logic was not implemented properly in the edge element class.
* Element coloring brightness function validation did not set "graph"
key for SCLContext which caused compilation to fail occasionally which
broke the function evaluation.
* Fixed vertex selection visualization to stroke the edge of the normal
rendered rectangular shape which is much cleaner than the old default
selection visualization that was geometrically out of place for some
reason.
gitlab #2
Change-Id: Ib1f5e03a1eeb6101ffe0f527c5a54ece97e1ea8e
Tuukka Lehtonen [Sun, 21 Oct 2018 07:41:19 +0000 (10:41 +0300)]
Make more discrete colors available to support more steep functions
gitlab #2
Change-Id: I45d82151557adab08c48dd858cc46f7c630d9826
(cherry picked from commit
03368dc8b2b09ef54172c8c9cc3724dc48f0d558 )
Tuukka Lehtonen [Sun, 21 Oct 2018 07:41:19 +0000 (10:41 +0300)]
Make more discrete colors available to support more steep functions
gitlab #2
Change-Id: I45d82151557adab08c48dd858cc46f7c630d9826
Tuukka Lehtonen [Sat, 20 Oct 2018 22:59:48 +0000 (01:59 +0300)]
First prototype of HSV color space based dynamic DN element coloring
Both VertexNode and EdgeNode support a new property 'dynamicColor' that
can be set to either a Color or null.
DN.Diagram has three new properties:
* Element Color Hue
* Element Color Saturation
* Element Color Brightness Function
where the first two are constants and the last one is a (Resource ->
<ReadGraph> Double) function that is expected to return a value in [0,1]
which is then used to get the final element color from the HSV gradient.
The Resource argument is the DN diagram element.
The function allows users to define any complex functions in SCLMain to
perform the evaluation for the DN element.
gitlab #2
Change-Id: Ia8dbe0df9400242670949da91e373d68cf7ff758
(cherry picked from commit
2cf7ae447c79df6240b67fd3ca4f0338bdae8c00 )
Tuukka Lehtonen [Sat, 20 Oct 2018 22:59:48 +0000 (01:59 +0300)]
First prototype of HSV color space based dynamic DN element coloring
Both VertexNode and EdgeNode support a new property 'dynamicColor' that
can be set to either a Color or null.
DN.Diagram has three new properties:
* Element Color Hue
* Element Color Saturation
* Element Color Brightness Function
where the first two are constants and the last one is a (Resource ->
<ReadGraph> Double) function that is expected to return a value in [0,1]
which is then used to get the final element color from the HSV gradient.
The Resource argument is the DN diagram element.
The function allows users to define any complex functions in SCLMain to
perform the evaluation for the DN element.
gitlab #2
Change-Id: Ia8dbe0df9400242670949da91e373d68cf7ff758
Tuukka Lehtonen [Fri, 19 Oct 2018 12:00:46 +0000 (15:00 +0300)]
Use DatabaseJob instead of Job to prevent UI from getting stuck
The breakdown calculation can take a long time, thus it is better to
reverse the database for that time so that the rest of the UI doesn't
start synchronously waiting for DB access.
gitlab #11
Change-Id: If4556559009ea8109b95cf6c12d7bae2243d59f3
(cherry picked from commit
15c720d419c1139942790dc12acb6936e75b1568 )
Tuukka Lehtonen [Fri, 19 Oct 2018 12:00:46 +0000 (15:00 +0300)]
Use DatabaseJob instead of Job to prevent UI from getting stuck
The breakdown calculation can take a long time, thus it is better to
reverse the database for that time so that the rest of the UI doesn't
start synchronously waiting for DB access.
gitlab #11
Change-Id: If4556559009ea8109b95cf6c12d7bae2243d59f3