Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Custom background and layout depending on instance data
Custom background and layout depending on instance data [message #1706582] Thu, 27 August 2015 20:05 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

My class and I are working on a model-based tool for pervasive games
(treasure hunt-like where players perform tasks in the physical
environment) and an obvious task is following a path of locations.
Ideally a tool should allow us to combine Sirius on top of a map, e.g.
using tiling code from Nebula's GeoMap widget. This leads me to the
following two questions:
- Is it possible / easy to customize the background, so I can show a
map underneath?
- Is it possible to compute the position of diagram elements from data
in the underlying object?

Hallvard
--
Hallvard Trætteberg (hal@xxxxxxxx.no)
Associate Professor, IS group, Dept. of Computer and Information
Science at the
Norwegian Univ. of Science and Technology
Re: Custom background and layout depending on instance data [message #1706634 is a reply to message #1706582] Fri, 28 August 2015 09:57 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Hallvard,


Le 27/08/2015 22:05, Hallvard Trætteberg a écrit :
> Hi,
>
> My class and I are working on a model-based tool for pervasive games
> (treasure hunt-like where players perform tasks in the physical
> environment) and an obvious task is following a path of locations.
> Ideally a tool should allow us to combine Sirius on top of a map, e.g.
> using tiling code from Nebula's GeoMap widget. This leads me to the
> following two questions:
> - Is it possible / easy to customize the background, so I can show a map
> underneath?

To do that you can use the GMF API to provide your own DiagramEditPart
which inherits of Sirius DDiagramEditPart. The GMF API provides the
editPartProvider extension point to do that. And with your
DiagramEditPart you can create your own figure to display your image.

> - Is it possible to compute the position of diagram elements from data
> in the underlying object?

The VSM, i.e. odesign model, doesn't provide natively mean to compute
diagram elements position according to semantic change. Then you should
do it programmatically through a listener reacting to your data change
to update the GMF notation model used in Sirius.

>
> Hallvard


Best Regards.

--
Esteban Dugueperoux - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Resource management
Next Topic:Sirius on eclipse orion
Goto Forum:
  


Current Time: Fri Apr 19 21:31:24 GMT 2024

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

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

Back to the top