1 #ifndef __libquark_gui_QuadTreeModelBase_hxx 2 #define __libquark_gui_QuadTreeModelBase_hxx 94 #endif // __libquark_gui_QuadTreeModelBase_hxx bool isEmpty() const
Tests if the model is empty.
Definition: QuadTreeModelBase.h++:35
QRect _visibleRegion
Definition: QuadTreeModelBase.h++:87
bool setVisibleRegion(const QRect &visibleRegion)
Sets the visible region for the model.
void dataChanged()
Emitted when the model has changed in some significant way.
QRect visibleRegion() const
Returns the current visible region.
Definition: QuadTreeModelBase.h++:51
A non-parameterized abstract base class for quad-tree models.
Definition: QuadTreeModelBase.h++:17
uint itemCount() const
Returns the number of items in the model.
Definition: QuadTreeModelBase.h++:31
QRect _region
Definition: QuadTreeModelBase.h++:86
QRect region() const
Returns the region covered by this model.
Definition: QuadTreeModelBase.h++:27
QuadTreeModelBase(const QRect ®ion, uint maxItemsPerQuad=1)
Constructs a QuadTreeModelBase with the given region and density.
Definition: BarChartView.h++:6
uint _itemCount
Definition: QuadTreeModelBase.h++:88
void itemAdded(const QPoint &location)
Emitted when a new item has been added to the model.
virtual ~QuadTreeModelBase()
Destructor.
uint _maxItemsPerQuad
Definition: QuadTreeModelBase.h++:85
void itemModified(const QPoint &location)
Emitted when an item in the model has changed.
void itemRemoved(const QPoint &location)
Emitted when an item has been removed from the model.