summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qmesh.h
Commit message (Collapse)AuthorAgeFilesLines
* Copyright header change.Mika Salmela2015-02-091-19/+14
| | | | | | | | As for preparation for Qt5.5 release the copyright header is updated to correspond the current license requirements. Change-Id: I36632918b66f455539453b42c369689fb11298ec Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QMesh: source is now a QUrlPaul Lemire2014-10-271-3/+4
| | | | | | Change-Id: I14d50550971836be2c5d8942c5240a6b12f8bc8b Task-number: QTBUG-41527 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractMeshData merged with QMeshData and moved to RendererPaul Lemire2014-10-221-3/+3
| | | | | | | That implied moving QAbstractMesh to Renderer as well. Change-Id: I9013bf0458b849f7805d214a70580a80e86d8c84 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Have copy() only on QNodeKevin Ottens2014-10-161-0/+1
| | | | | | | | | | It was previously both on QNode and QNodePrivate. The one on QNodePrivate didn't give us much as it didn't eliminate the virtual of QNode. Change-Id: Ia1ea9dd831674109c84bd7005abe7fde3b1223fa Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Hide doClone implementations behind a macroKevin Ottens2014-10-151-1/+1
| | | | | | | | | This way we will avoid inconsistencies. It also means making some of the copy() implementations more clever. Change-Id: Ic79c9ec7c9c32f8951d5d9f5184592880bf8d5fd Reviewed-by: James Turner <james.turner@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QNode refactoringPaul Lemire2014-10-031-4/+4
| | | | | | | | | | | | | | | | Move almost everything to private classes. Assimp loading restored. All examples working. QNode hierachy is now handled through QObject::setParent, addChild, removeChild are part of the private api. Note: commented QChangeArbiter unit tests as they can no longer work with this patch and will restore them when QChangeArbiter will have been made private. Task-number: QTBUG-41470 Task-number: QTBUG-41523 Change-Id: I4430974b3aa7f3744c38714b451b122e0cb4d0c9 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Improved/Refactored cloning and doClone off all subclassesPaul Lemire2014-09-301-1/+1
| | | | | | | | Note: As we are using QScene during cloning, it is important that node hierarchy be created and added in the proper order (parent then child). Change-Id: I8fd53f7ca696ec9aca19cc70dc116ccba4154911 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Rename MeshData -> QMeshDataSean Harmer2014-08-181-1/+1
| | | | | Change-Id: I23a466ebd29666bed1c56f29c6f049544a4eca23 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QMesh implements doClone and copy methodsPaul Lemire2014-08-131-1/+3
| | | | | Change-Id: I6cc6097d7c4f9e3742f514a17a467a4acb1b56d6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractMeshFunctorPaul Lemire2014-07-191-1/+1
| | | | | | | | | | | | | Each QAbstractMesh class now has to implement a QAbstractMeshFunctor class. When a mesh is set to dirty, the functor is sent through a QChangeArbiter notification to the backend. The backend, using the functor can then rebuild the mesh. There should be no issue if the frontend mesh is deleted while the backend is creating the mesh as the functor has no direct reference to the frontend element and contains all the data needed for a complete creation of the mesh. Change-Id: I4984f03a612e74c688bfb6cc2f19d9241b517457 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Renamed Node to QNodePaul Lemire2014-07-051-2/+2
| | | | | Change-Id: I0a0ebde1c107db8831b596eab1e512a2062979f7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Refactored QAbstractMesh, QMesh and QAbstractShapeMeshPaul Lemire2014-07-051-4/+1
| | | | | | | | | | | | The Backend now monitors QAbstractMesh elements instead of QMesh. QAbstractMesh subclasses have to implement a load method. For QMesh it uses the ObjLoader to create MeshData from a source file while QAbstractShapeMesh loads MeshData created by code. Each scene parser can then implement its own QAbstractMesh subclass. The loadmeshdatajobs has been corrected and works with QAbstractMesh. Change-Id: I5caae63a153f18eaae3b2f1bdbfa8995c63a2d23 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Refactoring of MeshData, Buffer, Mesh and AttributePaul Lemire2014-07-051-3/+10
| | | | | | | | | | | | They are now subclasses of the abstracts defined in the previous path. QAbstractMesh's source property was transferred to QMesh, this will allow to have ShapeMeshes subclass QAbstractMesh directly and not have a useless source property. MeshData, Buffer and Attribute moved to their own files and properly d-pointered. Change-Id: I6d09b00a17045826e16503f5fb2d8f8eb0f2abf2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractShapeMesh is a subclass of QMeshPaul Lemire2014-07-051-1/+3
| | | | | | | Shapes are now subclasses of QMesh. The backend now treats shapes as meshes. Change-Id: I93a976e6c8c7224110d970baa84403f2b2f2c902 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* d-pointer in QMeshPaul Lemire2014-07-051-6/+6
| | | | | Change-Id: I24ee1fb47a6efa33a854ddb8774b5cc559236f0c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Renamed Mesh to QMeshPaul Lemire2014-07-051-0/+81
Change-Id: Ic6a6a67814a992bef4c88b3409b140b011509668 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>