42 #ifndef QGRAPHICSSCENEBSPTREE_P_H 43 #define QGRAPHICSSCENEBSPTREE_P_H 56 #include <QtCore/qlist.h> 58 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW 60 #include <QtCore/qrect.h> 61 #include <QtCore/qset.h> 62 #include <QtCore/qvector.h> 99 {
return index * 2 + 1; }
102 {
return index > 0 ? ((index & 1) ? ((index - 1) / 2) : ((index - 2) / 2)) : -1; }
130 #endif // QT_NO_GRAPHICSVIEW 132 #endif // QGRAPHICSSCENEBSPTREE_P_H
QGraphicsSceneFindItemBspTreeVisitor * findVisitor
#define QT_END_NAMESPACE
This macro expands to.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
void initialize(const QRectF &rect, int depth)
int firstChildIndex(int index) const
QList< QGraphicsItem * > items(const QRectF &rect, bool onlyTopLevelItems=false) const
The QString class provides a Unicode character string.
The QVector class is a template class that provides a dynamic array.
int parentIndex(int index) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
virtual ~QGraphicsSceneBspTreeVisitor()
QGraphicsSceneInsertItemBspTreeVisitor * insertVisitor
QGraphicsSceneRemoveItemBspTreeVisitor * removeVisitor
void insertItem(QGraphicsItem *item, const QRectF &rect)
void climbTree(QGraphicsSceneBspTreeVisitor *visitor, const QRectF &rect, int index=0) const
QString debug(int index) const
QVector< QList< QGraphicsItem * > > leaves
void removeItems(const QSet< QGraphicsItem *> &items)
void removeItem(QGraphicsItem *item, const QRectF &rect)
The QList class is a template class that provides lists.
QRectF rectForIndex(int index) const