summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Compile fix with namepaceshjk2009-07-201-9/+4
| | | | | | Some QT_{BEGIN,END}_HEADER macros had been missing or misplaced. Reviewed-by: thiago
* Fix license header in new files - make testcase pass.Volker Hilsheimer2009-07-151-3/+3
|
* Fixed linking of QtSvg with MSVC.Rohan McGovern2009-07-131-18/+0
|
* More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-07-021-3/+5
| | | | | | | | | | New method: QGraphicsSceneIndex::estimateTopLevelItems. QGraphicsSceneIndex::estimateItems returns *all* items within the rect, but we are only interested in the top-levels (those that are within the rect themselves or have descendants within the rect) when doing recursive drawing/item-lookup. All auto-tests pass. Demos/examples/manualtests run fine.
* Speedup item-lookup in Graphics View.Bjørn Erik Nilsen2009-07-021-13/+5
| | | | | | | | | We don't have to do a stable sort anymore because the lessThan operator now accounts for the insertion order. This also means we don't have to sort all top-level items to preserve the insertion order in QGraphicsScenePrivate::topLevelItemsInStackingOrder. Reviewed-by: Andreas
* More BSP tree index cleanup.Bjørn Erik Nilsen2009-06-301-0/+1
| | | | | | | | Ensure the index of indexed items are reset to -1. Makes tst_QGraphicsScene::itemIndexMethod happy. (this test passed before we actually started using the BSP from the items() functions, see 6ee3fb750377eeedf161d96fef02c5fa336810e9)
* More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-06-301-7/+5
| | | | | | | | | | Mostly re-factoring of QGraphicsSceneIndexPrivate::recursive_items_helper so it can re-use code from the scene (topLevelItemsInStackingOrder). That also means we'll use the bsp tree in case of NoIndex instead of always looping through the top-levels. This function is now almost identical to QGraphicsScenePrivate::drawSubtreeRecursive, so it might be worth looking into how we can abstract it even more and have one common recursive function.
* Proper handling of scene rect in QGraphicsScene(Index).Bjørn Erik Nilsen2009-06-261-1/+3
| | | | Reviewed-by: Andreas
* Re-factor parts of the QGraphicsSceneBspTreeIndex.Bjørn Erik Nilsen2009-06-251-4/+2
| | | | | This patch adds better support for untransformable items and removes some redundant code.
* More work on getting autotests to pass.Andreas Aardal Hanssen2009-06-231-2/+1
|
* Move QGraphicsSceneBspTreeIndex into private headers (=> _p.h).Andreas Aardal Hanssen2009-06-181-9/+57
| | | | | | We'll keep this as private API for now. Reviewed-by: Alexis
* Changes after first round of code reviewing.Andreas Aardal Hanssen2009-06-181-2/+3
| | | | | | | This change removes all code that handles ItemIgnoresTransformations from QGraphicsView, and changes the APIs of the scene index intersectors. Reviewed-by: Alexis
* API / code review for QGraphicsSceneIndex (internal API).Andreas Aardal Hanssen2009-06-171-0/+40
| | | | | A few minor modifications only, marked some things as ### obsolete, removed the public get/set for the index (it's internal anyway).
* Make eveything internal for now but ready to see the light.Alexis Menard2009-06-171-44/+93
|
* Remove old legacy and fix documentation.Alexis Menard2009-06-161-2/+3
|
* Remove the sorting cache from the QGraphicsScene and move it to the BSP.Alexis Menard2009-06-031-33/+18
| | | | | Now the QGraphicsScene has no idea how works the index. So we can improve it separatly, add new ones and benchmarks existing ones.
* Add an API to know the indexed rect of the index.Alexis Menard2009-05-291-0/+1
| | | | | Usefull for the POV of the scene and let the BSP update its internal structure before the next event loop reentrancy.
* First bunch of changes after an very first API reviewAlexis Menard2009-05-291-11/+7
| | | | | | This basically move some logic from the scene to the index base class. Lot of work need to be done in order to benefits from the device transform. The sorting needs to be move in the BSP tree.
* Remove the indexing (BSP) logic from the sceneAlexis Menard2009-04-071-0/+118
We basically add a new index that implement the old BSP logic but in a separate class instead of living into the QGraphicsScene. It will be much more easier to add a new index method or for people to use their own Conflicts: src/gui/graphicsview/qgraphicsitem.cpp src/gui/graphicsview/qgraphicssceneindex.h