![]() |
Qt 6.x
The Qt SDK
|
#include <qgraphicsscene_bsp_p.h>
Collaboration diagram for QGraphicsSceneBspTree:Classes | |
| struct | Node |
Public Member Functions | |
| QGraphicsSceneBspTree () | |
| ~QGraphicsSceneBspTree () | |
| void | initialize (const QRectF &rect, int depth) |
| void | clear () |
| void | insertItem (QGraphicsItem *item, const QRectF &rect) |
| void | removeItem (QGraphicsItem *item, const QRectF &rect) |
| void | removeItems (const QSet< QGraphicsItem * > &items) |
| QList< QGraphicsItem * > | items (const QRectF &rect, bool onlyTopLevelItems=false) const |
| int | leafCount () const |
| int | firstChildIndex (int index) const |
| int | parentIndex (int index) const |
| QString | debug (int index) const |
Definition at line 29 of file qgraphicsscene_bsp_p.h.
| QT_BEGIN_NAMESPACE QGraphicsSceneBspTree::QGraphicsSceneBspTree | ( | ) |
Definition at line 12 of file qgraphicsscene_bsp.cpp.
| QGraphicsSceneBspTree::~QGraphicsSceneBspTree | ( | ) |
Definition at line 17 of file qgraphicsscene_bsp.cpp.
| void QGraphicsSceneBspTree::clear | ( | ) |
Definition at line 33 of file qgraphicsscene_bsp.cpp.
References QList< T >::clear().
Here is the call graph for this function:| QString QGraphicsSceneBspTree::debug | ( | int | index | ) | const |
Definition at line 93 of file qgraphicsscene_bsp.cpp.
References QString::arg(), debug, firstChildIndex(), QString::fromLatin1(), QGraphicsSceneBspTree::Node::Horizontal, QList< T >::isEmpty(), QGraphicsSceneBspTree::Node::Leaf, QGraphicsSceneBspTree::Node::leafIndex, rect, QList< T >::size(), and QGraphicsSceneBspTree::Node::type.
Here is the call graph for this function:
|
inline |
Definition at line 55 of file qgraphicsscene_bsp_p.h.
Referenced by debug().
Here is the caller graph for this function:Definition at line 21 of file qgraphicsscene_bsp.cpp.
References QList< T >::fill(), initialize(), rect, and QList< T >::resize().
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
Here is the call graph for this function:
Here is the caller graph for this function:| void QGraphicsSceneBspTree::insertItem | ( | QGraphicsItem * | item, |
| const QRectF & | rect | ||
| ) |
Definition at line 40 of file qgraphicsscene_bsp.cpp.
References item, items, QList< T >::prepend(), and rect.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
Here is the call graph for this function:
Here is the caller graph for this function:| QList< QGraphicsItem * > QGraphicsSceneBspTree::items | ( | const QRectF & | rect, |
| bool | onlyTopLevelItems = false |
||
| ) | const |
Definition at line 68 of file qgraphicsscene_bsp.cpp.
References QList< T >::at(), QGraphicsItem::d_ptr, i, item, items, QGraphicsItemPrivate::parent, QList< T >::prepend(), rect, QList< T >::size(), QGraphicsItem::topLevelItem(), and QGraphicsItemPrivate::visible.
Referenced by QGraphicsSceneBspTreeIndexPrivate::estimateItems().
Here is the call graph for this function:
Here is the caller graph for this function:| int QGraphicsSceneBspTree::leafCount | ( | ) | const |
Definition at line 88 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
Here is the caller graph for this function:
|
inline |
Definition at line 58 of file qgraphicsscene_bsp_p.h.
| void QGraphicsSceneBspTree::removeItem | ( | QGraphicsItem * | item, |
| const QRectF & | rect | ||
| ) |
Definition at line 47 of file qgraphicsscene_bsp.cpp.
References item, items, rect, and QList< T >::removeAll().
Referenced by QGraphicsSceneBspTreeIndexPrivate::removeItem().
Here is the call graph for this function:
Here is the caller graph for this function:| void QGraphicsSceneBspTree::removeItems | ( | const QSet< QGraphicsItem * > & | items | ) |
Definition at line 54 of file qgraphicsscene_bsp.cpp.
References QList< T >::at(), QListSpecialMethodsBase< T >::contains(), i, item, items, j, and QList< T >::size().
Referenced by QGraphicsSceneBspTreeIndexPrivate::purgeRemovedItems().
Here is the call graph for this function:
Here is the caller graph for this function: