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
bac62ed6
Commit
bac62ed6
authored
Jul 10, 2017
by
Nathan Bonnemberger
Browse files
Urban planning : bugged
parent
9266a194
Changes
9
Hide whitespace changes
Inline
Side-by-side
Scenarios/assets/green_zone.jpg
0 → 100644
View file @
bac62ed6
10.5 KB
Scenarios/assets/industry1.jpg
0 → 100644
View file @
bac62ed6
4.8 KB
Scenarios/assets/industry2.jpg
0 → 100644
View file @
bac62ed6
14.8 KB
Scenarios/assets/quite_residential_zone.png
0 → 100644
View file @
bac62ed6
5.35 KB
Scenarios/assets/residential1.jpg
0 → 100644
View file @
bac62ed6
12.3 KB
Scenarios/assets/residential2.jpg
0 → 100644
View file @
bac62ed6
14.1 KB
Scenarios/assets/shopping.jpg
0 → 100644
View file @
bac62ed6
12.2 KB
Scenarios/scenarios/TemplateScenario.xml
View file @
bac62ed6
...
...
@@ -9,6 +9,12 @@
<triggerCondition>
output
>
100
</triggerCondition>
<!-- Condition: > < == != && -->
<drawPriority>
0
</drawPriority>
<!-- Smaller drawing priority is occluded by bigger drawing priority -->
</scene>
<scene>
<name>
Background1
</name>
<!-- The name of the scene -->
<image>
assets/green_zone.jpg
</image>
<!-- The image file name: needs to be 1920x1080 px -->
<triggerCondition>
x1
>
0.5
</triggerCondition>
<!-- Condition: > < == != && -->
<drawPriority>
0
</drawPriority>
<!-- Smaller drawing priority is occluded by bigger drawing priority -->
</scene>
</scenes>
<objects>
<!-- Template Widget: Copy for each widget -->
...
...
@@ -85,6 +91,57 @@
</corona>
</coronas>
</object>
<object>
<type>
PositionWidget
</type>
<name>
Placement
</name>
<scaleX>
2
</scaleX>
<stepXSize>
20
</stepXSize>
<modifyValueOnTranslation>
true
</modifyValueOnTranslation>
<leftMostBound>
0
</leftMostBound>
<rightMostBound>
1920
</rightMostBound>
<handles>
<handle>
1
</handle>
</handles>
<variable>
<name>
x1
</name>
<value>
4
</value>
<unit>
px
</unit>
</variable>
<coronas>
<!-- Template TextBox -->
<corona>
<handle>
1
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<type>
TextBox
</type>
<drawPriority>
275
</drawPriority>
<!-- needs to be different for each corona -->
<rotateWithHandle>
false
</rotateWithHandle>
<!-- if true it rotates with the object -->
<lineWidth>
200
</lineWidth>
<!-- width of one line in pixel -->
<font>
Arial-20
</font>
<!-- Font and size -->
<centred>
true
</centred>
<!-- if true is centered -->
<text></text>
<!-- insert here text it should show some -->
<assignable>
true
</assignable>
<!-- if true it shows the value of the variable, otherwise it shows the content of the "text" field -->
<initialTranslation>
<x>
-2
</x><y>
51
</y><z>
0
</z>
<!-- in pixel -->
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
<corona>
<handle>
1
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<type>
ConditionalCorona
</type>
<drawPriority>
276
</drawPriority>
<!-- needs to be different for each corona -->
<rotateWithHandle>
false
</rotateWithHandle>
<!-- if true it rotates with the object -->
<image>
assets/green_zone.jpg
</image>
<!-- The image file name -->
<triggerCondition>
false
</triggerCondition>
<!-- Condition: > < == != && -->
<spinOnCoronaCentre>
true
</spinOnCoronaCentre>
<triggers>
<trigger>
x1
</trigger>
<!-- insert each variable you use for the trigger condition -->
</triggers>
<initialTranslation>
<x>
-158
</x><y>
-141
</y><z>
0
</z>
<!-- in pixel -->
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
</coronas>
</object>
</objects>
<system>
<outputs>
...
...
@@ -92,6 +149,10 @@
<name>
output
</name>
<!-- insert output variable name -->
<unit></unit>
<!-- unit of the output variable -->
</output>
<output>
<!-- copy for each of the output variables -->
<name>
all
</name>
<!-- insert output variable name -->
<unit></unit>
<!-- unit of the output variable -->
</output>
</outputs>
<equations>
<equation>
<!-- copy for each equation -->
...
...
@@ -109,6 +170,21 @@
</result>
</results>
</equation>
<equation>
<!-- copy for each equation -->
<name>
all
</name>
<!-- name of the equation -->
<invoke>
x1 + 0
</invoke>
<!-- equation -->
<parameters>
<parameter>
<!-- copy for each of the variables needed in the equation -->
<name>
x1
</name>
<!-- insert variable name -->
<unit>
px
</unit>
<!-- unit of the variable -->
</parameter>
</parameters>
<results>
<result>
<name>
all
</name>
<!-- insert output variable name -->
</result>
</results>
</equation>
</equations>
</system>
</scenario>
\ No newline at end of file
Scenarios/urban_planning_scenario.xml
View file @
bac62ed6
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<!-- Template Scene: Copy for each scene -->
<scene>
<name>
Background0
</name>
<!-- The name of the scene -->
<image>
scenarios/image.png
</image>
<!-- The image file name: needs to be 1920x1080 px -->
<sound>
scenarios/sound.wav
</sound>
<!-- The sound file name -->
<triggerCondition>
output
>
100
</triggerCondition>
<!-- Condition: > < == != && -->
<drawPriority>
0
</drawPriority>
<!-- Smaller drawing priority is occluded by bigger drawing priority -->
<name>
City
</name>
<image>
assets/empty_city.png
</image>
<triggerCondition>
true
</triggerCondition>
<drawPriority>
0
</drawPriority>
</scene>
</scenes>
<objects>
<!-- Template Widget: Copy for each widget -->
<object>
<type>
ValueWidget
</type>
<name>
variable
</name>
<!-- change to name of the variable/widget -->
<lowerBound>
0
</lowerBound>
<!-- lowerbound: min value -->
<upperBound>
100
</upperBound>
<!-- upperbound: max value -->
<stepSize>
1
</stepSize>
<!-- stepsize -->
<lowerStopAngle>
0
</lowerStopAngle>
<upperStopAngle>
3.141592653589793
</upperStopAngle>
<modifyValueOnRotation>
true
</modifyValueOnRotation>
<!-- if false then it is a placement widget -->
<type>
PositionWidget
</type>
<name>
Placement
</name>
<scaleX>
1
</scaleX>
<stepXSize>
0.1
</stepXSize>
<modifyValueOnTranslation>
true
</modifyValueOnTranslation>
<leftMostBound>
0
</leftMostBound>
<rightMostBound>
1
</rightMostBound>
<handles>
<handle>
0
</handle>
<!-- Marker ID -->
<handle>
1
</handle>
</handles>
<variable>
<name>
variable
</name>
<!-- name of the variable/widget --
>
<value>
0
</value>
<!-- value (for placement widget) -->
<unit>
gr
</unit>
<!-- unit -->
<name>
x
</name
>
<value>
0
</value>
<unit>
px
</unit>
</variable>
<coronas>
<!-- Template TextBox -->
<corona>
<handle>
0
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<handle>
1
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<type>
TextBox
</type>
<drawPriority>
27
2
</drawPriority>
<!-- needs to be different for each corona -->
<drawPriority>
27
5
</drawPriority>
<!-- needs to be different for each corona -->
<rotateWithHandle>
false
</rotateWithHandle>
<!-- if true it rotates with the object -->
<lineWidth>
200
</lineWidth>
<!-- width of one line in pixel -->
<font>
Arial-20
</font>
<!-- Font and size -->
...
...
@@ -46,66 +42,47 @@
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
<!-- Template Gauge -->
<corona>
<handle>
0
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<type>
Gauge
</type>
<width>
200
</width>
<!-- width of the gauge -->
<height>
200
</height>
<!-- height of the gauge -->
<lowerBound>
0
</lowerBound>
<!-- lowerbound: min value -->
<upperBound>
2000
</upperBound>
<!-- upperbound: max value -->
<drawPriority>
270
</drawPriority>
<!-- needs to be different for each corona -->
<scale>
1
</scale>
<title/>
<unit/>
<rotateWithHandle>
false
</rotateWithHandle>
<style>
0
</style>
<!-- can be 0 1 2 or 3 -->
<colourscheme>
0
</colourscheme>
<!-- can be 0 1 or 2 -->
<initialTranslation>
<x>
-100
</x><y>
-100
</y><z>
0
</z>
<!-- in pixel -->
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
<!-- Template Image -->
<corona>
<handle>
0
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<handle>
1
</handle>
<!-- Marker ID: needs to be the same for a same widget -->
<type>
ConditionalCorona
</type>
<drawPriority>
27
3
</drawPriority>
<!-- needs to be different for each corona -->
<drawPriority>
27
6
</drawPriority>
<!-- needs to be different for each corona -->
<rotateWithHandle>
false
</rotateWithHandle>
<!-- if true it rotates with the object -->
<image>
scenarios/image2.png
</image>
<!-- The image file name -->
<triggerCondition>
true
</triggerCondition>
<!-- Condition: > < == != && -->
<spinOnCoronaCentre>
false
</spinOnCoronaCentre>
<image>
assets/green_zone.jpg
</image>
<!-- The image file name -->
<spinOnCoronaCentre>
true
</spinOnCoronaCentre>
<triggers>
<trigger>
variable
</trigger>
<!-- insert each variable you use for the trigger condition -->
<trigger>
x
</trigger>
<!-- insert each variable you use for the trigger condition -->
</triggers>
<initialTranslation>
<x>
-158
</x><y>
-141
</y><z>
0
</z>
<!-- in pixel -->
<state>
ScreenCoordinates
</state>
</initialTranslation>
<triggerCondition>
x
>
0
</triggerCondition>
<!-- Condition: > < == != && -->
</corona>
</coronas>
</object>
</objects>
<!-- ##### EQUATIONS ######################################################### -->
<system>
<outputs>
<output>
<!-- copy for each of the output variables -->
<name>
output
</name>
<!-- insert output variable name -->
<unit></unit>
<!-- unit of the output variable -->
<name>
all
</name>
<!-- insert output variable name -->
<unit>
px
</unit>
<!-- unit of the output variable -->
</output>
</outputs>
<equations>
<equation>
<!-- copy for each equation -->
<name>
equation
</name>
<!-- name of the equation -->
<invoke>
variable * 2
</invoke>
<!-- equation -->
<name>
all
</name>
<!-- name of the equation -->
<invoke>
x + 0
</invoke>
<!-- equation -->
<parameters>
<parameter>
<!-- copy for each of the variables needed in the equation -->
<name>
variable
</name>
<!-- insert variable name -->
<unit>
gr
</unit>
<!-- unit of the variable -->
<name>
x
</name>
<!-- insert variable name -->
<unit>
px
</unit>
<!-- unit of the variable -->
</parameter>
</parameters>
<results>
<result>
<name>
output
</name>
<!-- insert output variable name -->
<name>
all
</name>
<!-- insert output variable name -->
</result>
</results>
</equation>
...
...
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