Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGraphicsSceneBspTree Class Reference

#include <qgraphicsscene_bsp_p.h>

+ Collaboration diagram for QGraphicsSceneBspTree:

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
 

Detailed Description

Definition at line 29 of file qgraphicsscene_bsp_p.h.

Constructor & Destructor Documentation

◆ QGraphicsSceneBspTree()

QT_BEGIN_NAMESPACE QGraphicsSceneBspTree::QGraphicsSceneBspTree ( )

Definition at line 12 of file qgraphicsscene_bsp.cpp.

◆ ~QGraphicsSceneBspTree()

QGraphicsSceneBspTree::~QGraphicsSceneBspTree ( )

Definition at line 17 of file qgraphicsscene_bsp.cpp.

Member Function Documentation

◆ clear()

void QGraphicsSceneBspTree::clear ( )

Definition at line 33 of file qgraphicsscene_bsp.cpp.

References QList< T >::clear().

+ Here is the call graph for this function:

◆ debug()

QString QGraphicsSceneBspTree::debug ( int index) const

Definition at line 93 of file qgraphicsscene_bsp.cpp.

References debug, firstChildIndex(), QString::fromLatin1(), QGraphicsSceneBspTree::Node::Horizontal, QList< T >::isEmpty(), QGraphicsSceneBspTree::Node::Leaf, QGraphicsSceneBspTree::Node::leafIndex, rect, QList< T >::size(), and QGraphicsSceneBspTree::Node::type.

+ Here is the call graph for this function:

◆ firstChildIndex()

int QGraphicsSceneBspTree::firstChildIndex ( int index) const
inline

Definition at line 55 of file qgraphicsscene_bsp_p.h.

Referenced by debug().

+ Here is the caller graph for this function:

◆ initialize()

void QGraphicsSceneBspTree::initialize ( const QRectF & rect,
int depth )

Definition at line 21 of file qgraphicsscene_bsp.cpp.

References QList< T >::fill(), initialize(), rect, and QList< T >::resize().

Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().

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

◆ insertItem()

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().

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

◆ items()

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, rect, QList< T >::size(), QGraphicsItem::topLevelItem(), and QGraphicsItemPrivate::visible.

Referenced by QGraphicsSceneBspTreeIndexPrivate::estimateItems().

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

◆ leafCount()

int QGraphicsSceneBspTree::leafCount ( ) const

Definition at line 88 of file qgraphicsscene_bsp.cpp.

Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().

+ Here is the caller graph for this function:

◆ parentIndex()

int QGraphicsSceneBspTree::parentIndex ( int index) const
inline

Definition at line 58 of file qgraphicsscene_bsp_p.h.

◆ removeItem()

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().

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

◆ removeItems()

void QGraphicsSceneBspTree::removeItems ( const QSet< QGraphicsItem * > & items)

Definition at line 54 of file qgraphicsscene_bsp.cpp.

References QListSpecialMethodsBase< T >::contains(), i, item, items, j, and QList< T >::size().

Referenced by QGraphicsSceneBspTreeIndexPrivate::purgeRemovedItems().

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

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