Isis Developer 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

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
 
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 ()
 

Protected Member Functions

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

Protected Attributes

RootItemrootItem
 

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

Member Enumeration Documentation

◆ InterestingItems

Enumerator
PointItems 
MeasureItems 
ImageItems 
AllItems 

Constructor & Destructor Documentation

◆ ImageImageTreeModel()

Isis::ImageImageTreeModel::ImageImageTreeModel ( ControlNet * cNet,
TreeView * v,
QObject * parent = 0 )

References rebuildItems().

◆ ~ImageImageTreeModel()

Isis::ImageImageTreeModel::~ImageImageTreeModel ( )
virtual

Member Function Documentation

◆ applyFilter

◆ cancelSort

◆ clear()

void Isis::AbstractTreeModel::clear ( )
protectedinherited

◆ 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.

Referenced by Isis::AbstractTreeModel::applyFilter(), rebuildItems(), Isis::ImagePointTreeModel::rebuildItems(), and Isis::PointMeasureTreeModel::rebuildItems().

◆ filterProgressChanged

void Isis::AbstractTreeModel::filterProgressChanged ( int )
signalinherited

◆ filterProgressRangeChanged

void Isis::AbstractTreeModel::filterProgressRangeChanged ( int ,
int  )
signalinherited

◆ getControlNetwork()

ControlNet * Isis::AbstractTreeModel::getControlNetwork ( ) const
protectedinherited

◆ getFilterWidget()

FilterWidget * Isis::AbstractTreeModel::getFilterWidget ( ) const
protectedinherited

◆ getItemCount()

int Isis::AbstractTreeModel::getItemCount ( InterestingItemsFlag flags) const
inherited

◆ getItems() [1/2]

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

◆ getItems() [2/2]

◆ getMutex()

QMutex * Isis::AbstractTreeModel::getMutex ( ) const
inherited

◆ getRebuildWatcher()

QFutureWatcher< QAtomicPointer< RootItem > > * Isis::AbstractTreeModel::getRebuildWatcher ( ) const
protectedinherited

◆ getRootItem()

RootItem * Isis::AbstractTreeModel::getRootItem ( ) const
protectedinherited

◆ getSelectedItems()

◆ getTopLevelItemCount()

◆ getView()

TreeView * Isis::AbstractTreeModel::getView ( ) const
inherited

◆ getVisibleItemCount()

int Isis::AbstractTreeModel::getVisibleItemCount ( InterestingItemsFlag flags,
bool ignoreExpansion ) const
inherited

◆ getVisibleSize()

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

◆ getVisibleTopLevelItemCount()

◆ indexOfVisibleItem()

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

◆ isDrivable()

bool Isis::AbstractTreeModel::isDrivable ( ) const
inherited

◆ isFiltering()

◆ isFrozen()

bool Isis::AbstractTreeModel::isFrozen ( ) const
inherited

◆ isRebuilding()

bool Isis::AbstractTreeModel::isRebuilding ( ) const
inherited

◆ modelModified

void Isis::AbstractTreeModel::modelModified ( )
signalinherited

◆ queueRebuild()

void Isis::AbstractTreeModel::queueRebuild ( )
inherited

◆ rebuildItems()

◆ rebuildProgressChanged

void Isis::AbstractTreeModel::rebuildProgressChanged ( int )
signalinherited

◆ rebuildProgressRangeChanged

void Isis::AbstractTreeModel::rebuildProgressRangeChanged ( int ,
int  )
signalinherited

◆ setDrivable()

void Isis::AbstractTreeModel::setDrivable ( bool drivableStatus)
inherited

◆ setFilter()

void Isis::AbstractTreeModel::setFilter ( FilterWidget * newFilter)
inherited

◆ setFrozen()

void Isis::AbstractTreeModel::setFrozen ( bool newFrozenState)
inherited

◆ setGlobalSelection()

void Isis::AbstractTreeModel::setGlobalSelection ( bool selected,
InterestingItemsFlag flags = AllItems )
inherited

◆ setRebuilding()

void Isis::AbstractTreeModel::setRebuilding ( bool running)
inlineinherited

◆ stopWorking()

void Isis::AbstractTreeModel::stopWorking ( )
inherited

◆ tableSelectionChanged

void Isis::AbstractTreeModel::tableSelectionChanged ( QList< AbstractTreeItem * > )
signalinherited

◆ treeSelectionChanged

void Isis::AbstractTreeModel::treeSelectionChanged ( QList< AbstractTreeItem * > )
signalinherited

Member Data Documentation

◆ rootItem


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