The MicroPsi Web Documentation System
[ start | index | login ]
start > Projecting Overlays

Projecting Overlays

Created by rvuine. Last edited by rvuine, 4 years and 267 days ago. Viewed 246 times. #1
[edit] [rdf]
labels
attachments
You can enrich the world console's view onto the world with your own information. To do this, you need to implement >>IOverlayRenderer.

Basically, you get the world model and edit session there, and every time your overlay projection is to be shown, you get offset coordinates, clipping and a graphics context to draw upon - then you're at your own.

Typically, you will want to register your overlay renderer with a console service to get information from some other component, i.e. an agent. You'll then store this information in a cache in your renderer and use it for drawing when requested.

To make your overlay renderer know to Eclipse, you must use the extension point "org.micropsi.worldconsole.overlays". Here's an example:

<extension
    point="org.micropsi.worldconsole.overlays">
  <overlay
    name="Test overlay"
    class="org.micropsi.eclipse.myplugin.MyOverlay"
    zOrder="2"
    id="org.micropsi.eclipse.myplugin.myoverlay">
  </overlay>
</extension>

no comments | post comment

Quicklinks
fields of activity
downloads
installation
getting started
extension (new!)
faq
>>Bugzilla
snipsnap-help

Logged in Users: (0)
… and a Guest.



< March 2010 >
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
28293031

>>SnipSnap 1.0b1-uttoxeter

www.cognitive-agents.org