metametascape
Welcome, Guest
Please Login or Register.
Lost Password?
Re:View Management (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:View Management

#23
ecasotti (User)
Expert Boarder
Posts: 38
graphgraph
View Management 2008/01/08 18:42 Karma: 0  
Hi Miles

I was wondering if you had any documentation concerning how to set up
different views for an Ascape model using Metascape? Or, how do I
use Metascape to customize my views in Ascape. I would like to modify
the default view for example, or add additional ones.

Thank you,

Evelyn
  The administrator has disabled public write access.
#30
miles (Admin)
Admin
Posts: 59
graphgraph
Re:View Management 2008/01/08 21:16 Karma: 1  
Do you mean creating entirely new visualizations, for example a 3D view, or simply customizing the existing ones?
  The administrator has disabled public write access.
#34
ecasotti (User)
Expert Boarder
Posts: 38
graphgraph
Re:View Management 2008/01/08 22:39 Karma: 0  
Either or is fine. I wanted to just start by resizing the view to make
the cell size larger so that I could better see the agents moving around
(I believe I am getting old and was having trouble seeing the small sized
agents move around, hence the color changes for contrast I noted earlier).

So how would I, using the default view that is generated, change the
agent size for example? Or the cell size?
  The administrator has disabled public write access.
#44
miles (Admin)
Admin
Posts: 59
graphgraph
Re:View Management 2008/01/11 04:16 Karma: 1  
Gotcha. See my answer in the other thread but in general this is toolkit specific. (In Ascape you can simply click the zoom buttons, and in Simphony I believe you can do this with the mouse-wheel, but I don't know other ways you might do it.) Right now there is a size that is hardcoded by default -- I think it is 10 pixels or something, you could always modify the generated code or create an over--riding class and execute that, but I think that would be overkill. Ascape at runtime tries to fit all of the agents into the view that will fit and adjusts the intital agent size accordiningly.
  The administrator has disabled public write access.
#45
ecasotti (User)
Expert Boarder
Posts: 38
graphgraph
Re:View Management 2008/01/11 19:51 Karma: 0  
Yes I saw your other answer. That all makes sense. I just had to modify generated code for a custom reason as well, I wanted to use colors that were not available by default and I could not figure out how to get the Color(R,G, option to work correctly.

I think it is a balance of learning when to generate, and when to create.

Thanks for all of your help Miles.
  The administrator has disabled public write access.
#48
miles (Admin)
Admin
Posts: 59
graphgraph
Re:View Management 2008/01/12 01:26 Karma: 1  
ecasotti wrote:
Yes I saw your other answer. That all makes sense. I just had to modify generated code for a custom reason as well, I wanted to use colors that were not available by default and I could not figure out how to get the Color(R,G, option to work correctly.

There may be a bug in RGB, but I haven't been able to track it down. It works for me currently but I have run into an issue before as well.

I think it is a balance of learning when to generate, and when to create.

The goal is to be able to generate anything reasonable, so I'm happy to hear of any cases that folks feel cannot be represented w/o resorting to Java code. The issue with using Java of course is that unless you make sure to not use any API calls from the underlying environment your code will not work with other environments.
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop