![]() |
Isis 3 Programmer Reference
|
Base class for tree models. More...
#include <AbstractTreeModel.h>
Classes | |
class | FilterFunctor |
Public Types | |
enum | InterestingItems { PointItems = 1, MeasureItems = 2, ImageItems = 4, AllItems = PointItems | MeasureItems | ImageItems } |
Public Slots | |
void | applyFilter () |
Signals | |
void | cancelSort () |
void | modelModified () |
void | filterProgressChanged (int) |
void | filterProgressRangeChanged (int, int) |
void | rebuildProgressChanged (int) |
void | rebuildProgressRangeChanged (int, int) |
void | treeSelectionChanged (QList< AbstractTreeItem * >) |
void | tableSelectionChanged (QList< AbstractTreeItem * >) |
void | filterCountsChanged (int visibleTopLevelItemCount, int topLevelItemCount) |
This signal is emitted after filtering to provide the number of visible top-level items remaining after the filter was applied, as well as the total number of items that were possible. More... | |
Public Member Functions | |
AbstractTreeModel (ControlNet *controlNet, TreeView *v, QObject *parent=0) | |
QList< AbstractTreeItem * > | getItems (int, int, InterestingItemsFlag=AllItems, bool=false) |
QList< AbstractTreeItem * > | getItems (AbstractTreeItem *, AbstractTreeItem *, InterestingItemsFlag=AllItems, bool=false) |
QList< AbstractTreeItem * > | getSelectedItems (InterestingItemsFlag=AllItems, bool=false) |
QMutex * | getMutex () const |
int | getItemCount (InterestingItemsFlag) const |
int | getTopLevelItemCount () const |
int | getVisibleItemCount (InterestingItemsFlag, bool) const |
int | getVisibleTopLevelItemCount () const |
TreeView * | getView () const |
void | setDrivable (bool drivableStatus) |
bool | isDrivable () const |
bool | isFiltering () const |
bool | isRebuilding () const |
void | setRebuilding (bool running) |
void | setFilter (FilterWidget *newFilter) |
void | setGlobalSelection (bool selected, InterestingItemsFlag=AllItems) |
void | stopWorking () |
QSize | getVisibleSize (int indentation) const |
indentation is in pixels More... | |
int | indexOfVisibleItem (AbstractTreeItem const *item, InterestingItemsFlag=AllItems, bool=false) const |
void | setFrozen (bool) |
bool | isFrozen () const |
void | queueRebuild () |
virtual void | rebuildItems ()=0 |
Protected Member Functions | |
void | clear () |
ControlNet * | getControlNetwork () const |
FilterWidget * | getFilterWidget () const |
QFutureWatcher< QAtomicPointer< RootItem > > * | getRebuildWatcher () const |
RootItem * | getRootItem () const |
Protected Attributes | |
RootItem * | rootItem |
Private Slots | |
void | applyFilterDone () |
void | rebuildItemsDone () |
Private Member Functions | |
AbstractTreeModel (const AbstractTreeModel &) | |
AbstractTreeModel & | operator= (const AbstractTreeModel &) |
AbstractTreeItem * | nextItem (AbstractTreeItem *current, InterestingItemsFlag flags, bool ignoreExpansion) const |
void | selectItems (AbstractTreeItem *item, bool select, InterestingItemsFlag flags) |
int | getItemCount (AbstractTreeItem *, InterestingItemsFlag) const |
Static Private Member Functions | |
static bool | itemIsInteresting (AbstractTreeItem *, InterestingItemsFlag) |
Private Attributes | |
QFutureWatcher< QAtomicPointer< AbstractTreeItem > > * | m_filterWatcher |
QFutureWatcher< QAtomicPointer< RootItem > > * | m_rebuildWatcher |
QList< QPair< QString, QString > > * | m_expandedState |
QList< QPair< QString, QString > > * | m_selectedState |
QMutex * | m_mutex |
BusyLeafItem * | m_busyItem |
TreeView * | m_view |
ControlNet * | m_cNet |
FilterWidget * | m_guisFilterWidget |
FilterWidget * | m_localFilterWidgetCopy |
bool | m_drivable |
bool | m_filterAgain |
bool | m_filterRunning |
bool | m_rebuildRunning |
bool | m_frozen |
bool | m_rebuildPending |
Base class for tree models.
This class is a base class for models that store data in a tree-like structure. There is also a linked-list for iterating over the filtered items in an efficient manner. This handles the filtering of items and provides an interface for rebuilding.
Definition at line 47 of file AbstractTreeModel.h.
|
signal |
This signal is emitted after filtering to provide the number of visible top-level items remaining after the filter was applied, as well as the total number of items that were possible.
QSize Isis::AbstractTreeModel::getVisibleSize | ( | int | indentation | ) | const |
indentation is in pixels
Definition at line 414 of file AbstractTreeModel.cpp.
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:17:41 |