Hi all,
as you in this video, I was able to use Roassal to visualize a
multi-agent simulation in a grid.
https://www.youtube.com/watch?v=EXvsdL5sTRw
Now I would like to do animate the simulation without using I/O from user.
I try to use the VIVA framework without any success ...
Basically, I'm doing one step of the model, modify the elements of the
view and do a signalUpdate on the view.
|choosenModel aModel nbSteps |
choosenModel := ECEC.
nbSteps := 200.
aModel := choosenModel initialize;new.
aModel initSimulation.
v := RTView new.
b := RTMenuBuilder new view:v.
n := (RTMultiLinearColor new) colors: (ColorPalette sequential colors:
9 scheme: 'Greens').
c := n
command: [:cells| (cells biomass)/10.0.].
b menu: 'step' background: Color red callback:[
|es|
aModel runStep.
v removeAllElements.
es := (RTBox new color: c; size: 25) elementsOn: aModel theVegetationUnits.
v addAll: es.
RTGridLayout new
gapSize:0;
lineItemsCount: aModel spaceModel column;
on: v elements.
v signalUpdate.
].
v
Any hints ?
--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/
~~~~~~~~~~~~~~~~
RTAbstractLineLayout>>gapSize: aNumber
gapSize := aNumber. " This value is never used actually "
verticalGap := 2 * aNumber.
horizontalGap := 2 * aNumber
~~~~~~~~~~~~~~~~
What is the reasoning behind doubling the number?
My expectation would be that it should be the same.
Thanks,
Peter
Dear Colleagues and Friends,
We are happy to announce we will organize a CampSmalltalk about the Roassal visualization engine, on _Sunday 12 July_.
As far as we have seen, the interests are multiple. Here is a list of topics we will happy to work on:
- Port of Roassal on VisualWorks
- Using Roassal on Gemstone
- HTML/JavaScript export
- Improving Grapher, our charting library
If you wish to participate, get in touch with us. Since we will probably have a sponsoring of the event, it would be nice to know how many will attend to ease the logistic and the pizza ordering :-)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
We are happy to announce version 5.1 of the Moose Suite:
*http://moosetechnology.org/#install*
[image: Inline image 1]
Description
---
This is a minor release. The key highlights are:
- It is based on Pharo 4.0.
- Roassal2 comes with several new builder, most notably the new Mondrian
builder (RTMondrian) and the chart drawing engine (RTGrapher).
- GTSpotter has preview abilities and was extended for multiple search use
cases including the navigation through Moose models.
- GTPlayground was extended with sharing possibilities and transparent
backup.
- GTExample now offers support for documenting classes with example
instances.
- Moose Finder and GTInspector come with more custom presentations.
- PetitParser has seen performance corrections and has been extended with
the ability to parse whitespace languages.
Installation
---
The Moose Suite 5.1 comes for each platform as a separate bundle:
- Moose Suite 5.1 for Mac
http://moosetechnology.org/res/download/moose_suite_5_1-mac.zip
- Moose Suite 5.1 for Windows
http://moosetechnology.org/res/download/moose_suite_5_1-win.zip
- Moose Suite 5.1 for Linux
http://moosetechnology.org/res/download/moose_suite_5_1-linux.zip
The Moose Suite 5.1 can also be loaded in a Pharo 4.0 image either from the
Configuration Browser, or by executing the following script:
Gofer new
smalltalkhubUser: 'Moose' project: 'Moose';
configuration;
loadStable
Enjoy,
The Moose team
> On 04 Jun 2015, at 10:07, Aliaksei Syrel <alex.syrel(a)gmail.com> wrote:
>
> Juhuuuuu, thanks Doru! :)
> Congratulations, Moose!
+100
> Cheers,
> Alex
> On Jun 4, 2015 9:17 AM, "Tudor Girba" <tudor(a)tudorgirba.com> wrote:
> We are happy to announce version 5.1 of the Moose Suite:
> *http://moosetechnology.org/#install*
>
> <moose-5-1.png>
>
> Description
> ---
> This is a minor release. The key highlights are:
> - It is based on Pharo 4.0.
> - Roassal2 comes with several new builder, most notably the new Mondrian builder (RTMondrian) and the chart drawing engine (RTGrapher).
> - GTSpotter has preview abilities and was extended for multiple search use cases including the navigation through Moose models.
> - GTPlayground was extended with sharing possibilities and transparent backup.
> - GTExample now offers support for documenting classes with example instances.
> - Moose Finder and GTInspector come with more custom presentations.
> - PetitParser has seen performance corrections and has been extended with the ability to parse whitespace languages.
>
>
> Installation
> ---
> The Moose Suite 5.1 comes for each platform as a separate bundle:
> - Moose Suite 5.1 for Mac
> http://moosetechnology.org/res/download/moose_suite_5_1-mac.zip
> - Moose Suite 5.1 for Windows
> http://moosetechnology.org/res/download/moose_suite_5_1-win.zip
> - Moose Suite 5.1 for Linux
> http://moosetechnology.org/res/download/moose_suite_5_1-linux.zip
>
> The Moose Suite 5.1 can also be loaded in a Pharo 4.0 image either from the Configuration Browser, or by executing the following script:
>
> Gofer new
> smalltalkhubUser: 'Moose' project: 'Moose';
> configuration;
> loadStable
>
>
> Enjoy,
> The Moose team
>
Hello.
I played with Force based layout and noticed that in some cases you can get infinite recursion.
If you call method #withAll:origin:corner:
from RTQuarTree class with parameters
origin = (3.258667150078313e13(a)5.406136133593736e12)
corner = (3.258667150079787e13(a)5.40613613360932e12)
you would get
dx := corner x - origin x = 14.7421875
dy := corner y - origin y = 15.583984375
So, in this case you will execute the case
dy > dx ifTrue: [ ^ self withAll: aNodeCollection origin: origin corner: (origin x + dy) @ corner y ]
and you will get infinite recursion, because always dy will be =15.583984375 and dx = 15.58203125.
Best regards,
Natalia
Is there a way to specify that a presentation should only be used if a
certain condition is met? The use case I have in mind is adding the Magritte
presentation to object, but only showing if the object has a Magritte
description. It is a PITA to have to copy/paste the presentation method into
every Magritte-described object...
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/GT-Presentation-Show-Conditionally-tp4829638.html
Sent from the Moose mailing list archive at Nabble.com.
Dear all,
I have some problems when building a Glamour interface.
The + icon appear on MOOSE 5.0 but no more on 5.1
I'm sending the following to a tree instance.
act: [ :b | self addSpatialEntityClass. b update ]
icon: GLMUIThemeExtraIcons glamorousAdd
entitled: 'Add a spatial entity class'.
Any hints ?
--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/