summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Honkamaa <mats.honkamaa@qt.io>2019-02-22 14:17:00 +0200
committerMats Honkamaa <mats.honkamaa@qt.io>2019-02-22 13:42:43 +0000
commit20f72d6972e628597332d5edcadab863c728e91e (patch)
treef9de58d7a9fb3784f25646a4214eb5e413aaf8fb
parent6c3cd5b982c22e006421a611cc3595737e3dabd6 (diff)
Add docs for editor side of variant tags
Task-number: QT3DS-2913 Change-Id: I275ccc8ea2276d944b6c860860704f548ab41a94 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r--doc/src/images/variant-tags-layer.pngbin0 -> 17170 bytes
-rw-r--r--doc/src/images/variant-tags-slide.pngbin0 -> 3053 bytes
-rw-r--r--doc/src/images/variant-tags.pngbin0 -> 9061 bytes
-rw-r--r--doc/src/layers.qdoc4
-rw-r--r--doc/src/tutorials.qdoc4
-rw-r--r--doc/src/variant-tags.qdoc120
6 files changed, 128 insertions, 0 deletions
diff --git a/doc/src/images/variant-tags-layer.png b/doc/src/images/variant-tags-layer.png
new file mode 100644
index 00000000..f77527b5
--- /dev/null
+++ b/doc/src/images/variant-tags-layer.png
Binary files differ
diff --git a/doc/src/images/variant-tags-slide.png b/doc/src/images/variant-tags-slide.png
new file mode 100644
index 00000000..ecf868d4
--- /dev/null
+++ b/doc/src/images/variant-tags-slide.png
Binary files differ
diff --git a/doc/src/images/variant-tags.png b/doc/src/images/variant-tags.png
new file mode 100644
index 00000000..3eedc308
--- /dev/null
+++ b/doc/src/images/variant-tags.png
Binary files differ
diff --git a/doc/src/layers.qdoc b/doc/src/layers.qdoc
index 1128e0c1..6bec78dc 100644
--- a/doc/src/layers.qdoc
+++ b/doc/src/layers.qdoc
@@ -112,4 +112,8 @@ the colors of the background layer or object.
The \l{Disable Depth Test} property can be used to simultaneously override depth testing and
the order objects are rendered.
+\section2 Variant Tags
+\l{Using Variant Tags}{Variant tags} makes it possible to exclude layers during loading to
+optimize performance.
+
*/
diff --git a/doc/src/tutorials.qdoc b/doc/src/tutorials.qdoc
index c7b4d4ab..32ab7bc0 100644
--- a/doc/src/tutorials.qdoc
+++ b/doc/src/tutorials.qdoc
@@ -52,6 +52,10 @@
\l {Using Behavior Scripts}
Learn how to use behavior scripts in your project.
+ \li
+ \l {Using Variant Tags}
+
+ Learn how to use variant tags to exclude parts of a presentation during loading.
\endlist
*/
diff --git a/doc/src/variant-tags.qdoc b/doc/src/variant-tags.qdoc
new file mode 100644
index 00000000..142bce50
--- /dev/null
+++ b/doc/src/variant-tags.qdoc
@@ -0,0 +1,120 @@
+/****************************************************************************
+**
+** Copyright (C) 2019 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt 3D Studio.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Free Documentation License Usage
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file. Please review the following information to ensure
+** the GNU Free Documentation License version 1.3 requirements
+** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+
+\title Using Variant Tags
+\page using-variant-tags.html
+
+The variant tags feature in 3D Studio enables excluding parts of a presentation during loading.
+With variant tags you can avoid parsing and loading objects that are not needed in the presentation
+for certain variants, saving on loading time and resource usage.
+
+This makes it possible to create multiple variations of a product UI with one single Qt 3D Studio
+presentation.
+
+This page explains how to define and use variant tags in the editor. The variant tags will then
+be loaded from the QML application.
+
+\image variant-tags.png
+
+\section1 Create Variant Groups and Tags
+
+Variant filtering is done on layer level, to add a variant group and tags to that group,
+select a layer in the scene graph and follow the steps below:
+
+\list 1
+ \li In the inspector palette, press \uicontrol {+ Group} in the Variant Tags section.
+ \li Enter a group name, and press \uicontrol {Ok}.
+ \note Group names must be unique to the project.
+\endlist
+
+Once you have created a variant group, you can create variant tags under it. To do so,
+follow the steps below:
+
+\list 1
+ \li In the inspector palette, press the \uicontrol {+ Tag} next to the variant group name.
+ \li Enter a tag name, and press \uicontrol {Ok}.
+ \note Tag names must be unique to the variant group.
+\endlist
+
+\section1 Using Variant Tags
+
+To use a variant tag on a layer, follow the steps below:
+
+\list 1
+ \li In the scene graph, select desired layer
+ \li In the inspector palette, under the variant tag section, click desired variant tags to use
+ them on the layer.
+\endlist
+
+Once you have assigned variant tags to a layer, it is indicated in the scene graph which layers
+are using tags from which variant groups.
+
+\image variant-tags-layer.png
+
+It is also indicated in the slide palette, which slides are using tags from which variant groups.
+Here you can see the number of tags from each variant group used on each slide.
+
+\image variant-tags-slide.png
+
+\section1 Edit Variant Groups and Tags
+
+\section2 Edit a Variant Group
+
+You can edit name and color of a variant group. To do so, right-click the name of it in the
+inspector palette and select desired action from the context menu.
+
+\section2 Edit a Variant Tag
+You can edit the name of a variant tag. To do so, right-click the name of it in the inspector
+palette and select \uicontrol {Rename Tag} from the context menu.
+
+\section2 Delete a Variant Tag or Group
+
+You can delete a variant tag or group by right-clicking the name of it in the inspector palette and
+select \uicontrol {Delete Tag/Group}.
+
+\section1 Importing and Exporting Variant Groups
+
+You can import and export variant groups. Exporting will export all variant groups and tags to a
+\c {.variants} file, default location for the export file is the project's \e presentation folder.
+
+\section2 Export Variant Groups
+
+To export variant groups, select the \uicontrol {Export} button in the variant tags section
+in the inspector palette. Next, browse to the desired location, enter a file name,
+and press \uicontrol {Save}.
+
+\section2 Import Variant Groups
+
+To import variant groups, select the \uicontrol {Import} button in the variant tags section
+in the inspector palette. Next, browse to the desired \c .variants or \c .uia file and select
+\uicontrol{Ok}.
+
+When importing variant tags, imported tags will be merged with already existing tags.
+
+*/