Isis Developer Reference
Isis::AbstractTreeItem Class Referenceabstract

Base class for an item in the tree. More...

#include <AbstractTreeItem.h>

Inheritance diagram for Isis::AbstractTreeItem:
Inheritance graph
Collaboration diagram for Isis::AbstractTreeItem:
Collaboration graph

Public Types

enum  InternalPointerType { None , Point , Measure , ImageAndNet }
 

Public Member Functions

 AbstractTreeItem (AbstractTreeItem *parent=0)
 
virtual ~AbstractTreeItem ()
 
AbstractTreeItemparent () const
 
void setParent (AbstractTreeItem *newParent)
 
int row () const
 
virtual void addChild (AbstractTreeItem *child)=0
 
virtual QList< AbstractTreeItem * > getChildren () const =0
 
virtual AbstractTreeItemchildAt (int row) const =0
 
virtual int childCount () const =0
 
virtual AbstractTreeItemgetFirstVisibleChild () const =0
 
virtual AbstractTreeItemgetLastVisibleChild () const =0
 
virtual int indexOf (AbstractTreeItem *child) const =0
 
virtual void setFirstVisibleChild (AbstractTreeItem *child)=0
 
virtual void setLastVisibleChild (AbstractTreeItem *child)=0
 
virtual QVariant getData () const =0
 
virtual QVariant getData (QString columnTitle) const =0
 
virtual void setData (QString const &columnTitle, QString const &newData)=0
 
virtual bool isDataEditable (QString columnTitle) const =0
 
virtual void deleteSource ()=0
 
virtual InternalPointerType getPointerType () const =0
 
virtual void * getPointer () const =0
 
virtual QString getFormattedData () const
 
virtual QString getFormattedData (QString columnTitle) const
 
virtual bool hasMeasure (ControlMeasure *) const
 
virtual bool hasImage (QString imageSerial) const
 
virtual bool hasPoint (ControlPoint *) const
 
virtual AbstractTreeItemgetNextVisiblePeer () const
 
virtual void setNextVisiblePeer (AbstractTreeItem *next)
 
virtual void setExpanded (bool newState)
 
virtual bool isExpanded () const
 
virtual void setSelected (bool newState)
 
virtual void setSelectable (bool newSelectable)
 
virtual bool isSelected () const
 
virtual bool isSelectable () const
 
virtual void setVisible (bool newState)
 
virtual bool isVisible () const
 
virtual int getDataWidth () const
 
virtual int getDepth () const
 
virtual void setLastVisibleFilteredItem (AbstractTreeItem *item)
 
virtual const AbstractTreeItemgetLastVisibleFilteredItem () const
 

Protected Slots

virtual void sourceDeleted ()=0
 

Protected Member Functions

virtual void calcDataWidth (int avgCharWidth)
 

Static Protected Member Functions

static double catchNull (QString)
 
static QString catchNull (QVariant)
 

Detailed Description

Base class for an item in the tree.

This class represents an arbitrary item in the tree. Some of the data access methods are provided for compatibility with the table models (i.e. by column).

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

Member Enumeration Documentation

◆ InternalPointerType

Enumerator
None 
Point 
Measure 
ImageAndNet 

Constructor & Destructor Documentation

◆ AbstractTreeItem()

Isis::AbstractTreeItem::AbstractTreeItem ( AbstractTreeItem * parent = 0)

◆ ~AbstractTreeItem()

Isis::AbstractTreeItem::~AbstractTreeItem ( )
virtual

Member Function Documentation

◆ addChild()

virtual void Isis::AbstractTreeItem::addChild ( AbstractTreeItem * child)
pure virtual

◆ calcDataWidth()

◆ catchNull() [1/2]

double Isis::AbstractTreeItem::catchNull ( QString str)
staticprotected

◆ catchNull() [2/2]

QString Isis::AbstractTreeItem::catchNull ( QVariant data)
staticprotected

References Isis::Null.

◆ childAt()

virtual AbstractTreeItem * Isis::AbstractTreeItem::childAt ( int row) const
pure virtual

◆ childCount()

virtual int Isis::AbstractTreeItem::childCount ( ) const
pure virtual

◆ deleteSource()

virtual void Isis::AbstractTreeItem::deleteSource ( )
pure virtual

◆ getChildren()

◆ getData() [1/2]

virtual QVariant Isis::AbstractTreeItem::getData ( ) const
pure virtual

