You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in modifying the style of vertices drawn in the vertices mode. What about adding the following methods to geometry_renderer.h? The setVertexShape would take a path (see #31), working similarly to ipe markers, though the stroke width is not "hardcoded" but instead can be controlled via setVertexStroke.
We could add predefined vertex shapes like the ones available in ipe (disks, squares, triangles...).
/// Sets the vertex stroke style.virtualvoidsetVertexStroke(Color color, double width) = 0;
/// Sets the vertex fill color.virtualvoidsetVertexFill(Color color) = 0;
/// Sets the vertex size.virtualvoidsetVertexSize(double size) = 0;
/// Sets the vertex shape.virtualvoidsetVertexShape(Path path) = 0;
The Qt renderer could simply draw the path with appropriate styling and size, and for ipe we could export a symbol matching the set style. Thoughts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am interested in modifying the style of vertices drawn in the vertices mode. What about adding the following methods to
geometry_renderer.h
? The setVertexShape would take a path (see #31), working similarly to ipe markers, though the stroke width is not "hardcoded" but instead can be controlled via setVertexStroke.We could add predefined vertex shapes like the ones available in ipe (disks, squares, triangles...).
The Qt renderer could simply draw the path with appropriate styling and size, and for ipe we could export a symbol matching the set style. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions