QtBase  v6.3.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QGraphicsSceneBspTreeIndexPrivate Class Reference

#include <qgraphicsscenebsptreeindex_p.h>

Inheritance diagram for QGraphicsSceneBspTreeIndexPrivate:
Inheritance graph
[legend]
Collaboration diagram for QGraphicsSceneBspTreeIndexPrivate:
Collaboration graph
[legend]

Public Member Functions

 QGraphicsSceneBspTreeIndexPrivate (QGraphicsScene *scene)
 
void purgeRemovedItems ()
 
void _q_updateIndex ()
 
void startIndexTimer (int interval=QGRAPHICSSCENE_INDEXTIMER_TIMEOUT)
 
void resetIndex ()
 
void _q_updateSortCache ()
 
void invalidateSortCache ()
 
void addItem (QGraphicsItem *item, bool recursive=false)
 
void removeItem (QGraphicsItem *item, bool recursive=false, bool moveToUnindexedItems=false)
 
QList< QGraphicsItem * > estimateItems (const QRectF &, Qt::SortOrder, bool b=false)
 
- Public Member Functions inherited from QGraphicsSceneIndexPrivate
 QGraphicsSceneIndexPrivate (QGraphicsScene *scene)
 
 ~QGraphicsSceneIndexPrivate ()
 
void init ()
 
void recursive_items_helper (QGraphicsItem *item, QRectF exposeRect, QGraphicsSceneIndexIntersector intersect, QList< QGraphicsItem * > *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, qreal parentOpacity, const void *intersectData) const
 
void items_helper (const QRectF &rect, QGraphicsSceneIndexIntersector intersect, QList< QGraphicsItem * > *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, Qt::SortOrder order, const void *intersectData) const
 
- Public Member Functions inherited from QObjectPrivate
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void ensureConnectionData ()
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

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)
 
- 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 QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 
static bool disconnect (Connection *c)
 

Public Attributes

QGraphicsSceneBspTree bsp
 
QRectF sceneRect
 
int bspTreeDepth
 
int indexTimerId
 
bool restartIndexTimer
 
bool regenerateIndex
 
int lastItemCount
 
QList< QGraphicsItem * > indexedItems
 
QList< QGraphicsItem * > unindexedItems
 
QList< QGraphicsItem * > untransformableItems
 
QList< int > freeItemIndexes
 
bool purgePending
 
QSet< QGraphicsItem * > removedItems
 
bool sortCacheEnabled
 
bool updatingSortCache
 
- Public Attributes inherited from QGraphicsSceneIndexPrivate
QGraphicsScenescene
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint unused: 24
 
int postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Detailed Description

Definition at line 110 of file qgraphicsscenebsptreeindex_p.h.

Constructor & Destructor Documentation

◆ QGraphicsSceneBspTreeIndexPrivate()

QGraphicsSceneBspTreeIndexPrivate::QGraphicsSceneBspTreeIndexPrivate ( QGraphicsScene scene)

Constructs a private scene bsp index.

Definition at line 96 of file qgraphicsscenebsptreeindex.cpp.

Member Function Documentation

◆ _q_updateIndex()

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 118 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _q_updateSortCache()

void QGraphicsSceneBspTreeIndexPrivate::_q_updateSortCache ( )

Definition at line 265 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addItem()

void QGraphicsSceneBspTreeIndexPrivate::addItem ( QGraphicsItem item,
bool  recursive = false 
)

Definition at line 302 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ climbTree()

void QGraphicsSceneBspTreeIndexPrivate::climbTree ( QGraphicsItem item,
int *  stackingOrder 
)
static

Definition at line 241 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closestItemFirst_withCache()

static bool QGraphicsSceneBspTreeIndexPrivate::closestItemFirst_withCache ( const QGraphicsItem item1,
const QGraphicsItem item2 
)
inlinestatic

Definition at line 147 of file qgraphicsscenebsptreeindex_p.h.

◆ closestItemLast_withCache()

static bool QGraphicsSceneBspTreeIndexPrivate::closestItemLast_withCache ( const QGraphicsItem item1,
const QGraphicsItem item2 
)
inlinestatic

Definition at line 151 of file qgraphicsscenebsptreeindex_p.h.

◆ estimateItems()

QList< QGraphicsItem * > QGraphicsSceneBspTreeIndexPrivate::estimateItems ( const QRectF rect,
Qt::SortOrder  order,
bool  b = false 
)

Definition at line 376 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:

◆ invalidateSortCache()

void QGraphicsSceneBspTreeIndexPrivate::invalidateSortCache ( )

Definition at line 292 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ purgeRemovedItems()

void QGraphicsSceneBspTreeIndexPrivate::purgeRemovedItems ( )

Definition at line 186 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeItem()

void QGraphicsSceneBspTreeIndexPrivate::removeItem ( QGraphicsItem item,
bool  recursive = false,
bool  moveToUnindexedItems = false 
)

Definition at line 333 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:

◆ resetIndex()

void QGraphicsSceneBspTreeIndexPrivate::resetIndex ( )

Definition at line 221 of file qgraphicsscenebsptreeindex.cpp.

Here is the call graph for this function:

◆ sortItems()

void QGraphicsSceneBspTreeIndexPrivate::sortItems ( QList< QGraphicsItem * > *  itemList,
Qt::SortOrder  order,
bool  sortCacheEnabled,
bool  onlyTopLevelItems = false 
)
static

Sort a list of itemList in a specific order and use the cache if requested.

Definition at line 412 of file qgraphicsscenebsptreeindex.cpp.

Here is the caller graph for this function:

◆ startIndexTimer()

void QGraphicsSceneBspTreeIndexPrivate::startIndexTimer ( int  interval = QGRAPHICSSCENE_INDEXTIMER_TIMEOUT)

Definition at line 208 of file qgraphicsscenebsptreeindex.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ bsp

QGraphicsSceneBspTree QGraphicsSceneBspTreeIndexPrivate::bsp

Definition at line 116 of file qgraphicsscenebsptreeindex_p.h.

◆ bspTreeDepth

int QGraphicsSceneBspTreeIndexPrivate::bspTreeDepth

Definition at line 118 of file qgraphicsscenebsptreeindex_p.h.

◆ freeItemIndexes

QList<int> QGraphicsSceneBspTreeIndexPrivate::freeItemIndexes

Definition at line 127 of file qgraphicsscenebsptreeindex_p.h.

◆ indexedItems

QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::indexedItems

Definition at line 124 of file qgraphicsscenebsptreeindex_p.h.

◆ indexTimerId

int QGraphicsSceneBspTreeIndexPrivate::indexTimerId

Definition at line 119 of file qgraphicsscenebsptreeindex_p.h.

◆ lastItemCount

int QGraphicsSceneBspTreeIndexPrivate::lastItemCount

Definition at line 122 of file qgraphicsscenebsptreeindex_p.h.

◆ purgePending

bool QGraphicsSceneBspTreeIndexPrivate::purgePending

Definition at line 129 of file qgraphicsscenebsptreeindex_p.h.

◆ regenerateIndex

bool QGraphicsSceneBspTreeIndexPrivate::regenerateIndex

Definition at line 121 of file qgraphicsscenebsptreeindex_p.h.

◆ removedItems

QSet<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::removedItems

Definition at line 130 of file qgraphicsscenebsptreeindex_p.h.

◆ restartIndexTimer

bool QGraphicsSceneBspTreeIndexPrivate::restartIndexTimer

Definition at line 120 of file qgraphicsscenebsptreeindex_p.h.

◆ sceneRect

QRectF QGraphicsSceneBspTreeIndexPrivate::sceneRect

Definition at line 117 of file qgraphicsscenebsptreeindex_p.h.

◆ sortCacheEnabled

bool QGraphicsSceneBspTreeIndexPrivate::sortCacheEnabled

Definition at line 138 of file qgraphicsscenebsptreeindex_p.h.

◆ unindexedItems

QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::unindexedItems

Definition at line 125 of file qgraphicsscenebsptreeindex_p.h.

◆ untransformableItems

QList<QGraphicsItem *> QGraphicsSceneBspTreeIndexPrivate::untransformableItems

Definition at line 126 of file qgraphicsscenebsptreeindex_p.h.

◆ updatingSortCache

bool QGraphicsSceneBspTreeIndexPrivate::updatingSortCache

Definition at line 139 of file qgraphicsscenebsptreeindex_p.h.


The documentation for this class was generated from the following files: