Commit 566c827f authored by Nathan Bonnemberger's avatar Nathan Bonnemberger
Browse files

PositionWidget added: position detection using ScreenCoordinates and conversoin tested

parent 6a0ee62f
......@@ -28,10 +28,10 @@
<name>pos</name>
<type>spatial</type>
<position>
<x>0.5</x>
<y>0.5</y>
<x>100</x>
<y>100</y>
<z>10</z>
<state>CameraCoordinates</state>
<state>ScreenCoordinates</state>
</position>
</variable>
<coronas>
......@@ -50,7 +50,7 @@
<x>-158</x><y>-141</y><z>0</z> <!-- in pixel -->
<state>ScreenCoordinates</state>
</initialTranslation>
<triggerCondition>(x &gt; 0.5) &amp;&amp; (y &gt; 0.5)</triggerCondition> <!-- Condition: &gt; &lt; == != &amp;&amp; -->
<triggerCondition>(x &gt; 600) &amp;&amp; (y &gt; 540)</triggerCondition> <!-- Condition: &gt; &lt; == != &amp;&amp; -->
</corona>
</coronas>
</object>
......@@ -81,7 +81,7 @@
<name>pos</name> <!-- insert variable name -->
<unit></unit> <!-- unit of the variable -->
<type>spatial</type>
<initial>0,0,0</initial>
<initial>100,150,200,ScreenCoordinates</initial>
</parameter>
</parameters>
<results>
......@@ -98,7 +98,7 @@
<name>pos</name> <!-- insert variable name -->
<unit></unit> <!-- unit of the variable -->
<type>spatial</type>
<initial>0,0,0</initial>
<initial>250,300,350,ScreenCoordinates</initial>
</parameter>
</parameters>
<results>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment