Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

[on behalf of Jean-Max] add located entity by clicking on the space interface

New Message Reply Date view Thread view Subject view Author view

Subject: [on behalf of Jean-Max] add located entity by clicking on the space interface
From: Nicolas Becu (nicolas.becu@gmail.com)
Date: Thu Aug 07 2008 - 00:06:45 CEST

Dear all,

 

Jean-Max Estay wrote a method to add located entities (object location or
agent location) directly by clicking on the spatial interface.

After you've fileIn this st file into your Cormas kernel (use the file
browser, right click the file and choose FileIn), and after you've open and
init your model, you just need to Ctrl+Left click the cell in which you want
to add a spatial entity. An interface will appear asking you to choose the
class of ObjectLocation or AgentLocation entity you want to add. After
confirmation an entity will be added to your model and located on the
selected cell.

 

I also forward an example of Fire model implementing this method.

 

Note that this method overwrites the 'performCtrlRedButton' method of
CormasModel class. This is not a problem and it will work properly but if
you want to make sure that it will not interfere with other Cormas models,
just copy the method at the level of your model class.

 

Kind regards,

 

Nicolas

New Message Reply Date view Thread view Subject view Author view
 

Back to home