diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2019-04-02 16:12:08 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2019-05-07 08:47:05 +0000 |
commit | 988f62c763eef90e4dafe9ecf6bb05629279278e (patch) | |
tree | e5ea6c42f5fba693ca9bd419f71ac69d7e34ca9a /tests/auto/viewer/simple_cube_animation/simple_cube_animation.uip | |
parent | fe0a5a474392de0036019f0083a4401863508a83 (diff) |
Add dynamic object creation to presentation C++ API
A new model element can be dynamically created into the scene.
The slide and properties of the element can be specified at
creation time. A material element is automatically created for
each added model. The material is specified with a custom
"material" property in the list of creation properties.
Task-number: QT3DS-3209
Change-Id: I52b0e929023092110820405473a9399b67a305cd
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'tests/auto/viewer/simple_cube_animation/simple_cube_animation.uip')
-rw-r--r-- | tests/auto/viewer/simple_cube_animation/simple_cube_animation.uip | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/auto/viewer/simple_cube_animation/simple_cube_animation.uip b/tests/auto/viewer/simple_cube_animation/simple_cube_animation.uip deleted file mode 100644 index 22584127..00000000 --- a/tests/auto/viewer/simple_cube_animation/simple_cube_animation.uip +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<UIP version="3" > - <Project > - <ProjectSettings author="" company="" presentationWidth="640" presentationHeight="480" maintainAspect="False" /> - <Graph > - <Scene id="Scene" > - <Layer id="Layer" > - <Camera id="Camera" /> - <Light id="Light" /> - <Model id="Cube" > - <Material id="Material" /> - </Model> - <Model id="Cube_001" > - <Material id="Material_001" /> - </Model> - </Layer> - </Scene> - </Graph> - <Logic > - <State name="Master Slide" component="#Scene" > - <Add ref="#Layer" /> - <Add ref="#Camera" > - <AnimationTrack property="rotation.x" type="EaseInOut" /> - <AnimationTrack property="rotation.y" type="EaseInOut" /> - <AnimationTrack property="rotation.z" type="EaseInOut" /> - </Add> - <Add ref="#Light" lightdiffuse="0 1 0" lightspecular="1 1 1" > - <AnimationTrack property="rotation.x" type="EaseInOut" /> - <AnimationTrack property="rotation.y" type="EaseInOut" /> - <AnimationTrack property="rotation.z" type="EaseInOut" /> - </Add> - <State id="Scene-Slide1" name="Slide1" playmode="Play Through To..." playthroughto="#Scene-Slide2" > - <Add ref="#Cube" name="Cube" scale="1 1 1" sourcepath="#Cube" > - <AnimationTrack property="rotation.x" type="EaseInOut" >0 0 100 100 0.963 45 100 100 1.926 45 100 100 2.944 45 100 100 6.942 0 100 100 8.022 0 100 100 8.98 0 100 100</AnimationTrack> - <AnimationTrack property="rotation.y" type="EaseInOut" >0 0 100 100 0.963 0 100 100 1.926 45 100 100 2.944 45 100 100 6.942 45 100 100 8.022 0 100 100 8.98 0 100 100</AnimationTrack> - <AnimationTrack property="rotation.z" type="EaseInOut" >0 0 100 100 0.963 0 100 100 1.926 0 100 100 2.944 45 100 100 6.942 45 100 100 8.022 45 100 100 8.98 0 100 100</AnimationTrack> - <AnimationTrack property="scale.x" type="EaseInOut" dynamic="True" >0 1 100 100 3.958 2 100 100 4.902 2 100 100 5.981 2 100 100 10 1 100 100</AnimationTrack> - <AnimationTrack property="scale.y" type="EaseInOut" dynamic="True" >0 1 100 100 3.958 1 100 100 4.902 2 100 100 5.981 2 100 100 10 1 100 100</AnimationTrack> - <AnimationTrack property="scale.z" type="EaseInOut" dynamic="True" >0 1 100 100 3.958 1 100 100 4.902 1 100 100 5.981 2 100 100 10 1 100 100</AnimationTrack> - </Add> - <Add ref="#Material" /> - </State> - <State id="Scene-Slide2" name="Slide2" initialplaystate="Play" playmode="Stop at end" playthroughto="Previous" > - <Add ref="#Cube_001" name="Cube" scale="100 100 2" sourcepath="#Cube" /> - <Add ref="#Material_001" /> - </State> - </State> - </Logic> - </Project> -</UIP> |