22 class InsertItemBspTreeVisitor;
23 class RemoveItemBspTreeVisitor;
24 class FindItemBspTreeVisitor;
50 void findItems(QList<Element*>* foundItems,
const QRectF&
rect,
int index);
51 void findItems(QList<Element*>* foundItems,
const QPointF& pos,
int index);
62 void initialize(
const QRectF& rect,
int depth);
68 QList<Element*>
items(
const QRectF& rect);
69 QList<Element*>
items(
const QPointF& pos);
75 return index > 0 ? ((index & 1) ? ((index - 1) / 2) : ((index - 2) / 2)) : -1;
78 QString
debug(
int index)
const;
90 virtual void visit(QList<Element*>*
items) = 0;
int leafIndex
Definition: bsp.h:40
void initialize(const QRectF &rect, int depth, int index)
Definition: bsp.cpp:205
QRectF rect
Definition: bsp.h:57
QVector< Node > nodes
Definition: bsp.h:54
uint depth
Definition: bsp.h:45
void climbTree(BspTreeVisitor *visitor, const QPointF &pos, int index=0)
Definition: bsp.cpp:256
Base class of score layout elements.
Definition: element.h:158
QString debug(int index) const
Definition: bsp.cpp:173
void findItems(QList< Element *> *foundItems, const QRectF &rect, int index)
QVector< QList< Element * > > leaves
Definition: bsp.h:55
void insert(Element *item)
Definition: bsp.cpp:115
int parentIndex(int index) const
Definition: bsp.h:74
int firstChildIndex(int index) const
Definition: bsp.h:72
QRectF rectForIndex(int index) const
Definition: bsp.cpp:325
Definition: aeolus.cpp:26
virtual ~BspTreeVisitor()
Definition: bsp.h:89
BspTree()
Definition: bsp.cpp:69
QList< Element * > items(const QRectF &rect)
Definition: bsp.cpp:137
void clear()
Definition: bsp.cpp:104
qreal offset
Definition: bsp.h:39
Type type
Definition: bsp.h:42
int leafCnt
Definition: bsp.h:56
int leafCount() const
Definition: bsp.h:71