voyager-lcd: Linux & Windows utility for Voyager display conversion to hexadecimal
|
04-24-2023, 08:21 AM
Post: #12
|
|||
|
|||
RE: voyager-lcd: Linux & Windows utility for Voyager display conversion to hexadec...
(03-28-2023 02:18 PM)Mark H. Shin Wrote: I have attached SVG files for Voyager LCD segments & annunciators. Some scaling will be required. I started looking at those, and I think they should work pretty well in my programs. With an environment that allows manipulating the DOM, it would be easier, but Qt doesnt have that. However QSVGRenderer does allow selecting a single element by the id attribute and rendering only that, so I'll just have to load up a separate QtRenderer for each segment, and then render that segment or not. Or else I could parse the paths myself and turn them each into a QGraphicsPathItem. That would probably be more efficient, but I'd have to write the path parser. Fortunately the Qt painter class used to construct a QGraphicsPathItem has suitable primitives for all SVG path items, including cubic and quadratic Bezier curves, though to a first glance it appears that your SVG paths don't use fancy stuff like that. It's interesting that the battery annunciator is not a single closed path. If I add class="cls-2" to the battery annunciator paths, and change the cls-2 style to fill with black, the other annunciators fill, but the battery annunciator does not. This seems mysterious, but I don't know much about SVG. I currently don't use the battery annunciator in my Voyager pograms, but I might use it in the future for simulating the ARM-based hardware, which has the battery annunciator under software control (unlike the pre-ARM Voyager hardware). |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)