<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://www.micropsi.org/webdoc/rdf'>
    <s:Snip rdf:about='http://www.micropsi.org/webdoc/rdf#Projecting+Overlays'
         s:cUser='rvuine'
         s:oUser=''
         s:mUser='rvuine'>
        <s:name>Projecting Overlays</s:name>
        <s:content>You can enrich the world console&apos;s view onto the world with your own information. To do this, you need to implement {link:IOverlayRenderer|http://www.cognitive-agents.org/javadoc/org/micropsi/comp/console/worldconsole/IOverlayRenderer.html}.&#xD;&#xA;&#xD;&#xA;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&apos;re at your own.&#xD;&#xA;&#xD;&#xA;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&apos;ll then store this information in a cache in your renderer and use it for drawing when requested.&#xD;&#xA;&#xD;&#xA;To make your overlay renderer know to Eclipse, you must use the extension point &quot;org.micropsi.worldconsole.overlays&quot;. Here&apos;s an example:&#xD;&#xA;&#xD;&#xA;{code:xml}&#xD;&#xA;&lt;extension&#xD;&#xA;    point=&quot;org.micropsi.worldconsole.overlays&quot;&gt;&#xD;&#xA;  &lt;overlay&#xD;&#xA;    name=&quot;Test overlay&quot;&#xD;&#xA;    class=&quot;org.micropsi.eclipse.myplugin.MyOverlay&quot;&#xD;&#xA;    zOrder=&quot;2&quot;&#xD;&#xA;    id=&quot;org.micropsi.eclipse.myplugin.myoverlay&quot;&gt;&#xD;&#xA;  &lt;/overlay&gt;&#xD;&#xA;&lt;/extension&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;</s:content>
        <s:mTime>2005-06-23 02:46:02.136</s:mTime>
        <s:cTime>2005-06-23 02:46:02.136</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#extension'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#psitopia'/>
                <rdf:li rdf:resource='http://www.micropsi.org/webdoc/rdf#0.6.8'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
