USGS

Isis 3.0 Application Source Code Reference

Home

AbstractTreeModel Class Reference

Base class for tree models. More...

#include <AbstractTreeModel.h>

List of all members.

Classes

class  FilterFunctor

Public Types

enum  InterestingItems { PointItems = 1, MeasureItems = 2, SerialItems = 4, AllItems = PointItems | MeasureItems | SerialItems }

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.

Public Member Functions

 AbstractTreeModel (ControlNet *controlNet, TreeView *v, QObject *parent=0)
virtual ~AbstractTreeModel ()
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
TreeViewgetView () 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
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
FilterWidgetgetFilterWidget () const
QFutureWatcher< QAtomicPointer
< RootItem > > * 
getRebuildWatcher () const
RootItemgetRootItem () const

Protected Attributes

RootItemrootItem

Detailed Description

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.

Author:
????-??-?? Eric Hyer

Definition at line 40 of file AbstractTreeModel.h.


Member Enumeration Documentation

Enumerator:
PointItems 
MeasureItems 
SerialItems 
AllItems 

Definition at line 45 of file AbstractTreeModel.h.


Constructor & Destructor Documentation

AbstractTreeModel ( ControlNet *  controlNet,
TreeView v,
QObject parent = 0 
)

Definition at line 41 of file AbstractTreeModel.cpp.

~AbstractTreeModel (  )  [virtual]

Definition at line 86 of file AbstractTreeModel.cpp.


Member Function Documentation

QList< AbstractTreeItem * > getItems ( int  start,
int  end,
InterestingItemsFlag  flags = AllItems,
bool  ignoreExpansion = false 
)

Definition at line 120 of file AbstractTreeModel.cpp.

QList< AbstractTreeItem * > getItems ( AbstractTreeItem item1,
AbstractTreeItem item2,
InterestingItemsFlag  flags = AllItems,
bool  ignoreExpansion = false 
)

Definition at line 178 of file AbstractTreeModel.cpp.

QList< AbstractTreeItem * > getSelectedItems ( InterestingItemsFlag  flags = AllItems,
bool  ignoreExpansion = false 
)

Definition at line 245 of file AbstractTreeModel.cpp.

QMutex * getMutex (  )  const

Definition at line 272 of file AbstractTreeModel.cpp.

int getItemCount ( InterestingItemsFlag  flags  )  const

Definition at line 278 of file AbstractTreeModel.cpp.

int getTopLevelItemCount (  )  const

Definition at line 284 of file AbstractTreeModel.cpp.

int getVisibleItemCount ( InterestingItemsFlag  flags,
bool  ignoreExpansion 
) const

Definition at line 289 of file AbstractTreeModel.cpp.

int getVisibleTopLevelItemCount (  )  const

Definition at line 314 of file AbstractTreeModel.cpp.

TreeView * getView (  )  const

Definition at line 449 of file AbstractTreeModel.cpp.

void setDrivable ( bool  drivableStatus  ) 
bool isDrivable (  )  const
bool isFiltering (  )  const

Definition at line 390 of file AbstractTreeModel.cpp.

bool isRebuilding (  )  const

Definition at line 396 of file AbstractTreeModel.cpp.

void setRebuilding ( bool  running  )  [inline]

Definition at line 76 of file AbstractTreeModel.h.

void setFilter ( FilterWidget newFilter  ) 

Definition at line 402 of file AbstractTreeModel.cpp.

void setGlobalSelection ( bool  selected,
InterestingItemsFlag  flags = AllItems 
)

Definition at line 546 of file AbstractTreeModel.cpp.

void stopWorking (  ) 

Definition at line 455 of file AbstractTreeModel.cpp.

QSize getVisibleSize ( int  indentation  )  const

indentation is in pixels

Definition at line 465 of file AbstractTreeModel.cpp.

int indexOfVisibleItem ( AbstractTreeItem const *  item,
InterestingItemsFlag  flags = AllItems,
bool  ignoreExpansion = false 
) const

Definition at line 334 of file AbstractTreeModel.cpp.

void setFrozen ( bool  newFrozenState  ) 

Definition at line 360 of file AbstractTreeModel.cpp.

bool isFrozen (  )  const

Definition at line 378 of file AbstractTreeModel.cpp.

void queueRebuild (  ) 

Definition at line 384 of file AbstractTreeModel.cpp.

void applyFilter (  )  [slot]

Definition at line 496 of file AbstractTreeModel.cpp.

void cancelSort (  )  [signal]

Definition at line 115 of file moc_AbstractTreeModel.cpp.

void modelModified (  )  [signal]

Definition at line 121 of file moc_AbstractTreeModel.cpp.

void filterProgressChanged ( int  _t1  )  [signal]

Definition at line 127 of file moc_AbstractTreeModel.cpp.

void filterProgressRangeChanged ( int  _t1,
int  _t2 
) [signal]

Definition at line 134 of file moc_AbstractTreeModel.cpp.

void rebuildProgressChanged ( int  _t1  )  [signal]

Definition at line 141 of file moc_AbstractTreeModel.cpp.

void rebuildProgressRangeChanged ( int  _t1,
int  _t2 
) [signal]

Definition at line 148 of file moc_AbstractTreeModel.cpp.

void treeSelectionChanged ( QList< AbstractTreeItem * >  _t1  )  [signal]

Definition at line 155 of file moc_AbstractTreeModel.cpp.

void tableSelectionChanged ( QList< AbstractTreeItem * >  _t1  )  [signal]

Definition at line 162 of file moc_AbstractTreeModel.cpp.

void filterCountsChanged ( int  visibleTopLevelItemCount,
int  topLevelItemCount 
) [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.

Definition at line 169 of file moc_AbstractTreeModel.cpp.

virtual void rebuildItems (  )  [pure virtual]
void clear (  )  [protected]

Definition at line 414 of file AbstractTreeModel.cpp.

ControlNet * getControlNetwork (  )  const [protected]

Definition at line 424 of file AbstractTreeModel.cpp.

FilterWidget* getFilterWidget (  )  const [protected]
QFutureWatcher< QAtomicPointer< RootItem > > * getRebuildWatcher (  )  const [protected]

Definition at line 437 of file AbstractTreeModel.cpp.

RootItem * getRootItem (  )  const [protected]

Definition at line 443 of file AbstractTreeModel.cpp.


Member Data Documentation

RootItem* rootItem [protected]

Definition at line 148 of file AbstractTreeModel.h.


The documentation for this class was generated from the following files: