Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis 3 Programmer Reference
Isis::PointMeasureTreeModel Class Reference

Tree model for control points and control measures. More...

#include <PointMeasureTreeModel.h>

Inheritance diagram for Isis::PointMeasureTreeModel:
Inheritance graph
Collaboration diagram for Isis::PointMeasureTreeModel:
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.
 

Public Member Functions

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

Private Slots

void applyFilterDone ()
 
void rebuildItemsDone ()
 

Private Member Functions

int getItemCount (AbstractTreeItem *, InterestingItemsFlag) const
 
AbstractTreeItem * nextItem (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
 
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
 

Detailed Description

Tree model for control points and control measures.

This class represents a model that provides access to control points and control measures in a tree-like fashion. The tree structure is designed such that control points are parent nodes with control measures as children (leaf) nodes.

This class also provides functionality for the multi-threaded rebuilding of the point-measure 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_".

2017-07-25 Summer Stapleton - Removed the CnetViz namespace. Fixes #5054.

Definition at line 49 of file PointMeasureTreeModel.h.

Member Enumeration Documentation

◆ InterestingItems

enum Isis::AbstractTreeModel::InterestingItems
inherited

Definition at line 51 of file AbstractTreeModel.h.

Constructor & Destructor Documentation

◆ PointMeasureTreeModel()

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

Definition at line 33 of file PointMeasureTreeModel.cpp.

◆ ~PointMeasureTreeModel()

Isis::PointMeasureTreeModel::~PointMeasureTreeModel ( )
virtual

Definition at line 40 of file PointMeasureTreeModel.cpp.

Member Function Documentation

◆ applyFilter

void Isis::AbstractTreeModel::applyFilter ( )
slotinherited

Definition at line 434 of file AbstractTreeModel.cpp.

◆ applyFilterDone

void Isis::AbstractTreeModel::applyFilterDone ( )
privateslotinherited

Definition at line 551 of file AbstractTreeModel.cpp.

◆ clear()

void Isis::AbstractTreeModel::clear ( )
protectedinherited

Definition at line 369 of file AbstractTreeModel.cpp.

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

◆ getControlNetwork()

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

Definition at line 377 of file AbstractTreeModel.cpp.

◆ getItemCount() [1/2]

int Isis::AbstractTreeModel::getItemCount ( AbstractTreeItem * item,
InterestingItemsFlag flags ) const
privateinherited

Definition at line 512 of file AbstractTreeModel.cpp.

◆ getItemCount() [2/2]

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

Definition at line 255 of file AbstractTreeModel.cpp.

◆ getItems() [1/2]

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

Definition at line 169 of file AbstractTreeModel.cpp.

◆ getItems() [2/2]

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

Definition at line 118 of file AbstractTreeModel.cpp.

◆ getMutex()

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

Definition at line 250 of file AbstractTreeModel.cpp.

◆ getRebuildWatcher()

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

Definition at line 383 of file AbstractTreeModel.cpp.

◆ getRootItem()

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

Definition at line 388 of file AbstractTreeModel.cpp.

◆ getSelectedItems()

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

Definition at line 228 of file AbstractTreeModel.cpp.

◆ getTopLevelItemCount()

int Isis::AbstractTreeModel::getTopLevelItemCount ( ) const
inherited

Definition at line 260 of file AbstractTreeModel.cpp.

◆ getView()

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

Definition at line 393 of file AbstractTreeModel.cpp.

◆ getVisibleItemCount()

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

Definition at line 264 of file AbstractTreeModel.cpp.

◆ getVisibleSize()

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

indentation is in pixels

Definition at line 407 of file AbstractTreeModel.cpp.

References getVisibleSize().

Referenced by getVisibleSize().

◆ getVisibleTopLevelItemCount()

int Isis::AbstractTreeModel::getVisibleTopLevelItemCount ( ) const
inherited

Definition at line 285 of file AbstractTreeModel.cpp.

◆ indexOfVisibleItem()

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

Definition at line 302 of file AbstractTreeModel.cpp.

◆ isFiltering()

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

Definition at line 349 of file AbstractTreeModel.cpp.

◆ isFrozen()

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

Definition at line 339 of file AbstractTreeModel.cpp.

◆ isRebuilding()

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

Definition at line 354 of file AbstractTreeModel.cpp.

◆ itemIsInteresting()

bool Isis::AbstractTreeModel::itemIsInteresting ( AbstractTreeItem * item,
InterestingItemsFlag flags )
staticprivateinherited

Definition at line 496 of file AbstractTreeModel.cpp.

◆ nextItem()

AbstractTreeItem * Isis::AbstractTreeModel::nextItem ( AbstractTreeItem * current,
InterestingItemsFlag flags,
bool ignoreExpansion ) const
privateinherited

Definition at line 530 of file AbstractTreeModel.cpp.

◆ queueRebuild()

void Isis::AbstractTreeModel::queueRebuild ( )
inherited

Definition at line 344 of file AbstractTreeModel.cpp.

◆ rebuildItems()

void Isis::PointMeasureTreeModel::rebuildItems ( )
virtual

Implements Isis::AbstractTreeModel.

Definition at line 108 of file PointMeasureTreeModel.cpp.

◆ rebuildItemsDone

void Isis::AbstractTreeModel::rebuildItemsDone ( )
privateslotinherited

Definition at line 566 of file AbstractTreeModel.cpp.

◆ selectItems()

void Isis::AbstractTreeModel::selectItems ( AbstractTreeItem * item,
bool select,
InterestingItemsFlag flags )
privateinherited

Definition at line 482 of file AbstractTreeModel.cpp.

◆ setFilter()

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

Definition at line 359 of file AbstractTreeModel.cpp.

◆ setFrozen()

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

Definition at line 325 of file AbstractTreeModel.cpp.

◆ setGlobalSelection()

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

Definition at line 476 of file AbstractTreeModel.cpp.

◆ setRebuilding()

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

Definition at line 81 of file AbstractTreeModel.h.

◆ stopWorking()

void Isis::AbstractTreeModel::stopWorking ( )
inherited

Definition at line 398 of file AbstractTreeModel.cpp.

Member Data Documentation

◆ m_busyItem

BusyLeafItem* Isis::AbstractTreeModel::m_busyItem
privateinherited

Definition at line 162 of file AbstractTreeModel.h.

◆ m_cNet

ControlNet* Isis::AbstractTreeModel::m_cNet
privateinherited

Definition at line 164 of file AbstractTreeModel.h.

◆ m_drivable

bool Isis::AbstractTreeModel::m_drivable
privateinherited

Definition at line 167 of file AbstractTreeModel.h.

◆ m_expandedState

QList< QPair< QString, QString > >* Isis::AbstractTreeModel::m_expandedState
privateinherited

Definition at line 159 of file AbstractTreeModel.h.

◆ m_filterAgain

bool Isis::AbstractTreeModel::m_filterAgain
privateinherited

Definition at line 168 of file AbstractTreeModel.h.

◆ m_filterRunning

bool Isis::AbstractTreeModel::m_filterRunning
privateinherited

Definition at line 169 of file AbstractTreeModel.h.

◆ m_filterWatcher

QFutureWatcher< QAtomicPointer< AbstractTreeItem > >* Isis::AbstractTreeModel::m_filterWatcher
privateinherited

Definition at line 157 of file AbstractTreeModel.h.

◆ m_frozen

bool Isis::AbstractTreeModel::m_frozen
privateinherited

Definition at line 171 of file AbstractTreeModel.h.

◆ m_guisFilterWidget

FilterWidget* Isis::AbstractTreeModel::m_guisFilterWidget
privateinherited

Definition at line 165 of file AbstractTreeModel.h.

◆ m_localFilterWidgetCopy

FilterWidget* Isis::AbstractTreeModel::m_localFilterWidgetCopy
privateinherited

Definition at line 166 of file AbstractTreeModel.h.

◆ m_mutex

QMutex* Isis::AbstractTreeModel::m_mutex
privateinherited

Definition at line 161 of file AbstractTreeModel.h.

◆ m_rebuildPending

bool Isis::AbstractTreeModel::m_rebuildPending
privateinherited

Definition at line 172 of file AbstractTreeModel.h.

◆ m_rebuildRunning

bool Isis::AbstractTreeModel::m_rebuildRunning
privateinherited

Definition at line 170 of file AbstractTreeModel.h.

◆ m_rebuildWatcher

QFutureWatcher< QAtomicPointer< RootItem > >* Isis::AbstractTreeModel::m_rebuildWatcher
privateinherited

Definition at line 158 of file AbstractTreeModel.h.

◆ m_selectedState

QList< QPair< QString, QString > >* Isis::AbstractTreeModel::m_selectedState
privateinherited

Definition at line 160 of file AbstractTreeModel.h.

◆ m_view

TreeView* Isis::AbstractTreeModel::m_view
privateinherited

Definition at line 163 of file AbstractTreeModel.h.

◆ rootItem

RootItem* Isis::AbstractTreeModel::rootItem
protectedinherited

Definition at line 153 of file AbstractTreeModel.h.


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