Image Region - ⛔ Extends SMath Studio with an Image Region. - Mensajes
Updated. Check SS-97: Maxima Draw: Update of png images fails now (Kay, Davide thanks). Hope this helps.
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Davide Carpi 22/4/2014 3:25:00
Thanks a lot, uni.
The file locking problem is solved.
Still there is a timing problem now. If it takes too long for Maxima to produce the image, then the image region does not find it or uses an existing old version.
For complex images, this renders the temporary image storage in the Maxima plugin dir useless, because the name is changed everytime the image is written.
In the attached example, you can try that.
If the name parameter is set to "mpc" (anything without name extension produces svg output) or "mpc.png", then a png- or svg file is created (as can be seen in the file manager). However, it is not displayed unless the sheet is re-calculated. If recalculation is triggered by selecting materials in the (now correctly storing settings) checkboxlist region, then the old image is displayed.
If the name argument is completely removed, then temporary names are used and nothing is displayed at all.
I see two ways to avoid this problem:
a) Maxima has to wait until the image file is written and only then return control to SMath (sounds like a slow down)
b ) The image region has to check on a regular basis if the file has changed. I don't know if that is possible.
EDIT: filed as issue SS-124
Werkstoffdiagramme png.zip (50,47 KiB) descargado 540 vez(es).
The file locking problem is solved.
Still there is a timing problem now. If it takes too long for Maxima to produce the image, then the image region does not find it or uses an existing old version.
For complex images, this renders the temporary image storage in the Maxima plugin dir useless, because the name is changed everytime the image is written.
In the attached example, you can try that.
If the name parameter is set to "mpc" (anything without name extension produces svg output) or "mpc.png", then a png- or svg file is created (as can be seen in the file manager). However, it is not displayed unless the sheet is re-calculated. If recalculation is triggered by selecting materials in the (now correctly storing settings) checkboxlist region, then the old image is displayed.
If the name argument is completely removed, then temporary names are used and nothing is displayed at all.
I see two ways to avoid this problem:
a) Maxima has to wait until the image file is written and only then return control to SMath (sounds like a slow down)
b ) The image region has to check on a regular basis if the file has changed. I don't know if that is possible.
EDIT: filed as issue SS-124
Werkstoffdiagramme png.zip (50,47 KiB) descargado 540 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
Plugin updated.
Changes:
- SS-179 border on/off now saved correctly
- SS-161 loss of edited image contents avoided by more careful temp dir cleanup.
Changes:
- SS-179 border on/off now saved correctly
- SS-161 loss of edited image contents avoided by more careful temp dir cleanup.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
- Nuevos mensajes
- Sin mensajes nuevos