Qt 4.8
|
#include <qbsptree_p.h>
Classes | |
struct | Data |
struct | Node |
Public Types | |
typedef void | callback(QVector< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
typedef Node::Type | NodeType |
typedef QBspTree::Data | QBspTreeData |
Public Functions | |
void | climbTree (const QRect &rect, callback *function, QBspTreeData data) |
void | create (int n, int d=-1) |
void | destroy () |
void | init (const QRect &area, NodeType type) |
void | insertLeaf (const QRect &r, int i) |
QVector< int > & | leaf (int i) |
int | leafCount () const |
QBspTree () | |
void | removeLeaf (const QRect &r, int i) |
Protected Functions | |
void | climbTree (const QRect &rect, callback *function, QBspTreeData data, int index) |
int | firstChildIndex (int i) const |
void | init (const QRect &area, int depth, NodeType type, int index) |
int | parentIndex (int i) const |
Static Protected Functions | |
static void | insert (QVector< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
static void | remove (QVector< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
Properties | |
uint | depth |
QVector< QVector< int > > | leaves |
QVector< Node > | nodes |
uint | visited |
Definition at line 61 of file qbsptree_p.h.
typedef void QBspTree::callback(QVector< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
Definition at line 84 of file qbsptree_p.h.
typedef Node::Type QBspTree::NodeType |
Definition at line 72 of file qbsptree_p.h.
typedef QBspTree::Data QBspTree::QBspTreeData |
Definition at line 83 of file qbsptree_p.h.
QBspTree::QBspTree | ( | ) |
Definition at line 46 of file qbsptree.cpp.
void QBspTree::climbTree | ( | const QRect & | rect, |
callback * | function, | ||
QBspTreeData | data | ||
) |
Definition at line 71 of file qbsptree.cpp.
Referenced by climbTree(), init(), insertLeaf(), QIconModeViewBase::intersectingSet(), and removeLeaf().
|
protected |
Definition at line 79 of file qbsptree.cpp.
void QBspTree::create | ( | int | n, |
int | d = -1 |
||
) |
Definition at line 48 of file qbsptree.cpp.
void QBspTree::destroy | ( | ) |
Definition at line 65 of file qbsptree.cpp.
|
inlineprotected |
Definition at line 105 of file qbsptree_p.h.
Referenced by climbTree(), and init().
Definition at line 104 of file qbsptree.cpp.
|
staticprotected |
Definition at line 133 of file qbsptree.cpp.
Referenced by firstChildIndex(), and insertLeaf().
|
inline |
Definition at line 97 of file qbsptree_p.h.
|
inline |
|
inline |
Definition at line 95 of file qbsptree_p.h.
|
inlineprotected |
Definition at line 104 of file qbsptree_p.h.
|
staticprotected |
Definition at line 138 of file qbsptree.cpp.
|
inline |
Definition at line 98 of file qbsptree_p.h.
|
private |
Definition at line 111 of file qbsptree_p.h.
Referenced by create(), init(), and removeLeaf().
Definition at line 114 of file qbsptree_p.h.
Referenced by create(), destroy(), leaf(), and leafCount().
Definition at line 113 of file qbsptree_p.h.
Referenced by climbTree(), create(), destroy(), and init().
|
mutableprivate |
Definition at line 112 of file qbsptree_p.h.
Referenced by climbTree(), and firstChildIndex().