Mikolaj Wielgus
7bcb3926d4
autorouter: put autorouter in new `Invoker` object for Command pattern
2024-05-13 03:20:57 +02:00
Mikolaj Wielgus
f893f73cd8
autorouter: autoroute only selected
2024-05-12 20:29:07 +02:00
Mikolaj Wielgus
a6fb1157e3
egui,tests: fix compilation errors
2024-05-12 01:57:40 +02:00
Mikolaj Wielgus
36bc606401
autorouter: fix off-by-one error when walking over ratlines
2024-05-11 05:00:53 +02:00
Mikolaj Wielgus
452bcaf09d
sdl2-demo: fix compilation errors
2024-05-10 23:01:42 +02:00
Mikolaj Wielgus
a5dcacdd69
egui: draw routing start and stop
2024-05-10 20:37:13 +02:00
Mikolaj Wielgus
91f9466d74
autorouter,router: route only single layer at a time
...
It makes no sense to route multiple layers at once until we implement
automatic via placement, which is going to take a lot of time.
2024-05-07 20:06:54 +02:00
Mikolaj Wielgus
4efc2d482b
egui: paint currently probed edges in bold yellow
2024-05-06 12:05:50 +02:00
Mikolaj Wielgus
eaecb99146
egui: draw the navmesh
...
This required some considerable rearrangements in `Router`.
2024-05-06 02:35:43 +02:00
Mikolaj Wielgus
b82f5417c3
egui: animate routing as it goes, show attempted traces
2024-05-05 12:55:08 +02:00
Mikolaj Wielgus
a2c8ae7e70
autorouter: put `Layout` in a mutex
2024-05-04 18:02:34 +02:00
Mikolaj Wielgus
ea854abfc7
Revert "egui: perform routing in separate thread or task"
...
This reverts commit 4144ee361f .
Instead of mutexing the autorouter, we'll mutex the layout.
2024-05-04 15:03:36 +02:00
Mikolaj Wielgus
4144ee361f
egui: perform routing in separate thread or task
2024-05-03 19:50:38 +02:00
Mikolaj Wielgus
531bc6d22c
autorouter: as a starter, route the endpoints of only the first ratline
2024-05-03 01:36:04 +02:00
Mikolaj Wielgus
9c332bdde3
egui: add "Autoroute" button
...
Not functional yet as I still haven't implemented
`Autorouter::autoroute()`
2024-05-02 18:53:43 +02:00
Mikolaj Wielgus
ea22ba705c
layout: create `Zone` struct for accessing zone properties
2024-05-01 20:57:49 +02:00
Mikolaj Wielgus
c74e69a5e9
autorouter: move ratsnest to `Autorouter`, move overlay to egui module
2024-04-27 01:12:01 +02:00
Mikolaj Wielgus
81f9f82f40
overlay: move overlay to new autorouter module
2024-04-26 02:34:25 +02:00
Mikolaj Wielgus
8d59242f3f
overlay,egui: impl. incomplete ratsnest generation and drawing
...
For now only doing Delaunay triangulation, then applying minimum
spanning tree (without properly working edge ordering yet).
2024-04-21 19:51:47 +02:00
Mikolaj Wielgus
8a6b0724e9
egui: highlight selected zones
2024-04-18 16:35:10 +02:00
Mikolaj Wielgus
43f1248a76
geometry: have a common `Shape` object for both primitives and compounds
2024-04-18 15:41:01 +02:00
Mikolaj Wielgus
f2569c5167
layout: alias `Node` to not require generic parameters
2024-04-17 21:06:55 +02:00
Mikolaj Wielgus
4a9322d694
overlay: new module, impl. basic mouse selection of primitives
...
Only check for intersection of the AABB as a starter.
2024-04-16 00:21:18 +00:00
Mikolaj Wielgus
9feb32955c
drawing,layout: move zones upwards, from drawing to layout
...
This generally largely drawings from groupings. We need this because it
will be easier to handle all groupings on the level of layout as
continents and bands, which are groupings too, are to be tracked there.
There's a lot of rough edges when it comes to typing and contracts.
2024-04-11 18:07:08 +00:00
Mikolaj Wielgus
6932a698f6
geometry: rename `Shape*` to `PrimitiveShape*`
2024-04-10 01:34:18 +00:00
Mikolaj Wielgus
2d5998547a
egui: paint zones (only convex ones work for now)
2024-04-08 21:52:15 +00:00
Mikolaj Wielgus
3a812d5621
geometry: implement incomplete interface for manipulation of groupings
2024-03-26 20:24:15 +00:00
Mikolaj Wielgus
ef823c1c27
board,layout: rename "layout" to "drawing", "board" to "layout"
2024-03-22 23:23:31 +00:00
Mikolaj Wielgus
74d10f4a9e
layout,sdl2-demo,egui: basic support for displaying two layers
2024-03-14 21:51:29 +00:00
Mikolaj Wielgus
d8e128e81a
egui: actually load and display the layout
2024-03-09 17:03:05 +00:00
Mikolaj Wielgus
8a56a16528
egui: implement zooming in/out to a point
2024-03-05 20:02:16 +00:00
Mikolaj Wielgus
4959f3512b
egui: implement moving the canvas horizontally and vertically
2024-03-05 18:51:17 +00:00
Mikolaj Wielgus
b43111030e
egui: implement basic interactive zooming
2024-03-05 12:56:44 +00:00
Mikolaj Wielgus
e50fb26bdd
egui: make the WASM port actually work
2024-03-02 16:09:01 +00:00
Mikolaj Wielgus
fd4eb0b4dd
egui: implement basic input file selection from dialog
...
Imported layout is not displayed yet.
2024-03-02 06:54:12 +00:00
Mikolaj Wielgus
08c03a0e77
egui: implement painting of shapes
2024-02-21 16:29:58 +00:00
Mikolaj Wielgus
f10f7b7ab4
cargo: rename topola-gui to topola-egui, minor refactoring
2024-02-20 04:18:19 +00:00