Master thesis

Everywhere Display config

This is an example configuration file

<?xml version="1.0" encoding="utf-8" ?>
<everywhere-display>
  <!-- Define all the walls, just one wall at the moment -->

  <!--
		We always start watching along the Y-axis,
		And up direction is the Z-axis.
	-->
<reference-path>C:\Documents and Settings\Jonathan\My Documents\master thesis jonathan\ED solution\WPF version\EverywhereDisplay</reference-path>
<!-- <reference-path>C:\Documents and Settings\Jonathan\My Documents\repositories\svn-jonathan\1-ste-master-hci\thesis\ED solution\WPF version\EverywhereDisplay</reference-path> -->
  <!-- <reference-path>E:\Documents and Settings\user\My Documents\1-ste-master-hci\thesis\ED solution\WPF version\EverywhereDisplay\</reference-path>-->
  
  <wall name="frontwall">
    <left-bottom x="-10" y="10" z="-5" />
    <right-vector x="18" y="0" z="0" />
    <up-vector x="0" y="0" z="10" />
    <transitions right="frontwall2" left="leftwall" />
    <!-- <background window="manycolors:main" color="#cccccc" /> -->
    <background color="#ffffff" />
  </wall>

  <wall name="frontwall2">
    <left-bottom x="8" y="10" z="-5" />
    <right-vector x="0" y="-2" z="0" />
    <up-vector x="0" y="0" z="10" />
    <transitions right="rightwall2" left="frontwall"/>
    <background color="#ffffff" />
  </wall>

  <wall name="rightwall2">
    <left-bottom x="8" y="8" z="-5" />
    <right-vector x="2" y="0" z="0" />
    <up-vector x="0" y="0" z="10" />
    <transitions right="rightwall" left="frontwall2"/>
    <background color="#ffffff" />
  </wall>

  <wall name="rightwall">
    <left-bottom x="10" y="8" z="-5" />
    <right-vector x="0" y="-18" z="0" />
    <up-vector x="0" y="0" z="10" />
    <transitions left="rightwall2" right="backwall" />
    <background color="#ffffff" />
  </wall>

  <wall name="leftwall">
    <left-bottom x="-10" y="-10" z="-5" />
    <right-vector x="0" y="20" z="0" />
    <up-vector x="0" y="0" z="10" />
    <transitions right="frontwall" left="backwall" />
    <background color="#ffffff" />
  </wall>

  <wall name="backwall">
    <left-bottom x="10" y="-10" z="-5" />
    <right-vector x="-20" y="0" z="0" />
    <up-vector x="0" y="0" z="10" />
    <transitions right="leftwall" left="rightwall" />
    <background color="#ffffff" />
  </wall>

  <wall name="ceiling">
    <left-bottom x="-10" y="-10" z="5" />
    <right-vector x="0" y="20" z="0" />
    <up-vector x="20" y="0" z="0" />
    <background color="#888888" />
    <transitions />
  </wall>
  <wall name="floor">
    <left-bottom x="-10" y="-10" z="-5" />
    <right-vector x="20" y="0" z="0" />
    <up-vector x="0" y="20" z="0" />
    <background color="#888888" />
    <transitions />
  </wall>

  <!-- Projectors -->

  <projector name="projector1" show-walls="false">
    <field-of-view>25</field-of-view>
    <range minpan="-180" maxpan="180" mintilt="-45" maxtilt="45" />
    <angle-update-interval>0</angle-update-interval>
    <position x="0" y="0" z="0" />
    <up-vector x="0" y="0" z="1" />
    <look-vector x="0" y="1" z="0" />
  </projector>

  <projector name="projector2" show-walls="true">
    <field-of-view>120</field-of-view>
    <range minpan="-180" maxpan="180" mintilt="-45" maxtilt="45" />
    <angle-update-interval>20</angle-update-interval>
    <position x="0" y="0" z="0" />
    <up-vector x="0" y="0" z="1" />
    <look-vector x="0" y="1" z="0" />
  </projector>

  <!-- Applications -->
  <!--
	<application name="applicationoverview">
		<assembly>EveryWhereUtils\bin\Debug\EveryWhereUtils.dll</assembly>
		<class>EverywhereUtils.ApplicationOverview</class>
	</application>
  -->
	<application name="klokapp">
		<assembly>EverywhereExampleApplications\bin\Debug\EverywhereExampleApplications.dll</assembly>
		<class>EverywhereExampleApplications.Clock</class>
		<param name="TextColor" value="blue"/>
		<param name="BackColor" value="red" />
	</application>
	<application name="testapp">
    <assembly>EverywhereExampleApplications\bin\Debug\EverywhereExampleApplications.dll</assembly>
    <class>EverywhereExampleApplications.Test</class>
  </application>
  
  <application name="video">
    <assembly>EverywhereExampleApplications\bin\Debug\EverywhereExampleApplications.dll</assembly>
    <class>EverywhereExampleApplications.Video</class>
    <param name="source" value="C:\Documents and Settings\Jonathan\Desktop\jonathan.avi" />
    <param name="position" value="0:0:0" />
 </application>

  <application name="manycolors">
    <assembly>EverywhereExampleApplications\bin\Debug\EverywhereExampleApplications.dll</assembly>
    <class>EverywhereExampleApplications.ManyColors</class>
  </application>
	<application name="pong">
		<assembly>EverywhereExampleApplications\bin\Debug\EverywhereExampleApplications.dll</assembly>
		<class>EverywhereExampleApplications.Pong.Pong</class>
		<param name="wall" value="backwall" />
    <param name="floating-distance" value="0.2" />
    <param name="ball-projector" value="projector1" />
	</application>

  <application name="pantilt">
    <assembly>EverywhereUtils\bin\Debug\EverywhereUtils.dll</assembly>
    <class>EverywhereUtils.PanTiltViewer</class>
    <param name="projector" value="projector2" />
  </application>
  
  <application name="pantiltoutput">
    <assembly>EverywhereUtils\bin\Debug\EverywhereUtils.dll</assembly>
    <class>EverywhereUtils.PanTiltOutputViewer</class>
  </application>
  <pantilt-output-mapping pantilt-output="pantiltoutput:output" projector="projector2" />

  <!-- Window mappings -->
	<window-mapping window="klokapp:main" wall="frontwall">
    <floating distance="0.1" />
		<position x="2" y="2" />
		<size width="6" height="6" />
	</window-mapping>
	<window-mapping window="klokapp:main" wall="backwall">
    <floating distance="0.05" />
		<position x="15" y="2"/>
		<size width="4" height="4" />
	</window-mapping>

  <window-mapping window="testapp:main" wall="rightwall">
    <floating distance="0.2" />
    <position x="7" y="2" />
    <size width="4" height="4" />
  </window-mapping>

  <window-mapping window="video:main" wall="frontwall">
    <floating distance="0.01" />
    <position x="15" y="1" />
    <size width="8" height="6" />
  </window-mapping>
  <window-mapping window="video:main" wall="ceiling">
    <floating distance="0.01" />
    <position x="5" y="5" />
    <size width="8" height="6" />
  </window-mapping>

  <window-mapping window="pantilt:main" wall="leftwall">
    <floating distance="0.01" />
    <position x="12" y="1" />
    <size width="8" height="6" />              
  </window-mapping>
  
  <!--
	<window-mapping window="applicationoverview:main" wall="leftwall">
		<position x="2" y="2" />
		<size width="6" height="6" />
	</window-mapping>
