104 inline int parentIndex(
int i)
const {
return (i & 1) ? ((i - 1) / 2) : ((i - 2) / 2); }
119 #endif // QBSPTREE_P_H void insertLeaf(const QRect &r, int i)
#define QT_END_NAMESPACE
This macro expands to.
QVector< int > & leaf(int i)
int count(const T &t) const
Returns the number of occurrences of value in the vector.
void init(const QRect &area, NodeType type)
QVector< QVector< int > > leaves
int firstChildIndex(int i) const
void callback(QVector< int > &leaf, const QRect &area, uint visited, QBspTreeData data)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * data(const QByteArray &arr)
static void insert(QVector< int > &leaf, const QRect &area, uint visited, QBspTreeData data)
const T * ptr(const T &t)
void climbTree(const QRect &rect, callback *function, QBspTreeData data)
The QRect class defines a rectangle in the plane using integer precision.
QBspTree::Data QBspTreeData
int parentIndex(int i) const
void removeLeaf(const QRect &r, int i)
static int area(const QSize &s)
void create(int n, int d=-1)