![]() |
Qt 6.x
The Qt SDK
|
#include <qbsptree_p.h>
Classes | |
struct | Data |
struct | Node |
Public Types | |
typedef Node::Type | NodeType |
typedef QBspTree::Data | QBspTreeData |
typedef void | callback(QList< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
Public Member Functions | |
QBspTree () | |
void | create (int n, int d=-1) |
void | destroy () |
void | init (const QRect &area, NodeType type) |
void | climbTree (const QRect &rect, callback *function, QBspTreeData data) |
int | leafCount () const |
QList< int > & | leaf (int i) |
void | insertLeaf (const QRect &r, int i) |
void | removeLeaf (const QRect &r, int i) |
Protected Member Functions | |
void | init (const QRect &area, int depth, NodeType type, int index) |
void | climbTree (const QRect &rect, callback *function, QBspTreeData data, int index) |
int | parentIndex (int i) const |
int | firstChildIndex (int i) const |
Static Protected Member Functions | |
static void | insert (QList< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
static void | remove (QList< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
Definition at line 24 of file qbsptree_p.h.
typedef void QBspTree::callback(QList< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
Definition at line 47 of file qbsptree_p.h.
typedef Node::Type QBspTree::NodeType |
Definition at line 35 of file qbsptree_p.h.
typedef QBspTree::Data QBspTree::QBspTreeData |
Definition at line 46 of file qbsptree_p.h.
QT_BEGIN_NAMESPACE QBspTree::QBspTree | ( | ) |
Definition at line 8 of file qbsptree.cpp.
void QBspTree::climbTree | ( | const QRect & | rect, |
callback * | function, | ||
QBspTreeData | data | ||
) |
Definition at line 33 of file qbsptree.cpp.
References climbTree(), function, and rect.
Referenced by climbTree(), climbTree(), insertLeaf(), QIconModeViewBase::intersectingSet(), and removeLeaf().
|
protected |
Definition at line 41 of file qbsptree.cpp.
References area(), climbTree(), firstChildIndex(), function, leaf(), pos, Q_ASSERT, and QBspTree::Node::VerticalPlane.
void QBspTree::create | ( | int | n, |
int | d = -1 |
||
) |
Definition at line 10 of file qbsptree.cpp.
References d, qMax(), and QList< T >::resize().
Referenced by QIconModeViewBase::setRowCount().
void QBspTree::destroy | ( | ) |
Definition at line 27 of file qbsptree.cpp.
References QList< T >::clear().
Referenced by QIconModeViewBase::clear().
|
inlineprotected |
Definition at line 68 of file qbsptree_p.h.
References i.
Referenced by climbTree(), and init().
Definition at line 66 of file qbsptree.cpp.
References area(), QBspTree::Node::Both, firstChildIndex(), QBspTree::Node::HorizontalPlane, init(), QBspTree::Node::None, QRect::setBottom(), QRect::setLeft(), QRect::setRight(), QRect::setTop(), and QBspTree::Node::VerticalPlane.
|
staticprotected |
Definition at line 95 of file qbsptree.cpp.
References QList< T >::append(), and leaf().
Referenced by insertLeaf().
Definition at line 60 of file qbsptree_p.h.
References climbTree(), i, and insert().
Referenced by QIconModeViewBase::removeHiddenRow().
|
inline |
Definition at line 59 of file qbsptree_p.h.
References i.
Referenced by climbTree(), insert(), and remove().
|
inline |
Definition at line 58 of file qbsptree_p.h.
References QList< T >::size().
|
inlineprotected |
Definition at line 67 of file qbsptree_p.h.
References i.
|
staticprotected |
Definition at line 100 of file qbsptree.cpp.
References i, QListSpecialMethodsBase< T >::indexOf(), leaf(), and QList< T >::remove().
Referenced by removeLeaf().
Definition at line 61 of file qbsptree_p.h.
References climbTree(), i, and remove().
Referenced by QIconModeViewBase::appendHiddenRow().