![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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 25 of file qbsptree_p.h.
typedef void QBspTree::callback(QList< int > &leaf, const QRect &area, uint visited, QBspTreeData data) |
Definition at line 48 of file qbsptree_p.h.
typedef Node::Type QBspTree::NodeType |
Definition at line 36 of file qbsptree_p.h.
typedef QBspTree::Data QBspTree::QBspTreeData |
Definition at line 47 of file qbsptree_p.h.
QT_BEGIN_NAMESPACE QBspTree::QBspTree | ( | ) |
Definition at line 9 of file qbsptree.cpp.
void QBspTree::climbTree | ( | const QRect & | rect, |
callback * | function, | ||
QBspTreeData | data ) |
Definition at line 34 of file qbsptree.cpp.
|
protected |
Definition at line 42 of file qbsptree.cpp.
References firstChildIndex(), and QBspTree::Node::VerticalPlane.
void QBspTree::create | ( | int | n, |
int | d = -1 ) |
Definition at line 11 of file qbsptree.cpp.
void QBspTree::destroy | ( | ) |
Definition at line 28 of file qbsptree.cpp.
|
inlineprotected |
Definition at line 69 of file qbsptree_p.h.
Referenced by climbTree(), and init().
Definition at line 67 of file qbsptree.cpp.
References QBspTree::Node::Both, firstChildIndex(), QBspTree::Node::HorizontalPlane, QBspTree::Node::None, and QBspTree::Node::VerticalPlane.
Definition at line 55 of file qbsptree_p.h.
|
staticprotected |
Definition at line 96 of file qbsptree.cpp.
References QBspTree::Data::i.
Definition at line 61 of file qbsptree_p.h.
|
inline |
Definition at line 60 of file qbsptree_p.h.
|
inline |
Definition at line 59 of file qbsptree_p.h.
|
inlineprotected |
Definition at line 68 of file qbsptree_p.h.
|
staticprotected |
Definition at line 101 of file qbsptree.cpp.
References QBspTree::Data::i.
Definition at line 62 of file qbsptree_p.h.