summaryrefslogtreecommitdiffstats
path: root/src/render/geometry/qmesh.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@theqtcompany.com>2016-01-20 06:21:10 +0200
committerTomi Korpipää <tomi.korpipaa@theqtcompany.com>2016-01-20 11:08:08 +0000
commit03dc44479b8cfff3946dcb5a16a7f450cbf78ce7 (patch)
treeca125c5e5f0286a343cbefc6960c155dd8b19e12 /src/render/geometry/qmesh.cpp
parent4d70b9af0049562cfb8cc12ebb68f3281fc96c69 (diff)
Added skeleton docs to geometry classes
Change-Id: I312b3f1eed1578899319cfc30b9bad143c5c467e Task-number: QTBUG-46037 Reviewed-by: Pasi Keränen <pasi.keranen@theqtcompany.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/geometry/qmesh.cpp')
-rw-r--r--src/render/geometry/qmesh.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/render/geometry/qmesh.cpp b/src/render/geometry/qmesh.cpp
index 873769bd7..54b9d8e35 100644
--- a/src/render/geometry/qmesh.cpp
+++ b/src/render/geometry/qmesh.cpp
@@ -72,11 +72,45 @@ QMeshPrivate::QMeshPrivate()
{
}
+/*!
+ * \qmltype Mesh
+ * \instantiates Qt3DRender::QMesh
+ * \inqmlmodule Qt3D.Render
+ * \brief A custom mesh.
+ */
+
+/*!
+ * \qmlproperty url Mesh::source
+ *
+ * Holds the source url to the file containing the custom mesh.
+ */
+
+/*!
+ * \qmlproperty string Mesh::subMesh
+ *
+ * Holds the subMesh for the mesh.
+ */
+
+/*!
+ * \class Qt3DRender::QMesh
+ * \inmodule Qt3DRender
+ *
+ * \inherits Qt3DRender::QGeometryRenderer
+ *
+ * \brief A custom mesh.
+ */
+
+/*!
+ * Constructs a new QMesh with \a parent.
+ */
QMesh::QMesh(QNode *parent)
: QGeometryRenderer(*new QMeshPrivate, parent)
{
}
+/*!
+ * Destroys this mesh.
+ */
QMesh::~QMesh()
{
QNode::cleanup();
@@ -99,6 +133,11 @@ void QMesh::setSource(const QUrl& source)
emit sourceChanged(source);
}
+/*!
+ * \property QMesh::source
+ *
+ * Holds the \a source url to the file containing the custom mesh.
+ */
QUrl QMesh::source() const
{
Q_D(const QMesh);
@@ -116,12 +155,20 @@ void QMesh::setSubMesh(const QString &subMesh)
emit subMeshChanged(subMesh);
}
+/*!
+ * \property QMesh::subMesh
+ *
+ * Holds the subMesh for the mesh.
+ */
QString QMesh::subMesh() const
{
Q_D(const QMesh);
return d->m_subMesh;
}
+/*!
+ * \internal
+ */
MeshFunctor::MeshFunctor(const QUrl &sourcePath, const QString& subMesh)
: QGeometryFunctor()
, m_sourcePath(sourcePath)
@@ -129,6 +176,9 @@ MeshFunctor::MeshFunctor(const QUrl &sourcePath, const QString& subMesh)
{
}
+/*!
+ * \internal
+ */
QGeometry *MeshFunctor::operator()()
{
if (m_sourcePath.isEmpty()) {
@@ -153,6 +203,9 @@ QGeometry *MeshFunctor::operator()()
return Q_NULLPTR;
}
+/*!
+ * \internal
+ */
bool MeshFunctor::operator ==(const QGeometryFunctor &other) const
{
const MeshFunctor *otherFunctor = functor_cast<MeshFunctor>(&other);