![]() |
Qt 4.8
|
#include <qgraphicsscene_bsp_p.h>
Classes | |
| struct | Node |
Public Functions | |
| void | clear () |
| QString | debug (int index) const |
| int | firstChildIndex (int index) const |
| void | initialize (const QRectF &rect, int depth) |
| void | insertItem (QGraphicsItem *item, const QRectF &rect) |
| QList< QGraphicsItem * > | items (const QRectF &rect, bool onlyTopLevelItems=false) const |
| int | leafCount () const |
| int | parentIndex (int index) const |
| QGraphicsSceneBspTree () | |
| void | removeItem (QGraphicsItem *item, const QRectF &rect) |
| void | removeItems (const QSet< QGraphicsItem *> &items) |
| ~QGraphicsSceneBspTree () | |
Private Functions | |
| void | climbTree (QGraphicsSceneBspTreeVisitor *visitor, const QRectF &rect, int index=0) const |
| void | initialize (const QRectF &rect, int depth, int index) |
| QRectF | rectForIndex (int index) const |
Definition at line 72 of file qgraphicsscene_bsp_p.h.
| QGraphicsSceneBspTree::QGraphicsSceneBspTree | ( | ) |
Definition at line 89 of file qgraphicsscene_bsp.cpp.
| QGraphicsSceneBspTree::~QGraphicsSceneBspTree | ( | ) |
Definition at line 97 of file qgraphicsscene_bsp.cpp.
| void QGraphicsSceneBspTree::clear | ( | ) |
Definition at line 116 of file qgraphicsscene_bsp.cpp.
|
private |
Definition at line 237 of file qgraphicsscene_bsp.cpp.
Referenced by insertItem(), items(), parentIndex(), and removeItem().
| QString QGraphicsSceneBspTree::debug | ( | int | index | ) | const |
Definition at line 166 of file qgraphicsscene_bsp.cpp.
Referenced by parentIndex().
|
inline |
Definition at line 98 of file qgraphicsscene_bsp_p.h.
Referenced by climbTree(), debug(), and initialize().
| void QGraphicsSceneBspTree::initialize | ( | const QRectF & | rect, |
| int | depth | ||
| ) |
Definition at line 104 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex(), initialize(), and parentIndex().
|
private |
Definition at line 192 of file qgraphicsscene_bsp.cpp.
| void QGraphicsSceneBspTree::insertItem | ( | QGraphicsItem * | item, |
| const QRectF & | rect | ||
| ) |
Definition at line 123 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
| QList< QGraphicsItem * > QGraphicsSceneBspTree::items | ( | const QRectF & | rect, |
| bool | onlyTopLevelItems = false |
||
| ) | const |
Definition at line 149 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::estimateItems(), and QGraphicsSceneBspTreeVisitor::~QGraphicsSceneBspTreeVisitor().
| int QGraphicsSceneBspTree::leafCount | ( | ) | const |
Definition at line 161 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
|
inline |
Definition at line 101 of file qgraphicsscene_bsp_p.h.
Referenced by rectForIndex().
|
private |
Definition at line 270 of file qgraphicsscene_bsp.cpp.
Referenced by debug(), and parentIndex().
| void QGraphicsSceneBspTree::removeItem | ( | QGraphicsItem * | item, |
| const QRectF & | rect | ||
| ) |
Definition at line 129 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::removeItem().
| void QGraphicsSceneBspTree::removeItems | ( | const QSet< QGraphicsItem *> & | items | ) |
Definition at line 135 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::purgeRemovedItems().
|
private |
Definition at line 118 of file qgraphicsscene_bsp_p.h.
Referenced by items(), QGraphicsSceneBspTree(), and ~QGraphicsSceneBspTree().
|
private |
Definition at line 116 of file qgraphicsscene_bsp_p.h.
Referenced by insertItem(), QGraphicsSceneBspTree(), and ~QGraphicsSceneBspTree().
|
private |
Definition at line 113 of file qgraphicsscene_bsp_p.h.
Referenced by clear(), initialize(), and leafCount().
|
private |
Definition at line 112 of file qgraphicsscene_bsp_p.h.
Referenced by clear(), climbTree(), debug(), initialize(), and removeItems().
Definition at line 111 of file qgraphicsscene_bsp_p.h.
Referenced by clear(), climbTree(), debug(), initialize(), and rectForIndex().
|
private |
Definition at line 114 of file qgraphicsscene_bsp_p.h.
Referenced by debug(), initialize(), parentIndex(), and rectForIndex().
|
private |
Definition at line 117 of file qgraphicsscene_bsp_p.h.
Referenced by QGraphicsSceneBspTree(), removeItem(), and ~QGraphicsSceneBspTree().