diff options
Diffstat (limited to 'demos/declarative/stereo')
-rw-r--r-- | demos/declarative/stereo/Teapot.qml | 55 | ||||
-rw-r--r-- | demos/declarative/stereo/Time.qml | 71 | ||||
-rw-r--r-- | demos/declarative/stereo/Time20.qml | 71 | ||||
-rw-r--r-- | demos/declarative/stereo/stereo-scenegraph.qml | 136 | ||||
-rw-r--r-- | demos/declarative/stereo/stereo.qml | 165 | ||||
-rw-r--r-- | demos/declarative/stereo/stereo.qmlproject | 16 |
6 files changed, 0 insertions, 514 deletions
diff --git a/demos/declarative/stereo/Teapot.qml b/demos/declarative/stereo/Teapot.qml deleted file mode 100644 index 572cc3ec1..000000000 --- a/demos/declarative/stereo/Teapot.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import Qt 4.7 -import Qt3D 1.0 - -Item3D { - id: teapot - mesh: Mesh { source: "../meshes/teapot.bez" } - effect: Effect { - material: Material { - id: china - ambientColor: "#c09680" - specularColor: "#3c3c3c" - shininess: 128 - } - } -} diff --git a/demos/declarative/stereo/Time.qml b/demos/declarative/stereo/Time.qml deleted file mode 100644 index c29568c64..000000000 --- a/demos/declarative/stereo/Time.qml +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import Qt 4.7 - -Item { - id: container - property variant currentDateTime - - Rectangle { - anchors.fill: parent - border.color: "black" - radius: 5 - } - - width: 150 - height: 50 - - Text { - text: Qt.formatTime(container.currentDateTime, "h:mm'<sup><small> 'ap'</small></sup>'") - font.pixelSize: 30; font.bold: true - color: "black" - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - } - - Timer { - interval: 1000 - running: true - repeat: true - triggeredOnStart: true - onTriggered: container.currentDateTime = new Date() - } -} diff --git a/demos/declarative/stereo/Time20.qml b/demos/declarative/stereo/Time20.qml deleted file mode 100644 index 98ad69e3d..000000000 --- a/demos/declarative/stereo/Time20.qml +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: container - property variant currentDateTime - - Rectangle { - anchors.fill: parent - border.color: "black" - radius: 5 - } - - width: 150 - height: 50 - - Text { - text: Qt.formatTime(container.currentDateTime, "h:mm'<sup><small> 'ap'</small></sup>'") - font.pixelSize: 30; font.bold: true - color: "black" - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - } - - Timer { - interval: 1000 - running: true - repeat: true - triggeredOnStart: true - onTriggered: container.currentDateTime = new Date() - } -} diff --git a/demos/declarative/stereo/stereo-scenegraph.qml b/demos/declarative/stereo/stereo-scenegraph.qml deleted file mode 100644 index 1f41819cf..000000000 --- a/demos/declarative/stereo/stereo-scenegraph.qml +++ /dev/null @@ -1,136 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt3D 2.0 -import Qt3D.Shapes 1.0 - -Item { - id: stereo - width: 640; height: 450 - - FloatingItem { - anchors.fill: parent - depth: -10 - Image { - anchors.fill: parent - source: "../textures/photos/niagara_falls.jpg" - } - } - - Viewport { - anchors.fill: parent - navigation: false - - camera: Camera { - eye: Qt.vector3d(0, 0, 10) - eyeSeparation: 0.08 - } - - Teapot { - id: teapot - position: Qt.vector3d(-1.0, -1.0, -5.0) - - SequentialAnimation on y { - running: true - loops: Animation.Infinite - PauseAnimation { duration: 500 } - NumberAnimation { to : 1.0; duration: 300; easing.type:"OutQuad" } - NumberAnimation { to : -1.0; duration: 300; easing.type:"OutBounce" } - } - } - - Cube { - id: cube - position: Qt.vector3d(1.0, -0.5, 0.0) - - transform: Rotation3D { - axis: Qt.vector3d(1, 1, 1) - - NumberAnimation on angle { - running: true - loops: Animation.Infinite - from: 0 - to: 360 - duration: 5000 - } - } - - effect: Effect { - color: "#aaca00" - texture: "../textures/qtlogo.png" - decal: true - } - } - } - - Time20 { x: 5; y: 5 } - - FloatingItem { - id: button - x: 250; y: 50 - width: 300; height: 80 - depth: 4 - - Rectangle { - anchors.fill: parent - color: "#90e020" - opacity: 0.7 - radius: 5 - } - - Text { - anchors.centerIn: parent - color: "black" - font.pointSize: 14 - text: "Drag Me!" - } - - MouseArea { - anchors.fill: parent - drag.target: button - drag.axis: Drag.XandYAxis - drag.minimumX: 0 - drag.maximumX: stereo.width - parent.width - drag.minimumY: 0 - drag.maximumY: stereo.height - parent.height - } - } -} diff --git a/demos/declarative/stereo/stereo.qml b/demos/declarative/stereo/stereo.qml deleted file mode 100644 index 3d550ff06..000000000 --- a/demos/declarative/stereo/stereo.qml +++ /dev/null @@ -1,165 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtQuick3D examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** $QT_END_LICENSE$ -** -****************************************************************************/ - -//![1] -import Qt 4.7 -import Qt3D 1.0 -import Qt3D.Shapes 1.0 - -//![3] -StereoView { - id: stereo -//![3] - width: 640; height: 450 -//![1] - -/* -//![4] - width: 1280; height: 450 - layout: StereoView.LeftRight -//![4] -*/ - -//![5] - FloatingItem { - anchors.fill: parent - depth: -10 - Image { - anchors.fill: parent - source: "../textures/photos/niagara_falls.jpg" - } - } -//![5] - -//![6] - Viewport { - anchors.fill: parent - navigation: false - - camera: Camera { - eye: Qt.vector3d(0, 0, 10) - eyeSeparation: 0.08 - } -//![6] - -//![8] - Teapot { - id: teapot - position: Qt.vector3d(-1.0, -1.0, -5.0) -//![8] - - SequentialAnimation on y { - running: true - loops: Animation.Infinite - PauseAnimation { duration: 500 } - NumberAnimation { to : 1.0; duration: 300; easing.type:"OutQuad" } - NumberAnimation { to : -1.0; duration: 300; easing.type:"OutBounce" } - } -//![9] - } - - Cube { - id: cube - position: Qt.vector3d(1.0, -0.5, 0.0) -//![9] - - transform: Rotation3D { - axis: Qt.vector3d(1, 1, 1) - - NumberAnimation on angle { - running: true - loops: Animation.Infinite - from: 0 - to: 360 - duration: 5000 - } - } - - effect: Effect { - color: "#aaca00" - texture: "../textures/qtlogo.png" - decal: true - } -//![10] - } -//![10] -//![7] - } -//![7] - -//![11] - Time { x: 5; y: 5 } -//![11] - -//![12] - FloatingItem { - id: button - x: 250; y: 50 - width: 300; height: 80 - depth: 4 - - Rectangle { - anchors.fill: parent - color: "#90e020" - opacity: 0.7 - radius: 5 - } - - Text { - anchors.centerIn: parent - color: "black" - font.pointSize: 14 - text: "Drag Me!" - } - - MouseArea { - anchors.fill: parent - drag.target: button - drag.axis: Drag.XandYAxis - drag.minimumX: 0 - drag.maximumX: stereo.viewport.width - parent.width - drag.minimumY: 0 - drag.maximumY: stereo.viewport.height - parent.height - } - } -//![12] -//![2] -} -//![2] diff --git a/demos/declarative/stereo/stereo.qmlproject b/demos/declarative/stereo/stereo.qmlproject deleted file mode 100644 index d4909f868..000000000 --- a/demos/declarative/stereo/stereo.qmlproject +++ /dev/null @@ -1,16 +0,0 @@ -import QmlProject 1.0 - -Project { - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "." - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ " ../exampleplugin " ] -} |