Isis 3 Programmer Reference
Isis::ImageImageTreeModel Class Reference

Tree model for images and images. More...

#include <ImageImageTreeModel.h>

Inheritance diagram for Isis::ImageImageTreeModel:
Inheritance graph
Collaboration diagram for Isis::ImageImageTreeModel:
Collaboration graph

Classes

class  CreateRootItemFunctor
 

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

 ImageImageTreeModel (ControlNet *cNet, TreeView *v, QObject *parent=0)
 
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
 
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 More...
 
int indexOfVisibleItem (AbstractTreeItem const *item, InterestingItemsFlag=AllItems, bool=false) const
 
void setFrozen (bool)
 
bool isFrozen () const
 
void queueRebuild ()
 

Protected Member Functions

void clear ()
 
ControlNetgetControlNetwork () const
 
FilterWidgetgetFilterWidget () const
 
QFutureWatcher< QAtomicPointer< RootItem > > * getRebuildWatcher () const
 
RootItemgetRootItem () const
 

Protected Attributes

RootItemrootItem
 

Private Slots

void applyFilterDone ()
 
void rebuildItemsDone ()
 

Private Member Functions

int getItemCount (AbstractTreeItem *, InterestingItemsFlag) const
 
AbstractTreeItemnextItem (AbstractTreeItem *current, InterestingItemsFlag flags, bool ignoreExpansion) const
 
void selectItems (AbstractTreeItem *item, bool select, InterestingItemsFlag flags)
 

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
 
BusyLeafItemm_busyItem
 
TreeViewm_view
 
ControlNetm_cNet
 
FilterWidgetm_guisFilterWidget
 
FilterWidgetm_localFilterWidgetCopy
 
bool m_drivable
 
bool m_filterAgain
 
bool m_filterRunning
 
bool m_rebuildRunning
 
bool m_frozen
 
bool m_rebuildPending
 

Detailed Description

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.

Author
????-??-?? Eric Hyer
History:
2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".
History:
2017-07-25 Summer Stapleton - Removed the CnetViz namespace. Fixes #5054.
History:
2018-06-01 Jesse Mapel - Changed ControlCubeGraphNode to image serial number. References #5434.

Definition at line 48 of file ImageImageTreeModel.h.

Member Function Documentation

◆ filterCountsChanged

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

◆ getVisibleSize()

QSize Isis::AbstractTreeModel::getVisibleSize ( int  indentation) const
inherited

indentation is in pixels

Definition at line 414 of file AbstractTreeModel.cpp.


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