summaryrefslogtreecommitdiffstats
path: root/examples/quick3d/photoroom
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick3d/photoroom')
-rw-r--r--examples/quick3d/photoroom/main.cpp70
-rw-r--r--examples/quick3d/photoroom/photoroom.desktop7
-rw-r--r--examples/quick3d/photoroom/photoroom.pro23
-rw-r--r--examples/quick3d/photoroom/photoroom.rc1
-rw-r--r--examples/quick3d/photoroom/qml/PhotoPane.qml128
-rw-r--r--examples/quick3d/photoroom/qml/photopane.obj11
-rw-r--r--examples/quick3d/photoroom/qml/photoroom.qml164
-rw-r--r--examples/quick3d/photoroom/qml/textures/background.jpgbin69350 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qml/textures/basket.jpgbin138189 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qml/textures/niagara_falls.jpgbin92234 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qml/textures/place.jpgbin62438 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qml/textures/qtlogo.pngbin13923 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qml/textures/woman-photo-credit.txt5
-rw-r--r--examples/quick3d/photoroom/qml/textures/woman.jpgbin83973 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qtquick3d.icobin67646 -> 0 bytes
-rw-r--r--examples/quick3d/photoroom/qtquick3d.pngbin4050 -> 0 bytes
16 files changed, 0 insertions, 409 deletions
diff --git a/examples/quick3d/photoroom/main.cpp b/examples/quick3d/photoroom/main.cpp
deleted file mode 100644
index ff850faf..00000000
--- a/examples/quick3d/photoroom/main.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation ([email protected])
-**
-** This file is part of the QtQuick3D module 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$
-**
-****************************************************************************/
-
-#include <QtGui/QApplication>
-#include "qdeclarativeview3d.h"
-#include "qgltexture2d.h"
-#include "../qmlres.h"
-
-int main(int argc, char *argv[])
-{
-#ifdef Q_OS_SYMBIAN
- QGLTexture2D::setMaxImageSize(256,256);
-#endif
-
- QApplication app(argc, argv);
- QDeclarativeView3D view;
- QString qml = q_get_qmldir(QLatin1String("qml/photoroom.qml"));
- view.setSource(QUrl::fromLocalFile(qml));
-
-#ifdef Q_OS_SYMBIAN
- view.setAttribute(Qt::WA_LockLandscapeOrientation, true);
- view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
- view.showFullScreen();
-#else
- if (QApplication::arguments().contains(QLatin1String("-maximize")))
- view.showMaximized();
- else if (QApplication::arguments().contains(QLatin1String("-fullscreen")))
- view.showFullScreen();
- else
- view.show();
-#endif
- return app.exec();
-}
diff --git a/examples/quick3d/photoroom/photoroom.desktop b/examples/quick3d/photoroom/photoroom.desktop
deleted file mode 100644
index c3b8c11f..00000000
--- a/examples/quick3d/photoroom/photoroom.desktop
+++ /dev/null
@@ -1,7 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=PhotoRoom
-Icon=/usr/share/icons/hicolor/80x80/apps/qtquick3d.png
-Exec=/usr/bin/invoker --type=e -s /usr/bin/photoroom -fullscreen
-OnlyShowIn=X-MeeGo;
-X-MeeGo-Logical-Id=qtn_comm_appname_photoroom
diff --git a/examples/quick3d/photoroom/photoroom.pro b/examples/quick3d/photoroom/photoroom.pro
deleted file mode 100644
index fc54f9a0..00000000
--- a/examples/quick3d/photoroom/photoroom.pro
+++ /dev/null
@@ -1,23 +0,0 @@
-TEMPLATE = app
-TARGET = photoroom
-CONFIG += qt warn_on
-
-INSTALL_DIRS = qml
-CONFIG += qt3d_deploy_qml qt3dquick_deploy_pkg
-include(../../../pkg.pri)
-qtcAddDeployment()
-
-SOURCES += main.cpp
-
-symbian {
- TARGET.EPOCHEAPSIZE = 40000 40000000
- qmlDeployment2.sources = qml\textures\*
- qmlDeployment2.path = qml\textures
- DEPLOYMENT += qmlDeployment2
-}
-
-OTHER_FILES += \
- photoroom.rc \
- photoroom.desktop
-
-RC_FILE = photoroom.rc
diff --git a/examples/quick3d/photoroom/photoroom.rc b/examples/quick3d/photoroom/photoroom.rc
deleted file mode 100644
index 1b6228c9..00000000
--- a/examples/quick3d/photoroom/photoroom.rc
+++ /dev/null
@@ -1 +0,0 @@
-IDI_ICON1 ICON DISCARDABLE "qtquick3d.ico"
diff --git a/examples/quick3d/photoroom/qml/PhotoPane.qml b/examples/quick3d/photoroom/qml/PhotoPane.qml
deleted file mode 100644
index 1217727c..00000000
--- a/examples/quick3d/photoroom/qml/PhotoPane.qml
+++ /dev/null
@@ -1,128 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation ([email protected])
-**
-** 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 1.0
-import Qt3D 1.0
-
-Item3D {
- id: photo
-
- property real layer
- property variant image
- property bool bounce: false
- property string color: "#ffffff"
-
- mesh: Mesh { source: "photopane.obj" }
-
- position: Qt.vector3d(0, 0, -layer)
- effect: Effect { decal: true; texture: image; color: photo.color }
-
- onClicked: {
- if (photo.state == "pulled_out")
- photo.state = "returned";
- else
- photo.state = "pulled_out";
- }
-
- onHoverEnter: { photo.state = "pop_up" }
- onHoverLeave: { photo.state = "returned" }
-
- states: [
- State {
- name: "pop_up"
- PropertyChanges {
- target: photo
- y: 1.0
- }
- },
- State {
- name: "pulled_out"
- PropertyChanges {
- target: photo
- // Center item in the X axis
- x: -parent.x
- }
- PropertyChanges {
- target: photo
- scale: 1.75
- }
- PropertyChanges {
- target: photo
- z: 2
- }
- PropertyChanges {
- target: viewport
- state: "show_photo"
- }
- },
- State {
- name: "returned"
- PropertyChanges {
- target: photo
- x: 0
- }
- PropertyChanges {
- target: photo
- scale: 1
- }
- PropertyChanges {
- target: photo
- z: -layer
- }
- PropertyChanges {
- target: viewport
- state: "show_group"
- }
- }
- ]
-
- transitions: [
- Transition {
- from: "*"
- to: "*"
- NumberAnimation {
- targets: photo
- properties: "x,scale,z,y"
- easing.type: "OutBounce"
- duration: 700
- }
- }
- ]
-}
diff --git a/examples/quick3d/photoroom/qml/photopane.obj b/examples/quick3d/photoroom/qml/photopane.obj
deleted file mode 100644
index 1f5e91df..00000000
--- a/examples/quick3d/photoroom/qml/photopane.obj
+++ /dev/null
@@ -1,11 +0,0 @@
-s 0
-v -2 -1.5 0.0
-v 2 -1.5 0.0
-v 2 1.5 0.0
-v -2 1.5 0.0
-vt 0.0 0.0
-vt 1.0 0.0
-vt 1.0 1.0
-vt 0.0 1.0
-vn 0.0 0.0 1.0
-f 1/1/1 2/2/1 3/3/1 4/4/1
diff --git a/examples/quick3d/photoroom/qml/photoroom.qml b/examples/quick3d/photoroom/qml/photoroom.qml
deleted file mode 100644
index 2489026c..00000000
--- a/examples/quick3d/photoroom/qml/photoroom.qml
+++ /dev/null
@@ -1,164 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation ([email protected])
-**
-** 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 1.0
-import Qt3D 1.0
-
-Viewport {
- id: viewport
- width: 800; height: 480
- picking: true
- //navigation: false
- //showPicking: true
-
- camera: Camera {
- id: main_camera
- eye: Qt.vector3d(0, 4, 12)
- center: Qt.vector3d(0, 0, -2.5)
- }
-
- ListModel {
- id: imagesModelLeft
- ListElement { image: "textures/woman.jpg"; }
- ListElement { image: "textures/niagara_falls.jpg"; }
- ListElement { image: "textures/place.jpg"; }
- ListElement { image: "textures/basket.jpg"; }
- ListElement { image: "textures/qtlogo.png"; color: "#006090" }
- }
-
- Component {
- id: paneComponent
- PhotoPane {
- layer: index
- image: model.image
- // Items end up with the default value defined in PhotoPane if you
- // try and assign an undefined value, but this logic avoids a
- // string of warnings
- color: (model.color == undefined) ? "#ffffff" : model.color
- }
- }
-
- Item3D {
- // Left stack of images
- x: -2.1
- Repeater {
- delegate: paneComponent
- model: imagesModelLeft
- }
- }
-
- //! [0]
- ListModel {
- id: exampleModel
- ListElement { image: "textures/niagara_falls.jpg" }
- ListElement { image: "textures/place.jpg" }
- ListElement { image: "textures/background.jpg" }
- ListElement { image: "textures/basket.jpg" }
- ListElement { image: "textures/woman.jpg" }
- }
- //! [0]
-
- //! [1]
- Component {
- id: exampleDelegate
- PhotoPane {
- layer: index
- image: model.image
- // If you intend on removing elements from the model,
- // include this line:
- enabled: index != -1
- }
- }
- //! [1]
-
- Item3D {
- // Right stack of images
- x: 2.1
- //! [2]
- Repeater {
- id: exampleRepeater
- delegate: exampleDelegate
- model: exampleModel
- }
- //! [2]
- }
-
- states: [
- State {
- name: "show_photo"
- PropertyChanges {
- target: main_camera
- eye.y: 0
- }
- PropertyChanges {
- target: main_camera
- eye.x: 0
- }
- PropertyChanges {
- target: main_camera
- eye.z: 12
- }
- PropertyChanges {
- target: main_camera
- upVector: Qt.vector3d(0, 1, 0)
- }
- },
- State {
- name: "show_group"
- PropertyChanges {
- target: main_camera
- eye.y: 4
- }
- }
- ]
-
- transitions: [
- Transition {
- from: "*"
- to: "*"
- NumberAnimation {
- targets: main_camera
- properties: "eye.y"
- easing.type: "OutBounce"
- duration: 700
- }
- }
- ]
-}
diff --git a/examples/quick3d/photoroom/qml/textures/background.jpg b/examples/quick3d/photoroom/qml/textures/background.jpg
deleted file mode 100644
index 2c1af3c6..00000000
--- a/examples/quick3d/photoroom/qml/textures/background.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qml/textures/basket.jpg b/examples/quick3d/photoroom/qml/textures/basket.jpg
deleted file mode 100644
index c292a83d..00000000
--- a/examples/quick3d/photoroom/qml/textures/basket.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qml/textures/niagara_falls.jpg b/examples/quick3d/photoroom/qml/textures/niagara_falls.jpg
deleted file mode 100644
index 69b51371..00000000
--- a/examples/quick3d/photoroom/qml/textures/niagara_falls.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qml/textures/place.jpg b/examples/quick3d/photoroom/qml/textures/place.jpg
deleted file mode 100644
index 03e53443..00000000
--- a/examples/quick3d/photoroom/qml/textures/place.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qml/textures/qtlogo.png b/examples/quick3d/photoroom/qml/textures/qtlogo.png
deleted file mode 100644
index 7d3e97eb..00000000
--- a/examples/quick3d/photoroom/qml/textures/qtlogo.png
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qml/textures/woman-photo-credit.txt b/examples/quick3d/photoroom/qml/textures/woman-photo-credit.txt
deleted file mode 100644
index c7f04c1c..00000000
--- a/examples/quick3d/photoroom/qml/textures/woman-photo-credit.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-http://www.flickr.com/photos/fromthefrontend/
-
-Attribution:
-
-<div xmlns:cc="http://creativecommons.org/ns#" about="http://www.flickr.com/photos/fromthefrontend/4527587863/"><a rel="cc:attributionURL" href="http://www.flickr.com/photos/fromthefrontend/">http://www.flickr.com/photos/fromthefrontend/</a> / <a rel="license" href="http://creativecommons.org/licenses/by/2.0/">CC BY 2.0</a></div>
diff --git a/examples/quick3d/photoroom/qml/textures/woman.jpg b/examples/quick3d/photoroom/qml/textures/woman.jpg
deleted file mode 100644
index f3a6abc2..00000000
--- a/examples/quick3d/photoroom/qml/textures/woman.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qtquick3d.ico b/examples/quick3d/photoroom/qtquick3d.ico
deleted file mode 100644
index c695ac72..00000000
--- a/examples/quick3d/photoroom/qtquick3d.ico
+++ /dev/null
Binary files differ
diff --git a/examples/quick3d/photoroom/qtquick3d.png b/examples/quick3d/photoroom/qtquick3d.png
deleted file mode 100644
index 8351083e..00000000
--- a/examples/quick3d/photoroom/qtquick3d.png
+++ /dev/null
Binary files differ