Hi!
I have a problem when I load the RoassalScalability package. I cannot open an easel
anymore.
If I define the following method:
ROViewStack>>viewDo: aBlock
views ifNil: [ ^ self ].
views do: [:v | aBlock value: v ].
Impressive, check this out:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| rawView view |
rawView := ROView new.
view := ROMondrianViewBuilder view: rawView.
"-------------"
"-------------"
view nodes: (1 to: 400000).
view gridLayout.
"-------------"
"-------------"
ROEaselMorphic new populateMenuOn: view.
view open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
It takes a couple of seconds to opening it, but it moves well!
400 000 elements. Wow...
Apparently, the examples are not visible anymore. Maybe something wrong with the
intersections? Do you consider children elements or something?
Cheers,
Alexandre
On Jul 2, 2013, at 10:28 AM, mathieubmddehouck(a)mailoo.org wrote:
The solution here is to draw only visible elements, we keep them in a list which is
regularly refreshed ( zoom, drag ...).
I have not yet measure the speed gain, but it is obvious.
The gain is during the visualization, not during the layouting.
MCHttpRepository
location: 'http://smalltalkhub.com/mc/MathieuDehouck/RoassalAlgorithm/main'
user: ''
password: ''
package: RoassalScalability
Regards
Mathieu
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.