generate an image from a rendered model

1 view
Skip to first unread message

Stephen Bannasch

unread,
Apr 13, 2009, 5:44:12 PM4/13/09
to otrun...@googlegroups.com
I was brain storming this afternoon with Scott and Sam about how to generate images from models rendered in OTrunk.

My immediate need is to generate images of all the MW, NetLogo, Phet, et al models to be used as placeholders in the RITES authoring system.

The example named "frieda_protein_page_simple" on this page:


Is the simplest otml I could come up with to show just the MW model Freida made today that she'd like to use in RITES.

This embeds the MW page:


Which embeds this model:


The mml model know's it's size:

from page2$0.mml

    <void property="viewSize">
     <object class="java.awt.Dimension">
      <int>750</int>
      <int>500</int>
     </object>
    </void>



But to represent the model I need a larger image that captures the whole cml page (which doesn't declaratively specify it's size:

  750x640


P5C1EEFD6.png
P5C1EEFD6 1.png

Sam Fentress

unread,
Apr 14, 2009, 2:56:15 PM4/14/09
to otrun...@googlegroups.com
We created a patch for the OTMLToXHTMLConverter that makes the Converter open each component into a frame and render them before making an image of them.

This patch should not be committed into Trunk unless we add system properties/whatever to turn it on and off.

Sam

otrun...@googlegroups.com wrote:
I was brain storming this afternoon with Scott and Sam about how to generate images from models rendered in OTrunk.


My immediate need is to generate images of all the MW, NetLogo, Phet, et al models to be used as placeholders in the RITES authoring system.


The example named "frieda_protein_page_simple" on this page:




Is the simplest otml I could come up with to show just the MW model Freida made today that she'd like to use in RITES.


This embeds the MW page:




Which embeds this model:




The mml model know's it's size:


from page2$0.mml


    <void property="viewSize">
     <object class="java.awt.Dimension">
      <int>750</int>
      <int>500</int>
     </object>
    </void>



P5C1EEFD6.png




But to represent the model I need a larger image that captures the whole cml page (which doesn't declaratively specify it's size:


  750x640


P5C1EEFD6 1.png



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "otrunk-dev" group.
To post to this group, send email to otrun...@googlegroups.com 
To unsubscribe from this group, send email to otrunk-dev+...@googlegroups.com 
For more options, visit this group at http://groups.google.com/group/otrunk-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


patch.txt
Reply all
Reply to author
Forward
0 new messages