![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qgraphicsscenebsptreeindex_p.h>
Static Public Member Functions | |
static void | climbTree (QGraphicsItem *item, int *stackingOrder) |
static bool | closestItemFirst_withCache (const QGraphicsItem *item1, const QGraphicsItem *item2) |
static bool | closestItemLast_withCache (const QGraphicsItem *item1, const QGraphicsItem *item2) |
static void | sortItems (QList< QGraphicsItem * > *itemList, Qt::SortOrder order, bool cached, bool onlyTopLevelItems=false) |
Sort a list of itemList in a specific order and use the cache if requested. | |
Static Public Member Functions inherited from QGraphicsSceneIndexPrivate | |
static bool | itemCollidesWithPath (const QGraphicsItem *item, const QPainterPath &path, Qt::ItemSelectionMode mode) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1, typename Func2> | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1, typename Func2> | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 76 of file qgraphicsscenebsptreeindex_p.h.
QGraphicsSceneBspTreeIndexPrivate::QGraphicsSceneBspTreeIndexPrivate | ( | QGraphicsScene * | scene | ) |
Constructs a private scene bsp index.
Definition at line 63 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex | ( | ) |
This method will update the BSP index by removing the items from the temporary unindexed list and add them in the indexedItems list.
This will also update the growingItemsBoundingRect if needed. This will update the BSP implementation as well.
Definition at line 84 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::_q_updateSortCache | ( | ) |
Definition at line 229 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::addItem | ( | QGraphicsItem * | item, |
bool | recursive = false ) |
Definition at line 266 of file qgraphicsscenebsptreeindex.cpp.
|
static |
Definition at line 205 of file qgraphicsscenebsptreeindex.cpp.
|
inlinestatic |
Definition at line 113 of file qgraphicsscenebsptreeindex_p.h.
|
inlinestatic |
Definition at line 117 of file qgraphicsscenebsptreeindex_p.h.
QList< QGraphicsItem * > QGraphicsSceneBspTreeIndexPrivate::estimateItems | ( | const QRectF & | rect, |
Qt::SortOrder | order, | ||
bool | b = false ) |
Definition at line 340 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::invalidateSortCache | ( | ) |
Definition at line 256 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::purgeRemovedItems | ( | ) |
Removes stale pointers from all data structures.
Definition at line 150 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::removeItem | ( | QGraphicsItem * | item, |
bool | recursive = false, | ||
bool | moveToUnindexedItems = false ) |
Definition at line 297 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::resetIndex | ( | ) |
Definition at line 185 of file qgraphicsscenebsptreeindex.cpp.
|
static |
Sort a list of itemList in a specific order and use the cache if requested.
Definition at line 376 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::startIndexTimer | ( | int | interval = QGRAPHICSSCENE_INDEXTIMER_TIMEOUT | ) |
Starts or restarts the timer used for reindexing unindexed items.
Definition at line 172 of file qgraphicsscenebsptreeindex.cpp.
QGraphicsSceneBspTree QGraphicsSceneBspTreeIndexPrivate::bsp |
Definition at line 82 of file qgraphicsscenebsptreeindex_p.h.
int QGraphicsSceneBspTreeIndexPrivate::bspTreeDepth |
Definition at line 84 of file qgraphicsscenebsptreeindex_p.h.
QList<int> QGraphicsSceneBspTreeIndexPrivate::freeItemIndexes |
Definition at line 93 of file qgraphicsscenebsptreeindex_p.h.
QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::indexedItems |
Definition at line 90 of file qgraphicsscenebsptreeindex_p.h.
QBasicTimer QGraphicsSceneBspTreeIndexPrivate::indexTimer |
Definition at line 85 of file qgraphicsscenebsptreeindex_p.h.
int QGraphicsSceneBspTreeIndexPrivate::lastItemCount |
Definition at line 88 of file qgraphicsscenebsptreeindex_p.h.
bool QGraphicsSceneBspTreeIndexPrivate::purgePending |
Definition at line 95 of file qgraphicsscenebsptreeindex_p.h.
bool QGraphicsSceneBspTreeIndexPrivate::regenerateIndex |
Definition at line 87 of file qgraphicsscenebsptreeindex_p.h.
QSet<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::removedItems |
Definition at line 96 of file qgraphicsscenebsptreeindex_p.h.
bool QGraphicsSceneBspTreeIndexPrivate::restartIndexTimer |
Definition at line 86 of file qgraphicsscenebsptreeindex_p.h.
QRectF QGraphicsSceneBspTreeIndexPrivate::sceneRect |
Definition at line 83 of file qgraphicsscenebsptreeindex_p.h.
bool QGraphicsSceneBspTreeIndexPrivate::sortCacheEnabled |
Definition at line 104 of file qgraphicsscenebsptreeindex_p.h.
QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::unindexedItems |
Definition at line 91 of file qgraphicsscenebsptreeindex_p.h.
QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::untransformableItems |
Definition at line 92 of file qgraphicsscenebsptreeindex_p.h.
bool QGraphicsSceneBspTreeIndexPrivate::updatingSortCache |
Definition at line 105 of file qgraphicsscenebsptreeindex_p.h.