◆ getData() [2/2]

virtual QVariant Isis::AbstractTreeItem::getData ( QString columnTitle) const
pure virtual

◆ getDataWidth()

int Isis::AbstractTreeItem::getDataWidth ( ) const
virtual

◆ getDepth()

int Isis::AbstractTreeItem::getDepth ( ) const
virtual

References parent().

◆ getFirstVisibleChild()

virtual AbstractTreeItem * Isis::AbstractTreeItem::getFirstVisibleChild ( ) const
pure virtual

◆ getFormattedData() [1/2]

◆ getFormattedData() [2/2]

QString Isis::AbstractTreeItem::getFormattedData ( QString columnTitle) const
virtual

References catchNull(), and getData().

◆ getLastVisibleChild()

virtual AbstractTreeItem * Isis::AbstractTreeItem::getLastVisibleChild ( ) const
pure virtual

◆ getLastVisibleFilteredItem()

const AbstractTreeItem * Isis::AbstractTreeItem::getLastVisibleFilteredItem ( ) const
virtual

Reimplemented in Isis::RootItem.

◆ getNextVisiblePeer()

AbstractTreeItem * Isis::AbstractTreeItem::getNextVisiblePeer ( ) const
virtual

◆ getPointer()

◆ getPointerType()

◆ hasImage()

bool Isis::AbstractTreeItem::hasImage ( QString imageSerial) const
virtual

Reimplemented in Isis::AbstractImageItem.

References childAt(), and childCount().

Referenced by Isis::AbstractImageItem::hasImage().

◆ hasMeasure()

bool Isis::AbstractTreeItem::hasMeasure ( ControlMeasure * measure) const
virtual

Reimplemented in Isis::AbstractMeasureItem.

References childAt(), and childCount().

◆ hasPoint()

bool Isis::AbstractTreeItem::hasPoint ( ControlPoint * point) const
virtual

Reimplemented in Isis::AbstractPointItem.

References childAt(), and childCount().

◆ indexOf()

virtual int Isis::AbstractTreeItem::indexOf ( AbstractTreeItem * child) const
pure virtual

Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.

Referenced by row().

◆ isDataEditable()

virtual bool Isis::AbstractTreeItem::isDataEditable ( QString columnTitle) const
pure virtual

◆ isExpanded()

bool Isis::AbstractTreeItem::isExpanded ( ) const
virtual

◆ isSelectable()

bool Isis::AbstractTreeItem::isSelectable ( ) const
virtual

◆ isSelected()

bool Isis::AbstractTreeItem::isSelected ( ) const
virtual

◆ isVisible()

bool Isis::AbstractTreeItem::isVisible ( ) const
virtual

◆ parent()

◆ row()

int Isis::AbstractTreeItem::row ( ) const

References indexOf().

Referenced by Isis::AbstractParentItem::childAt().

◆ setData()

virtual void Isis::AbstractTreeItem::setData ( QString const & columnTitle,
QString const & newData )
pure virtual

◆ setExpanded()

void Isis::AbstractTreeItem::setExpanded ( bool newState)
virtual

◆ setFirstVisibleChild()

virtual void Isis::AbstractTreeItem::setFirstVisibleChild ( AbstractTreeItem * child)
pure virtual

◆ setLastVisibleChild()

virtual void Isis::AbstractTreeItem::setLastVisibleChild ( AbstractTreeItem * child)
pure virtual

◆ setLastVisibleFilteredItem()

void Isis::AbstractTreeItem::setLastVisibleFilteredItem ( AbstractTreeItem * item)
virtual

Reimplemented in Isis::RootItem.

References _FILEINFO_, and Isis::IException::Programmer.

◆ setNextVisiblePeer()

void Isis::AbstractTreeItem::setNextVisiblePeer ( AbstractTreeItem * next)
virtual

◆ setParent()

void Isis::AbstractTreeItem::setParent ( AbstractTreeItem * newParent)

◆ setSelectable()

void Isis::AbstractTreeItem::setSelectable ( bool newSelectable)
virtual

◆ setSelected()

void Isis::AbstractTreeItem::setSelected ( bool newState)
virtual

◆ setVisible()

void Isis::AbstractTreeItem::setVisible ( bool newState)
virtual

◆ sourceDeleted

virtual void Isis::AbstractTreeItem::sourceDeleted ( )
protectedpure virtualslot

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