-->
	<window-mapping window="pong:score" wall="rightwall">
    <floating distance="0.05" />
		<position x="12" y="5" />
		<size width="6" height="4" />
	</window-mapping>

  <!-- Input-->
  <application name="remote-keyboard">
    <assembly>Input\RemoteKeyboardServer\bin\Debug\RemoteKeyboardServer.dll</assembly>
    <class>RemoteKeyboard.RemoteKeyboard</class>
    <param name="port" value="8002" />
  </application>
  <input-mapping input="remote-keyboard:keyboard" receiver="testapp:main" />
  
	<application name="remote-keyboard2">
		<assembly>Input\RemoteKeyboardServer\bin\Debug\RemoteKeyboardServer.dll</assembly>
		<class>RemoteKeyboard.RemoteKeyboard</class>
		<param name="port" value="8003" />
	</application>
  <input-mapping input="remote-keyboard2:keyboard" receiver="pong:input_player1" />
  
	<application name="remote-keyboard3">
		<assembly>Input\RemoteKeyboardServer\bin\Debug\RemoteKeyboardServer.dll</assembly>
		<class>RemoteKeyboard.RemoteKeyboard</class>
		<param name="port" value="8004" />
	</application>
  <input-mapping input="remote-keyboard3:keyboard" receiver="pong:input_player2" />

</everywhere-display>