summaryrefslogtreecommitdiffstats
path: root/src/runtime/api/q3dsviewersettings.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-05-22 10:24:00 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-05-23 10:52:53 +0000
commit556fa62d1fa03ad0e216d12c9ffdeec81b55bfa8 (patch)
treea31ababb9fa47c91b1c7446f9f899a7e918685e2 /src/runtime/api/q3dsviewersettings.cpp
parente3f96c934f5ef2251b6748c18e7709fb98033e55 (diff)
doc: finish up the C++ docs
Change-Id: I26abc856bba4c150b918e1800a2eb34b44bc9f81 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/runtime/api/q3dsviewersettings.cpp')
-rw-r--r--src/runtime/api/q3dsviewersettings.cpp50
1 files changed, 49 insertions, 1 deletions
diff --git a/src/runtime/api/q3dsviewersettings.cpp b/src/runtime/api/q3dsviewersettings.cpp
index d1c1013..c6c65fd 100644
--- a/src/runtime/api/q3dsviewersettings.cpp
+++ b/src/runtime/api/q3dsviewersettings.cpp
@@ -66,6 +66,32 @@ Q3DSViewerSettings::~Q3DSViewerSettings()
{
}
+/*!
+ \enum Q3DSViewerSettings::ShadeMode
+
+ This enumeration specifies the possible shading modes.
+
+ \value ShadeModeShaded The objects in the presentation are shaded normally.
+ \value ShadeModeShadedWireframe The objects in the presentation are shaded
+ with a super-imposed wireframe on top of the normal shading. Only objects that specify
+ a tesselation mode will display this wireframe.
+*/
+
+/*!
+ \enum Q3DSViewerSettings::ScaleMode
+
+ This enumeration specifies the possible scaling modes.
+
+ \value ScaleModeFit Scales the presentation to fit the viewer.
+ \value ScaleModeFill Scales the presentation to fill the viewer.
+ \value ScaleModeCenter Centers the presentation into the viewer without scaling it.
+*/
+
+/*!
+ \property Q3DSViewerSettings::matteColor
+
+ \note This property is currently ignored.
+ */
QColor Q3DSViewerSettings::matteColor() const
{
Q_D(const Q3DSViewerSettings);
@@ -75,7 +101,7 @@ QColor Q3DSViewerSettings::matteColor() const
/*!
\property Q3DSViewerSettings::showRenderStats
- If this property is set to \c{true}, the interactive statistics and profile
+ When this property is \c{true}, the interactive statistics and profile
view is displayed in-scene, on top of the 3D content.
\note This feature can be disabled at build time, in which case this
@@ -89,12 +115,22 @@ bool Q3DSViewerSettings::isShowingRenderStats() const
return d->showRenderStats;
}
+/*!
+ \property Q3DSViewerSettings::shadeMode
+
+ \note This property is currently ignored.
+ */
Q3DSViewerSettings::ShadeMode Q3DSViewerSettings::shadeMode() const
{
Q_D(const Q3DSViewerSettings);
return d->shadeMode;
}
+/*!
+ \property Q3DSViewerSettings::scaleMode
+
+ \note This property is currently ignored.
+ */
Q3DSViewerSettings::ScaleMode Q3DSViewerSettings::scaleMode() const
{
Q_D(const Q3DSViewerSettings);
@@ -140,6 +176,12 @@ void Q3DSViewerSettings::setScaleMode(Q3DSViewerSettings::ScaleMode mode)
}
}
+/*!
+ Persistently saves the viewer \l{QSettings}{settings} using \a group, \a organization and
+ \a application.
+
+ \note This function is not currently implemented.
+ */
void Q3DSViewerSettings::save(const QString &group,
const QString &organization,
const QString &application)
@@ -150,6 +192,12 @@ void Q3DSViewerSettings::save(const QString &group,
qWarning() << Q_FUNC_INFO << "not implemented";
}
+/*!
+ Loads previously saved viewer \l{QSettings}{settings} using \a group, \a organization and
+ \a application.
+
+ \note This function is not currently implemented.
+ */
void Q3DSViewerSettings::load(const QString &group,
const QString &organization,
const QString &application)