Qt 4.8
|
#include <qgraphicsscenebsptreeindex_p.h>
Public Functions | |
void | _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. More... | |
void | _q_updateSortCache () |
void | addItem (QGraphicsItem *item, bool recursive=false) |
QList< QGraphicsItem * > | estimateItems (const QRectF &, Qt::SortOrder, bool b=false) |
void | invalidateSortCache () |
void | purgeRemovedItems () |
Removes stale pointers from all data structures. More... | |
QGraphicsSceneBspTreeIndexPrivate (QGraphicsScene *scene) | |
Constructs a private scene bsp index. More... | |
void | removeItem (QGraphicsItem *item, bool recursive=false, bool moveToUnindexedItems=false) |
void | resetIndex () |
void | startIndexTimer (int interval=QGRAPHICSSCENE_INDEXTIMER_TIMEOUT) |
Starts or restarts the timer used for reindexing unindexed items. More... | |
Public Functions inherited from QGraphicsSceneIndexPrivate | |
void | init () |
void | items_helper (const QRectF &rect, QGraphicsSceneIndexIntersector *intersector, QList< QGraphicsItem *> *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, Qt::SortOrder order) const |
QGraphicsSceneIndexPrivate (QGraphicsScene *scene) | |
Constructs a private scene index. More... | |
void | recursive_items_helper (QGraphicsItem *item, QRectF exposeRect, QGraphicsSceneIndexIntersector *intersector, QList< QGraphicsItem *> *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, qreal parentOpacity=1.0) const |
This function returns the items in ascending order. More... | |
~QGraphicsSceneIndexPrivate () | |
Destructor of private scene index. More... | |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Static Public 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. More... | |
Static Public Functions inherited from QGraphicsSceneIndexPrivate | |
static bool | itemCollidesWithPath (const QGraphicsItem *item, const QPainterPath &path, Qt::ItemSelectionMode mode) |
Checks if item collides with the path and mode, but also checks that if it doesn't collide, maybe its frame rect will. More... | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Definition at line 112 of file qgraphicsscenebsptreeindex_p.h.
QGraphicsSceneBspTreeIndexPrivate::QGraphicsSceneBspTreeIndexPrivate | ( | QGraphicsScene * | scene | ) |
Constructs a private scene bsp index.
Definition at line 101 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 123 of file qgraphicsscenebsptreeindex.cpp.
Referenced by _q_updateSortCache().
void QGraphicsSceneBspTreeIndexPrivate::_q_updateSortCache | ( | ) |
Definition at line 275 of file qgraphicsscenebsptreeindex.cpp.
Referenced by estimateItems().
void QGraphicsSceneBspTreeIndexPrivate::addItem | ( | QGraphicsItem * | item, |
bool | recursive = false |
||
) |
Definition at line 312 of file qgraphicsscenebsptreeindex.cpp.
Referenced by removeItem().
|
static |
Definition at line 251 of file qgraphicsscenebsptreeindex.cpp.
Referenced by _q_updateSortCache().
|
inlinestatic |
|
inlinestatic |
QList< QGraphicsItem * > QGraphicsSceneBspTreeIndexPrivate::estimateItems | ( | const QRectF & | rect, |
Qt::SortOrder | order, | ||
bool | b = false |
||
) |
Definition at line 385 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::invalidateSortCache | ( | ) |
Definition at line 302 of file qgraphicsscenebsptreeindex.cpp.
Referenced by addItem(), and removeItem().
void QGraphicsSceneBspTreeIndexPrivate::purgeRemovedItems | ( | ) |
Removes stale pointers from all data structures.
Definition at line 193 of file qgraphicsscenebsptreeindex.cpp.
Referenced by _q_updateIndex(), addItem(), estimateItems(), and resetIndex().
void QGraphicsSceneBspTreeIndexPrivate::removeItem | ( | QGraphicsItem * | item, |
bool | recursive = false , |
||
bool | moveToUnindexedItems = false |
||
) |
Definition at line 343 of file qgraphicsscenebsptreeindex.cpp.
void QGraphicsSceneBspTreeIndexPrivate::resetIndex | ( | ) |
Definition at line 231 of file qgraphicsscenebsptreeindex.cpp.
|
static |
Sort a list of itemList in a specific order and use the cache if requested.
Definition at line 421 of file qgraphicsscenebsptreeindex.cpp.
Referenced by estimateItems().
void QGraphicsSceneBspTreeIndexPrivate::startIndexTimer | ( | int | interval = QGRAPHICSSCENE_INDEXTIMER_TIMEOUT | ) |
Starts or restarts the timer used for reindexing unindexed items.
Definition at line 218 of file qgraphicsscenebsptreeindex.cpp.
Referenced by addItem(), and resetIndex().
QGraphicsSceneBspTree QGraphicsSceneBspTreeIndexPrivate::bsp |
Definition at line 118 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), estimateItems(), purgeRemovedItems(), and removeItem().
int QGraphicsSceneBspTreeIndexPrivate::bspTreeDepth |
Definition at line 120 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex().
QList<int> QGraphicsSceneBspTreeIndexPrivate::freeItemIndexes |
Definition at line 129 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), purgeRemovedItems(), removeItem(), and resetIndex().
QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::indexedItems |
Definition at line 126 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), addItem(), purgeRemovedItems(), removeItem(), and resetIndex().
int QGraphicsSceneBspTreeIndexPrivate::indexTimerId |
Definition at line 121 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), and startIndexTimer().
int QGraphicsSceneBspTreeIndexPrivate::lastItemCount |
Definition at line 124 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex().
bool QGraphicsSceneBspTreeIndexPrivate::purgePending |
Definition at line 131 of file qgraphicsscenebsptreeindex_p.h.
Referenced by purgeRemovedItems(), and removeItem().
bool QGraphicsSceneBspTreeIndexPrivate::regenerateIndex |
Definition at line 123 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), and resetIndex().
QSet<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::removedItems |
Definition at line 132 of file qgraphicsscenebsptreeindex_p.h.
Referenced by purgeRemovedItems(), and removeItem().
bool QGraphicsSceneBspTreeIndexPrivate::restartIndexTimer |
Definition at line 122 of file qgraphicsscenebsptreeindex_p.h.
Referenced by startIndexTimer().
QRectF QGraphicsSceneBspTreeIndexPrivate::sceneRect |
Definition at line 119 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex().
bool QGraphicsSceneBspTreeIndexPrivate::sortCacheEnabled |
Definition at line 140 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateSortCache(), estimateItems(), and invalidateSortCache().
QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::unindexedItems |
Definition at line 127 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), addItem(), estimateItems(), removeItem(), and resetIndex().
QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::untransformableItems |
Definition at line 128 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateIndex(), estimateItems(), removeItem(), and resetIndex().
bool QGraphicsSceneBspTreeIndexPrivate::updatingSortCache |
Definition at line 141 of file qgraphicsscenebsptreeindex_p.h.
Referenced by _q_updateSortCache(), and invalidateSortCache().