![]() |
Qt 6.x
The Qt SDK
|
#include <qgraphicsscene_bsp_p.h>
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().
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.
|
inline |
Definition at line 55 of file qgraphicsscene_bsp_p.h.
Referenced by debug().
Definition at line 21 of file qgraphicsscene_bsp.cpp.
References QList< T >::fill(), initialize(), rect, and QList< T >::resize().
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
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().
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().
int QGraphicsSceneBspTree::leafCount | ( | ) | const |
Definition at line 88 of file qgraphicsscene_bsp.cpp.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().
|
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().
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().