Page 1 of 1

Custom scatter_shape

Posted: 18 Jul 2019, 16:17
by brunofelt
hello,
it's possible to create a custom scatter_shape? I'm using a custom UI plot and the simUI.addCurve function to create a curve, but in the scatter_shape of curve_options only allow to use some restricts shapes.
http://www.coppeliarobotics.com/helpFil ... tter_shape
I want to create a shape that can I pass the impression of angle, so for example instead of the curve_options to be called with the parameter "{scatter_shape=simUI.curve_scatter_shape.dot}"
I want to call with something like this {scatter_shape=create_custom_shape(angle)}.
Where create_custom_shape is a function that returns a scatter_shape.

Cheers

Re: Custom scatter_shape

Posted: 19 Jul 2019, 08:37
by fferri
CustomUI plugin does not support custom scatter shapes.

You need to modify the plugin to call void QCPScatterStyle::setCustomPath(const QPainterPath &customPath) or void QCPScatterStyle::setPixmap(const QPixmap &pixmap).