Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NUI
TULIP-Scenario
Commits
566c827f
Commit
566c827f
authored
Jul 21, 2017
by
Nathan Bonnemberger
Browse files
PositionWidget added: position detection using ScreenCoordinates and conversoin tested
parent
6a0ee62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Scenarios/urban_planning_scenario.xml
View file @
566c827f
...
...
@@ -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>
Camera
Coordinates
</state>
<state>
Screen
Coordinates
</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
>
0.5
)
&&
(y
>
0.5
)
</triggerCondition>
<!-- Condition: > < == != && -->
<triggerCondition>
(x
>
600
)
&&
(y
>
540
)
</triggerCondition>
<!-- Condition: > < == != && -->
</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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment