Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new. [el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open. ===
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com:
Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new. [el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com:
Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hum, I will check this class.
Another question: I build 3 views in 3 different methods. Now, I want to add these view in 1 view.
I tried to add them as: == viewAll add: self view1 viewAll add: self view2 viewAll add: self view3 === But it does not work. A RTView does not accept another RTView. What is the way to do that ?
Jannik
2014-10-24 15:59 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new. [el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com:
Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method), or alternatively you could iterate over all elements and edges in one view and add them to another. But the first option would be easier.
Peter
On Fri, Oct 24, 2014 at 4:07 PM, jannik laval jannik.laval@gmail.com wrote:
Hum, I will check this class.
Another question: I build 3 views in 3 different methods. Now, I want to add these view in 1 view.
I tried to add them as:
viewAll add: self view1 viewAll add: self view2 viewAll add: self view3 === But it does not work. A RTView does not accept another RTView. What is the way to do that ?
Jannik
2014-10-24 15:59 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new. [el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com:
Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
How did you do that ?
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method), or alternatively you could iterate over all elements and edges in one view and add them to another. But the first option would be easier.
Peter
On Fri, Oct 24, 2014 at 4:07 PM, jannik laval jannik.laval@gmail.com wrote:
Hum, I will check this class.
Another question: I build 3 views in 3 different methods. Now, I want to add these view in 1 view.
I tried to add them as:
viewAll add: self view1 viewAll add: self view2 viewAll add: self view3 === But it does not work. A RTView does not accept another RTView. What is the way to do that ?
Jannik
2014-10-24 15:59 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new. [el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com:
Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Just to let you know, you can compose visualization on a unique view. For example: RTComposerExample new exampleClassAnalysis3
As Peter said, having one unique view is the way to go. But if you prefer otherwise, no problem at all.
Cheers, Alexandre
On Oct 24, 2014, at 11:31 AM, jannik laval jannik.laval@gmail.com wrote:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
How did you do that ?
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method), or alternatively you could iterate over all elements and edges in one view and add them to another. But the first option would be easier.
Peter
On Fri, Oct 24, 2014 at 4:07 PM, jannik laval jannik.laval@gmail.com wrote: Hum, I will check this class.
Another question: I build 3 views in 3 different methods. Now, I want to add these view in 1 view.
I tried to add them as:
viewAll add: self view1 viewAll add: self view2 viewAll add: self view3 === But it does not work. A RTView does not accept another RTView. What is the way to do that ?
Jannik
2014-10-24 15:59 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote: Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new.
[el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com: Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
My point is that I want to do a board with multiple views. I saw that in
the Roassal example pane. If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
can you give an example? Does that mean all builders have a view: method
(or is that renderIn:?). I'm interested because I'd like to mix builders. The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that
in the Roassal example pane. If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
I think it is a RTView with RTBimapShape(s) inside.
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders. The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Cool. I made a subclass of RTView for my needs, and this means I can use any builder on it :)
Thierry
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier < thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Why did you create a subclass of RTView? What is missing in RTView that you need to subclass it?
Cheers, Alexandre
On Oct 24, 2014, at 12:21 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
I think it is a RTView with RTBimapShape(s) inside.
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Cool. I made a subclass of RTView for my needs, and this means I can use any builder on it :)
Thierry
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Le 28/10/2014 13:22, Alexandre Bergel a écrit :
Why did you create a subclass of RTView? What is missing in RTView that you need to subclass it?
I was trying to have a fixed shape as a background of normal shapes. So I tried to change the way fixed shapes were handled with a RTView subclass. Then I subclassed Canvas, Camera, TRMorph, and RTPopup, and...
and then I gave up... :(
Now, I have a better understanding of how Roassal works ;)
Thierry
Cheers, Alexandre
On Oct 24, 2014, at 12:21 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
I think it is a RTView with RTBimapShape(s) inside.
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Cool. I made a subclass of RTView for my needs, and this means I can use any builder on it :)
Thierry
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
"have a fixed shape as a background of normal shapes” What do you mean exactly?
Cheers, Alexandre
On Oct 28, 2014, at 9:38 AM, Thierry Goubier thierry.goubier@gmail.com wrote:
Le 28/10/2014 13:22, Alexandre Bergel a écrit :
Why did you create a subclass of RTView? What is missing in RTView that you need to subclass it?
I was trying to have a fixed shape as a background of normal shapes. So I tried to change the way fixed shapes were handled with a RTView subclass. Then I subclassed Canvas, Camera, TRMorph, and RTPopup, and...
and then I gave up... :(
Now, I have a better understanding of how Roassal works ;)
Thierry
Cheers, Alexandre
On Oct 24, 2014, at 12:21 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
I think it is a RTView with RTBimapShape(s) inside.
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Cool. I made a subclass of RTView for my needs, and this means I can use any builder on it :)
Thierry
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Le 28/10/2014 13:52, Alexandre Bergel a écrit :
"have a fixed shape as a background of normal shapes” What do you mean exactly?
You'll have to wait for a demo of the screenshots I sent you :)
Thierry
Cheers, Alexandre
On Oct 28, 2014, at 9:38 AM, Thierry Goubier thierry.goubier@gmail.com wrote:
Le 28/10/2014 13:22, Alexandre Bergel a écrit :
Why did you create a subclass of RTView? What is missing in RTView that you need to subclass it?
I was trying to have a fixed shape as a background of normal shapes. So I tried to change the way fixed shapes were handled with a RTView subclass. Then I subclassed Canvas, Camera, TRMorph, and RTPopup, and...
and then I gave up... :(
Now, I have a better understanding of how Roassal works ;)
Thierry
Cheers, Alexandre
On Oct 24, 2014, at 12:21 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
I think it is a RTView with RTBimapShape(s) inside.
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Cool. I made a subclass of RTView for my needs, and this means I can use any builder on it :)
Thierry
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that
in the Roassal example pane. If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders. The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier < thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
There is a chapter on builders: https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201...
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Thank you Alex,
I will check all of that.
Jannik
2014-10-28 13:23 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
There is a chapter on builders:
https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201...
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com
wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that
in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just
regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified
the builder will create its own view.
I don't know if this is the intended way, but that's how I use it and it
seems to work. :)
Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier <
thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use
the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method
(or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Ok, let us know!
Alexandre
Hi Alex,
So I tried again but I have problems. Here is a sample code I made:
=== | view el shape| view := RTView new. [ el := RTElement forCollection: #(1 2 3). shape := RTMultiCompositeShape new add: (RTEllipse new color: Color blue; size: 20); add: (RTLabel new); horizontal; yourself. el do:[:e | e @ RTDraggable; + shape. ]. view elements do:[:e | view removeElement: e]. view addAll: el. RTGridLayout new on: el. view signalUpdate. ] valueWithInterval: 1second. view open ===
This code update the view every seconds, because the collection is changing regularly.
Now, I tried to use a builder to make similar behavior but it has not the right behavior: the shapes are not well placed, and when I place the mouse on a shape, it raises an error. Here is the code:
=== | c b | c := RTComposer new. b := RTGraphBuilder new. b view: c view. [ b nodes color: Color blue. b layout circle. b cleanView. b addAll: #(1 2 3). b build ] valueWithInterval: 1second. c group. c layout: RTVerticalLineLayout new. c open. ===
So, what is your point of view ? What can I improve and how ? Is any guy of Roassal team coming at Smalltalks 2014 ? I will be at Cordoba and I would like to peer-program with someone who knows well Roassal.
Jannik
2014-10-29 16:25 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok, let us know!
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 11:19 AM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex,
I will check all of that.
Jannik
2014-10-28 13:23 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
There is a chapter on builders:
https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201...
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com
wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw that
in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just
regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not
specified the builder will create its own view.
I don't know if this is the intended way, but that's how I use it and
it seems to work. :)
Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier <
thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use
the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Jannik,
You should never use valueWithInterval: This methods creates threads, and threads are evil.
If you update Roassal, you will see I’ve added a new class for you, RTActiveAnimation. You can try this: -=-=-=-=-=-=-=-= v := RTView new. element := RTLabel elementOn: '0'. v add: element. value := 0. RTActiveAnimation new inView: v; blockToExecute: [ value := value + 1. element trachelShape text: value asString. ]. v -=-=-=-=-=-=-=-=
Naturally, RTActiveAnimation may need to have some time delay. Does it make sense?
Alexandre
Thank you Alex, I will try that ! I will need a time delay because my collection of nodes comes from an OSProcess call.
Jannik
2014-10-29 19:38 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Hi Jannik,
You should never use valueWithInterval: This methods creates threads, and threads are evil.
If you update Roassal, you will see I’ve added a new class for you, RTActiveAnimation. You can try this: -=-=-=-=-=-=-=-= v := RTView new. element := RTLabel elementOn: '0'. v add: element. value := 0. RTActiveAnimation new inView: v; blockToExecute: [ value := value + 1. element trachelShape text: value asString. ]. v -=-=-=-=-=-=-=-=
Naturally, RTActiveAnimation may need to have some time delay. Does it make sense?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 1:09 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
So I tried again but I have problems. Here is a sample code I made:
=== | view el shape| view := RTView new. [ el := RTElement forCollection: #(1 2 3). shape := RTMultiCompositeShape new add: (RTEllipse new color: Color blue; size: 20); add: (RTLabel new); horizontal; yourself. el do:[:e | e @ RTDraggable;
- shape.
]. view elements do:[:e | view removeElement: e]. view addAll: el. RTGridLayout new on: el. view signalUpdate. ] valueWithInterval: 1second. view open ===
This code update the view every seconds, because the collection is changing regularly.
Now, I tried to use a builder to make similar behavior but it has not the right behavior: the shapes are not well placed, and when I place the mouse on a shape, it raises an error. Here is the code:
=== | c b | c := RTComposer new. b := RTGraphBuilder new. b view: c view. [ b nodes color: Color blue. b layout circle. b cleanView. b addAll: #(1 2 3). b build ] valueWithInterval: 1second. c group. c layout: RTVerticalLineLayout new. c open. ===
So, what is your point of view ? What can I improve and how ? Is any guy of Roassal team coming at Smalltalks 2014 ? I will be at Cordoba and I would like to peer-program with someone who knows well Roassal.
Jannik
2014-10-29 16:25 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok, let us know!
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 11:19 AM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex,
I will check all of that.
Jannik
2014-10-28 13:23 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
There is a chapter on builders:
https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201...
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com
wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw
that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just
regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not
specified the builder will create its own view.
I don't know if this is the intended way, but that's how I use it and
it seems to work. :)
Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier <
thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use
the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Ok. Give a try to modify RTActiveAnimation. This is rather easy to do.
Alexandre
Hi Alex,
This is really cool to have that. I will use it for multiple cases.
But in the case I have, I would refresh all the view, because I am not sure of the number of nodes I have (it is given by the OSProcess). It means that the line "v add: element" should be in the blockToExecute:, but it means that I need to remove other elements.
Anther question: what is the method trachelShape ? Does it make sense to invoke trachel methods inside a Roassal script ?
Thank you again. Jannik
2014-10-29 19:54 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok. Give a try to modify RTActiveAnimation. This is rather easy to do.
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 3:49 PM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex, I will try that ! I will need a time delay because my collection of nodes comes from an OSProcess call.
Jannik
2014-10-29 19:38 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Hi Jannik,
You should never use valueWithInterval: This methods creates threads, and threads are evil.
If you update Roassal, you will see I’ve added a new class for you, RTActiveAnimation. You can try this: -=-=-=-=-=-=-=-= v := RTView new. element := RTLabel elementOn: '0'. v add: element. value := 0. RTActiveAnimation new inView: v; blockToExecute: [ value := value + 1. element trachelShape text: value asString. ]. v -=-=-=-=-=-=-=-=
Naturally, RTActiveAnimation may need to have some time delay. Does it make sense?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 1:09 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
So I tried again but I have problems. Here is a sample code I made:
=== | view el shape| view := RTView new. [ el := RTElement forCollection: #(1 2 3). shape := RTMultiCompositeShape new add: (RTEllipse new color: Color blue; size: 20); add: (RTLabel new); horizontal; yourself. el do:[:e | e @ RTDraggable;
- shape.
]. view elements do:[:e | view removeElement: e]. view addAll: el. RTGridLayout new on: el. view signalUpdate. ] valueWithInterval: 1second. view open ===
This code update the view every seconds, because the collection is changing regularly.
Now, I tried to use a builder to make similar behavior but it has not the right behavior: the shapes are not well placed, and when I place the mouse on a shape, it raises an error. Here is the code:
=== | c b | c := RTComposer new. b := RTGraphBuilder new. b view: c view. [ b nodes color: Color blue. b layout circle. b cleanView. b addAll: #(1 2 3). b build ] valueWithInterval: 1second. c group. c layout: RTVerticalLineLayout new. c open. ===
So, what is your point of view ? What can I improve and how ? Is any guy of Roassal team coming at Smalltalks 2014 ? I will be at Cordoba and I would like to peer-program with someone who knows well Roassal.
Jannik
2014-10-29 16:25 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok, let us know!
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 11:19 AM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex,
I will check all of that.
Jannik
2014-10-28 13:23 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
There is a chapter on builders:
https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201...
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com
wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com:
My point is that I want to do a board with multiple views. I saw
that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just
regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not
specified the builder will create its own view.
I don't know if this is the intended way, but that's how I use it and
it seems to work. :)
Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier <
thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either
use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
This is really cool to have that. I will use it for multiple cases.
Ok!
But in the case I have, I would refresh all the view, because I am not sure of the number of nodes I have (it is given by the OSProcess). It means that the line "v add: element" should be in the blockToExecute:, but it means that I need to remove other elements.
It should not be a problem at all I think.
Anther question: what is the method trachelShape ? Does it make sense to invoke trachel methods inside a Roassal script ?
#trachelShape returns a Trachel shape. I use it to modify some properties of the visual element (e.g., the displayed string in my example). If you are simply focusing on adding and removing elements, you do not need to care about trachel shape.
Let us know!
Cheers, Alexandre
Thank you again. Jannik
2014-10-29 19:54 GMT+01:00 Alexandre Bergel <alexandre.bergel@me.com mailto:alexandre.bergel@me.com>: Ok. Give a try to modify RTActiveAnimation. This is rather easy to do.
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 3:49 PM, jannik laval <jannik.laval@gmail.com mailto:jannik.laval@gmail.com> wrote:
Thank you Alex, I will try that ! I will need a time delay because my collection of nodes comes from an OSProcess call.
Jannik
2014-10-29 19:38 GMT+01:00 Alexandre Bergel <alexandre.bergel@me.com mailto:alexandre.bergel@me.com>: Hi Jannik,
You should never use valueWithInterval: This methods creates threads, and threads are evil.
If you update Roassal, you will see I’ve added a new class for you, RTActiveAnimation. You can try this:
v := RTView new. element := RTLabel elementOn: '0'. v add: element. value := 0. RTActiveAnimation new inView: v; blockToExecute: [ value := value + 1. element trachelShape text: value asString. ]. v -=-=-=-=-=-=-=-=
Naturally, RTActiveAnimation may need to have some time delay. Does it make sense?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 1:09 PM, jannik laval <jannik.laval@gmail.com mailto:jannik.laval@gmail.com> wrote:
Hi Alex,
So I tried again but I have problems. Here is a sample code I made:
=== | view el shape| view := RTView new. [ el := RTElement forCollection: #(1 2 3). shape := RTMultiCompositeShape new add: (RTEllipse new color: Color blue; size: 20); add: (RTLabel new); horizontal; yourself. el do:[:e | e @ RTDraggable; + shape. ]. view elements do:[:e | view removeElement: e]. view addAll: el. RTGridLayout new on: el. view signalUpdate. ] valueWithInterval: 1second. view open ===
This code update the view every seconds, because the collection is changing regularly.
Now, I tried to use a builder to make similar behavior but it has not the right behavior: the shapes are not well placed, and when I place the mouse on a shape, it raises an error. Here is the code:
=== | c b | c := RTComposer new. b := RTGraphBuilder new. b view: c view. [ b nodes color: Color blue. b layout circle. b cleanView. b addAll: #(1 2 3). b build ] valueWithInterval: 1second. c group. c layout: RTVerticalLineLayout new. c open. ===
So, what is your point of view ? What can I improve and how ? Is any guy of Roassal team coming at Smalltalks 2014 ? I will be at Cordoba and I would like to peer-program with someone who knows well Roassal.
Jannik
2014-10-29 16:25 GMT+01:00 Alexandre Bergel <alexandre.bergel@me.com mailto:alexandre.bergel@me.com>: Ok, let us know!
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 11:19 AM, jannik laval <jannik.laval@gmail.com mailto:jannik.laval@gmail.com> wrote:
Thank you Alex,
I will check all of that.
Jannik
2014-10-28 13:23 GMT+01:00 Alexandre Bergel <alexandre.bergel@me.com mailto:alexandre.bergel@me.com>: There is a chapter on builders: https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201... https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201-Builders.html
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval <jannik.laval@gmail.com mailto:jannik.laval@gmail.com> wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák <i.uhnak@gmail.com mailto:i.uhnak@gmail.com>:
My point is that I want to do a board with multiple views. I saw that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. I don't know if this is the intended way, but that's how I use it and it seems to work. :) Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier <thierry.goubier@gmail.com mailto:thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák <i.uhnak@gmail.com mailto:i.uhnak@gmail.com>: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.jannik-laval.eu/ http://www.phratch.com http://www.phratch.com/ http://www.approchealpes.info http://www.approchealpes.info/ http://car.mines-douai.fr/ http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.jannik-laval.eu/ http://www.phratch.com http://www.phratch.com/ http://www.approchealpes.info http://www.approchealpes.info/ http://car.mines-douai.fr/ http://car.mines-douai.fr/_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.jannik-laval.eu/ http://www.phratch.com http://www.phratch.com/ http://www.approchealpes.info http://www.approchealpes.info/ http://car.mines-douai.fr/ http://car.mines-douai.fr/_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.jannik-laval.eu/ http://www.phratch.com http://www.phratch.com/ http://www.approchealpes.info http://www.approchealpes.info/ http://car.mines-douai.fr/ http://car.mines-douai.fr/_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.jannik-laval.eu/ http://www.phratch.com http://www.phratch.com/ http://www.approchealpes.info http://www.approchealpes.info/ http://car.mines-douai.fr/ http://car.mines-douai.fr/_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Ok, thank you Alex,
I understand better how it works.
Jannik
2014-10-30 14:51 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
This is really cool to have that. I will use it for multiple cases.
Ok!
But in the case I have, I would refresh all the view, because I am not sure of the number of nodes I have (it is given by the OSProcess). It means that the line "v add: element" should be in the blockToExecute:, but it means that I need to remove other elements.
It should not be a problem at all I think.
Anther question: what is the method trachelShape ? Does it make sense to invoke trachel methods inside a Roassal script ?
#trachelShape returns a Trachel shape. I use it to modify some properties of the visual element (e.g., the displayed string in my example). If you are simply focusing on adding and removing elements, you do not need to care about trachel shape.
Let us know!
Cheers, Alexandre
Thank you again. Jannik
2014-10-29 19:54 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok. Give a try to modify RTActiveAnimation. This is rather easy to do.
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 3:49 PM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex, I will try that ! I will need a time delay because my collection of nodes comes from an OSProcess call.
Jannik
2014-10-29 19:38 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Hi Jannik,
You should never use valueWithInterval: This methods creates threads, and threads are evil.
If you update Roassal, you will see I’ve added a new class for you, RTActiveAnimation. You can try this: -=-=-=-=-=-=-=-= v := RTView new. element := RTLabel elementOn: '0'. v add: element. value := 0. RTActiveAnimation new inView: v; blockToExecute: [ value := value + 1. element trachelShape text: value asString. ]. v -=-=-=-=-=-=-=-=
Naturally, RTActiveAnimation may need to have some time delay. Does it make sense?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 1:09 PM, jannik laval jannik.laval@gmail.com wrote:
Hi Alex,
So I tried again but I have problems. Here is a sample code I made:
=== | view el shape| view := RTView new. [ el := RTElement forCollection: #(1 2 3). shape := RTMultiCompositeShape new add: (RTEllipse new color: Color blue; size: 20); add: (RTLabel new); horizontal; yourself. el do:[:e | e @ RTDraggable;
- shape.
]. view elements do:[:e | view removeElement: e]. view addAll: el. RTGridLayout new on: el. view signalUpdate. ] valueWithInterval: 1second. view open ===
This code update the view every seconds, because the collection is changing regularly.
Now, I tried to use a builder to make similar behavior but it has not the right behavior: the shapes are not well placed, and when I place the mouse on a shape, it raises an error. Here is the code:
=== | c b | c := RTComposer new. b := RTGraphBuilder new. b view: c view. [ b nodes color: Color blue. b layout circle. b cleanView. b addAll: #(1 2 3). b build ] valueWithInterval: 1second. c group. c layout: RTVerticalLineLayout new. c open. ===
So, what is your point of view ? What can I improve and how ? Is any guy of Roassal team coming at Smalltalks 2014 ? I will be at Cordoba and I would like to peer-program with someone who knows well Roassal.
Jannik
2014-10-29 16:25 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok, let us know!
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 11:19 AM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex,
I will check all of that.
Jannik
2014-10-28 13:23 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
There is a chapter on builders:
https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201...
Cheers, Alexandre
On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com
wrote:
2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: > My point is that I want to do a board with multiple views. I saw
that in the Roassal example pane.
If you mean what I think that's not actually Roassal, that is just
regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample.
Ok, I don't understood that they are simple image. So, I will go to understand builders.
Do you have simple examples ?
Jannik
> can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
The base class RTBuilder have both view: and renderIn:; if not
specified the builder will create its own view.
I don't know if this is the intended way, but that's how I use it
and it seems to work. :)
Look at RTComposerExample>>exampleClassAnalysis.
Peter
On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier <
thierry.goubier@gmail.com> wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either
use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view:
method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/ _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Ok, let me know how it goes.
Alexandre
Le 11-11-2014 à 17:52, jannik laval jannik.laval@gmail.com a écrit :
Ok, thank you Alex,
I understand better how it works.
Jannik
2014-10-30 14:51 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
This is really cool to have that. I will use it for multiple cases.
Ok!
But in the case I have, I would refresh all the view, because I am not sure of the number of nodes I have (it is given by the OSProcess). It means that the line "v add: element" should be in the blockToExecute:, but it means that I need to remove other elements.
It should not be a problem at all I think.
Anther question: what is the method trachelShape ? Does it make sense to invoke trachel methods inside a Roassal script ?
#trachelShape returns a Trachel shape. I use it to modify some properties of the visual element (e.g., the displayed string in my example). If you are simply focusing on adding and removing elements, you do not need to care about trachel shape.
Let us know!
Cheers, Alexandre
Thank you again. Jannik
2014-10-29 19:54 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Ok. Give a try to modify RTActiveAnimation. This is rather easy to do.
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Oct 29, 2014, at 3:49 PM, jannik laval jannik.laval@gmail.com wrote:
Thank you Alex, I will try that ! I will need a time delay because my collection of nodes comes from an OSProcess call.
Jannik
2014-10-29 19:38 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com:
Hi Jannik,
You should never use valueWithInterval: This methods creates threads, and threads are evil.
If you update Roassal, you will see I’ve added a new class for you, RTActiveAnimation. You can try this:
v := RTView new. element := RTLabel elementOn: '0'. v add: element. value := 0. RTActiveAnimation new inView: v; blockToExecute: [ value := value + 1. element trachelShape text: value asString. ]. v -=-=-=-=-=-=-=-=
Naturally, RTActiveAnimation may need to have some time delay. Does it make sense?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> On Oct 29, 2014, at 1:09 PM, jannik laval jannik.laval@gmail.com wrote: > > Hi Alex, > > So I tried again but I have problems. Here is a sample code I made: > > === > | view el shape| > view := RTView new. > [ > el := RTElement forCollection: #(1 2 3). > shape := RTMultiCompositeShape new > add: (RTEllipse new color: Color blue; size: 20); > add: (RTLabel new); > horizontal; > yourself. > el do:[:e | > e @ RTDraggable; > + shape. > ]. > view elements do:[:e | view removeElement: e]. > view addAll: el. > RTGridLayout new on: el. > view signalUpdate. > ] valueWithInterval: 1second. > view open > === > > This code update the view every seconds, because the collection is changing regularly. > > Now, I tried to use a builder to make similar behavior but it has not the right behavior: the shapes are not well placed, and when I place the mouse on a shape, it raises an error. > Here is the code: > > === > | c b | > c := RTComposer new. > b := RTGraphBuilder new. > b view: c view. > [ > b nodes > color: Color blue. > b layout circle. > b cleanView. > b addAll: #(1 2 3). > b build > ] valueWithInterval: 1second. > c group. > c layout: RTVerticalLineLayout new. > c open. > === > > So, what is your point of view ? What can I improve and how ? > Is any guy of Roassal team coming at Smalltalks 2014 ? I will be at Cordoba and I would like to peer-program with someone who knows well Roassal. > > Jannik > > 2014-10-29 16:25 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com: >> Ok, let us know! >> >> Alexandre >> -- >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: >> Alexandre Bergel http://www.bergel.eu >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >> >> >> >>> On Oct 29, 2014, at 11:19 AM, jannik laval jannik.laval@gmail.com wrote: >>> >>> Thank you Alex, >>> >>> I will check all of that. >>> >>> Jannik >>> >>> 2014-10-28 13:23 GMT+01:00 Alexandre Bergel alexandre.bergel@me.com: >>>> There is a chapter on builders: >>>> https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/Builder/0201... >>>> >>>> Cheers, >>>> Alexandre >>>> >>>> >>>> > On Oct 24, 2014, at 12:54 PM, jannik laval jannik.laval@gmail.com wrote: >>>> > >>>> > >>>> > >>>> > 2014-10-24 16:51 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: >>>> > > My point is that I want to do a board with multiple views. I saw that in the Roassal example pane. >>>> > If you mean what I think that's not actually Roassal, that is just regular images. You can always investigate the source code of Roassal>ExampleBrowser package/RTExampleBrowser/RTAbstractExample. >>>> > >>>> > Ok, I don't understood that they are simple image. >>>> > So, I will go to understand builders. >>>> > >>>> > Do you have simple examples ? >>>> > >>>> > Jannik >>>> > >>>> > >>>> > > can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders. >>>> > The base class RTBuilder have both view: and renderIn:; if not specified the builder will create its own view. >>>> > I don't know if this is the intended way, but that's how I use it and it seems to work. :) >>>> > Look at RTComposerExample>>exampleClassAnalysis. >>>> > >>>> > Peter >>>> > >>>> > >>>> > On Fri, Oct 24, 2014 at 4:38 PM, Thierry Goubier thierry.goubier@gmail.com wrote: >>>> > >>>> > >>>> > 2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: >>>> > I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method) >>>> > >>>> > Hi Peter, >>>> > >>>> > can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders. >>>> > >>>> > Thierry >>>> > >>>> > _______________________________________________ >>>> > Moose-dev mailing list >>>> > Moose-dev@iam.unibe.ch >>>> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>> > >>>> > >>>> > >>>> > _______________________________________________ >>>> > Moose-dev mailing list >>>> > Moose-dev@iam.unibe.ch >>>> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > ~~Jannik Laval~~ >>>> > École des Mines de Douai >>>> > Enseignant-chercheur >>>> > http://www.jannik-laval.eu >>>> > http://www.phratch.com >>>> > http://www.approchealpes.info >>>> > http://car.mines-douai.fr/ >>>> > >>>> > _______________________________________________ >>>> > Moose-dev mailing list >>>> > Moose-dev@iam.unibe.ch >>>> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>> >>>> -- >>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: >>>> Alexandre Bergel http://www.bergel.eu >>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Moose-dev mailing list >>>> Moose-dev@iam.unibe.ch >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>> >>> >>> >>> -- >>> ~~Jannik Laval~~ >>> École des Mines de Douai >>> Enseignant-chercheur >>> http://www.jannik-laval.eu >>> http://www.phratch.com >>> http://www.approchealpes.info >>> http://car.mines-douai.fr/ >>> >>> _______________________________________________ >>> Moose-dev mailing list >>> Moose-dev@iam.unibe.ch >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> >> _______________________________________________ >> Moose-dev mailing list >> Moose-dev@iam.unibe.ch >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > > > -- > ~~Jannik Laval~~ > École des Mines de Douai > Enseignant-chercheur > http://www.jannik-laval.eu > http://www.phratch.com > http://www.approchealpes.info > http://car.mines-douai.fr/ > > _______________________________________________ > Moose-dev mailing list > Moose-dev@iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Yes, there is the method: RTBuilder>>view:
Check the method the implementation of #exampleClassAnalysis3
Cheers, Alexandre
On Oct 24, 2014, at 11:38 AM, Thierry Goubier thierry.goubier@gmail.com wrote:
2014-10-24 16:14 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: I don't believe you can add view to a view, however you can either use the same view in all methods (if you are using builders you can pass view to them, or use renderIn: aView method)
Hi Peter,
can you give an example? Does that mean all builders have a view: method (or is that renderIn:?). I'm interested because I'd like to mix builders.
Thierry _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Jannik,
What you can do, is something like:
viewAll addAll: self view1 elements. viewAll addAll: self view2 elements. viewAll addAll: self view3 elements.
This should work without any problem. Sorry for my slow answer. I am just back from a trip.
Cheers, Alexandre
On Oct 24, 2014, at 11:07 AM, jannik laval jannik.laval@gmail.com wrote:
Hum, I will check this class.
Another question: I build 3 views in 3 different methods. Now, I want to add these view in 1 view.
I tried to add them as:
viewAll add: self view1 viewAll add: self view2 viewAll add: self view3 === But it does not work. A RTView does not accept another RTView. What is the way to do that ?
Jannik
2014-10-24 15:59 GMT+02:00 Peter Uhnák i.uhnak@gmail.com: Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote: Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new.
[el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com: Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Yes, I meant RTSpringLayoutStepping. I wrote the email on my iphone, without my laptop.
Cheers, Alexandre
On Oct 24, 2014, at 10:59 AM, Peter Uhnák i.uhnak@gmail.com wrote:
Maybe he meant RTSpringLayoutStepping? There are couple examples for it in RTRoassalExample.
On Fri, Oct 24, 2014 at 3:40 PM, jannik laval jannik.laval@gmail.com wrote: Hi Alex,
I did not found the class RTSteppingLayout. But I tried this script that do the job.
We can surely improve it:
=== | b el| b := RTView new.
[el := RTElement forCollection: (PhaROSSystemInfo instance topicList). el do:[:e | e + RTLabel. "e @ RTDraggable." ]. b elements do:[:e | b removeElement: e]. b addAll: el. RTGridLayout new on: el. b signalUpdate. ] valueWithInterval: 1second.
b open.
2014-10-24 14:44 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com: Yes!! This is easy. I suggest you to create an animation for this. Do not use thread, this is unnecessary. I do not have my laptop with me. But you can get inspiration from the class RTSteppingLayout.
Let me know how it goes
Alexandre
Le 24-10-2014 à 7:22, jannik laval jannik.laval@gmail.com a écrit :
Hi Alex,
In roassal I would like to follow an element and check its value every second. Is there something in Roassal that do this stuff ?
Cheers,
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- ~~Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info http://car.mines-douai.fr/
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev