Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Tutorial about animation
Tutorial about animation [message #1815075] Wed, 25 September 2019 08:47 Go to next message
Matias Vara is currently offline Matias VaraFriend
Messages: 15
Registered: October 2014
Junior Member
Hello, I want to animate my design. Do you have a tutorial about this? Something like https://wiki.eclipse.org/Sirius/Tutorials/StarterTutorial but with animation.

Regards, Matias.
Re: Tutorial about animation [message #1815152 is a reply to message #1815075] Thu, 26 September 2019 09:11 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 702
Registered: July 2009
Senior Member
Hi,

Sirius does not support model animation directly, but GEMOC has done some work on this subject (among other stuff). You can have a look at https://github.com/gemoc/MODELS2017Tutorial or https://github.com/gemoc/ICSA2017Tutorial for example.

Regards,
Pierre-Charles


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Tutorial about animation [message #1815228 is a reply to message #1815152] Fri, 27 September 2019 14:12 Go to previous messageGo to next message
Matias Vara is currently offline Matias VaraFriend
Messages: 15
Registered: October 2014
Junior Member
Hello Pierre and thanks for the comment. I worked on GEMOC and I am able to provide animation by relying on the GEMOC studio. I am asking because I would like to able to animate a model without using the GEMOC interface. I think I have to base on the Services but I am not really sure how.
Re: Tutorial about animation [message #1815303 is a reply to message #1815228] Mon, 30 September 2019 07:28 Go to previous messageGo to next message
Yvan Lussaud is currently offline Yvan LussaudFriend
Messages: 63
Registered: July 2009
Member
Hello Matias,

I the case of GEMOC, the animation comes on top of the Eclipse debugging framework. But you can also achieve animation without the debugging layer.

You have two main cases:
- the data representing the changes are stored inside the model, then you can modify the model and let Sirius do the refresh and apply corresponding style changes.
- the data representing the changes are not stored inside the model, this is the GEMOC case, you will need to write services to access changes data and trigger the refresh of Sirius.

For an example on how to trigger the refresh you can have a look at refreshRepresentations() in this file:

https://github.com/SiriusLab/ModelDebugging/blob/master/simulationmodelanimation/plugins/org.eclipse.gemoc.dsl.debug.ide.sirius.ui/src/org/eclipse/gemoc/dsl/debug/ide/sirius/ui/services/AbstractDSLDebuggerServices.java

If you plan to do a graphical debugger you can reuse https://github.com/SiriusLab/ModelDebugging/blob/master/simulationmodelanimation/
There is a debug model presentation for EMF and Sirius.

regards,
Yvan.
Re: Tutorial about animation [message #1815820 is a reply to message #1815303] Fri, 11 October 2019 12:18 Go to previous message
Matias Vara is currently offline Matias VaraFriend
Messages: 15
Registered: October 2014
Junior Member
Thanks Yvan I will try both approaches and let you know.

Matias
Previous Topic:Constant Pool Limit Reached
Next Topic:Constant Pool Limit Reached
Goto Forum:
  


Current Time: Tue Apr 16 04:18:05 GMT 2024

Powered by FUDForum. Page generated in 0.14367 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top