Re: Graph Type Rendering Updates (Graph UI)
Posted by Sven Gothel on Mar 28, 2023; 10:54am
URL: https://forum.jogamp.org/Graph-Type-Rendering-Updates-Graph-UI-tp4042173p4042350.html
From demo to proper code ;-)
Well, fixed the PIA setTransform(..) and it is what it is,
always quite sensitive when using the matrix for everything including zoom.
Plain and stupid basic stuff, I know.
+++
The label (multiline text) needed to have origin 0/0 to work well w/
the build-in drag-zoom, all Shapes need.
OK, decoupled Shape from GraphShape, allowing non-graph stuff to be placed as well.
This also simplifies review, since Shape only contains the usual stuff (simple scenegraph if you must call it)
- lifecycle and locking/sync
- matrix ops
GraphShape details the Graph GLRegion handling.
Hence we can have a container of shapes in this regard, yes
- see it as a scenegraph node w/ build-in transformation node :)
Still, trying to keep it simple (KISS).
++++
All of the above was 'triggered' by the need to have a transformable container,
maybe having Graph Glyph's from a text to do something (type animation).
Now it can be used for anything.
So besides wasting my time with acquisition and paperwork,
I shall complete this container as well, then test on Raspi again.
Sort of a first finishing line.