Isis Developer Reference
|
Tree model for images and images. More...
#include <ImageImageTreeModel.h>
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. | |
Public Member Functions | |
ImageImageTreeModel (ControlNet *cNet, TreeView *v, QObject *parent=0) | |
virtual | ~ImageImageTreeModel () |
void | rebuildItems () |
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 | |
int | indexOfVisibleItem (AbstractTreeItem const *item, InterestingItemsFlag=AllItems, bool=false) const |
void | setFrozen (bool) |
bool | isFrozen () const |
void | queueRebuild () |
Protected Member Functions | |
void | clear () |
ControlNet * | getControlNetwork () const |
FilterWidget * | getFilterWidget () const |
QFutureWatcher< QAtomicPointer< RootItem > > * | getRebuildWatcher () const |
RootItem * | getRootItem () const |
Protected Attributes | |
RootItem * | rootItem |
Tree model for images and images.
This class represents a model that provides access to images that are connected together through a control point. The tree structure is designed such that images are parent nodes with images as children (leaf) nodes.
This class also provides functionality for the multi-threaded rebuilding of the image-image tree model structure, which is necessary when certain types of changes are made to the underlying control network.
|
inherited |
Isis::ImageImageTreeModel::ImageImageTreeModel | ( | ControlNet * | cNet, |
TreeView * | v, | ||
QObject * | parent = 0 ) |
References rebuildItems().
|
virtual |
|
slotinherited |
References Isis::AbstractTreeModel::cancelSort(), Isis::AbstractTreeModel::filterCountsChanged(), Isis::AbstractParentItem::getChildren(), Isis::AbstractTreeModel::getTopLevelItemCount(), Isis::AbstractTreeModel::rootItem, and Isis::RootItem::setLastVisibleFilteredItem().
Referenced by Isis::AbstractTableModel::applyFilter(), Isis::AbstractTreeModel::setFilter(), and Isis::AbstractTreeModel::setFrozen().
|
signalinherited |
|
protectedinherited |
References Isis::AbstractTreeModel::rootItem.
|
signalinherited |
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.
Referenced by Isis::AbstractTreeModel::applyFilter(), rebuildItems(), Isis::ImagePointTreeModel::rebuildItems(), and Isis::PointMeasureTreeModel::rebuildItems().
|
signalinherited |
Referenced by Isis::AbstractTreeModel::AbstractTreeModel().
|
signalinherited |
Referenced by Isis::AbstractTreeModel::AbstractTreeModel().
|
protectedinherited |
|
protectedinherited |
|
inherited |
References Isis::AbstractTreeModel::getItemCount(), and Isis::AbstractTreeModel::rootItem.
Referenced by Isis::AbstractTreeModel::getItemCount().
|
inherited |
|
inherited |
References Isis::AbstractParentItem::childCount(), Isis::AbstractParentItem::getFirstVisibleChild(), Isis::AbstractTreeItem::getLastVisibleChild(), Isis::RootItem::getLastVisibleFilteredItem(), Isis::AbstractTreeModel::isFiltering(), Isis::AbstractTreeItem::parent(), and Isis::AbstractTreeModel::rootItem.
Referenced by Isis::CnetEditorWidget::filteredNetwork(), Isis::AbstractTableModel::getSortedItems(), Isis::AbstractTableModel::getSortedItems(), and Isis::TreeViewContent::mousePressEvent().
|
inherited |
|
protectedinherited |
|
protectedinherited |
References Isis::AbstractTreeModel::rootItem.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
indentation is in pixels
References Isis::AbstractTreeModel::AllItems, Isis::AbstractParentItem::getFirstVisibleChild(), Isis::AbstractTreeModel::isFiltering(), and Isis::AbstractTreeModel::rootItem.
Referenced by Isis::TreeViewContent::refresh().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by Isis::AbstractTreeModel::getItems(), Isis::AbstractTreeModel::getSelectedItems(), Isis::AbstractTreeModel::getVisibleItemCount(), Isis::AbstractTreeModel::getVisibleSize(), Isis::AbstractTreeModel::getVisibleTopLevelItemCount(), Isis::AbstractTreeModel::indexOfVisibleItem(), Isis::AbstractTableModel::isFiltering(), Isis::TreeViewContent::refresh(), and Isis::AbstractTableModel::sort().
|
inherited |
|
inherited |
Referenced by Isis::AbstractTableModel::sort().
|
signalinherited |
|
inherited |
|
virtual |
Implements Isis::AbstractTreeModel.
References Isis::AbstractTreeModel::cancelSort(), Isis::AbstractTreeModel::filterCountsChanged(), Isis::AbstractTreeModel::getControlNetwork(), Isis::AbstractTreeModel::getRebuildWatcher(), Isis::AbstractTreeModel::getTopLevelItemCount(), Isis::AbstractTreeModel::isFrozen(), Isis::AbstractTreeModel::queueRebuild(), and Isis::AbstractTreeModel::setRebuilding().
Referenced by ImageImageTreeModel().
|
signalinherited |
Referenced by Isis::AbstractTreeModel::AbstractTreeModel().
|
signalinherited |
Referenced by Isis::AbstractTreeModel::AbstractTreeModel().
|
inherited |
|
inherited |
References Isis::AbstractTreeModel::applyFilter().
|
inherited |
References Isis::AbstractTreeModel::applyFilter(), and Isis::AbstractTreeModel::rebuildItems().
Referenced by Isis::CnetEditorWidget::setTablesFrozen().
|
inherited |
|
inlineinherited |
|
inherited |
|
signalinherited |
|
signalinherited |
|
protectedinherited |
Referenced by Isis::AbstractTreeModel::AbstractTreeModel(), Isis::AbstractTreeModel::applyFilter(), Isis::AbstractTreeModel::clear(), Isis::AbstractTreeModel::getItemCount(), Isis::AbstractTreeModel::getItems(), Isis::AbstractTreeModel::getItems(), Isis::AbstractTreeModel::getRootItem(), Isis::AbstractTreeModel::getSelectedItems(), Isis::AbstractTreeModel::getTopLevelItemCount(), Isis::AbstractTreeModel::getVisibleItemCount(), Isis::AbstractTreeModel::getVisibleSize(), Isis::AbstractTreeModel::getVisibleTopLevelItemCount(), Isis::AbstractTreeModel::indexOfVisibleItem(), Isis::AbstractTreeModel::setGlobalSelection(), and Isis::AbstractTreeModel::~AbstractTreeModel().