Isis Developer Reference
Isis::AbstractParentItem Class Referenceabstract

Base class for an item that is a parent in the tree. More...

#include <AbstractParentItem.h>

Inheritance diagram for Isis::AbstractParentItem:
Inheritance graph
Collaboration diagram for Isis::AbstractParentItem:
Collaboration graph

Public Types

enum  InternalPointerType { None , Point , Measure , ImageAndNet }
 

Public Member Functions

 AbstractParentItem (AbstractTreeItem *parent=0)
 
virtual ~AbstractParentItem ()
 
virtual AbstractTreeItemchildAt (int row) const
 
virtual QList< AbstractTreeItem * > getChildren () const
 
virtual AbstractTreeItemgetFirstVisibleChild () const
 
virtual AbstractTreeItemgetLastVisibleChild () const
 
virtual int indexOf (AbstractTreeItem *child) const
 
virtual int childCount () const
 
virtual void addChild (AbstractTreeItem *child)
 
virtual void setFirstVisibleChild (AbstractTreeItem *child)
 
virtual void setLastVisibleChild (AbstractTreeItem *child)
 
AbstractTreeItemparent () const
 
void setParent (AbstractTreeItem *newParent)
 
int row () const
 
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 that is a parent in the tree.

This class represents an item in the tree that is a parent (i.e. has children items). Item types that have children should derive from this class.

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

Member Enumeration Documentation

◆ InternalPointerType

Enumerator
None 
Point 
Measure 
ImageAndNet 

Constructor & Destructor Documentation

◆ AbstractParentItem()

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

◆ ~AbstractParentItem()

Isis::AbstractParentItem::~AbstractParentItem ( )
virtual

Member Function Documentation

◆ addChild()

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

◆ calcDataWidth()

◆ catchNull() [1/2]

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

◆ catchNull() [2/2]

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

References Isis::Null.

◆ childAt()

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

◆ childCount()

int Isis::AbstractParentItem::childCount ( ) const
virtual

◆ deleteSource()

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

◆ getChildren()

QList< AbstractTreeItem * > Isis::AbstractParentItem::getChildren ( ) const
virtual

◆ getData() [1/2]

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

◆ getData() [2/2]

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

◆ getDataWidth()

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

◆ getDepth()

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

◆ getFirstVisibleChild()

◆ getFormattedData() [1/2]

◆ getFormattedData() [2/2]

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

◆ getLastVisibleChild()

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

◆ getLastVisibleFilteredItem()

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

Reimplemented in Isis::RootItem.

◆ getNextVisiblePeer()

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

◆ getPointer()

◆ getPointerType()

◆ hasImage()

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

◆ hasMeasure()

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

◆ hasPoint()

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

◆ indexOf()

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

◆ isDataEditable()

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

◆ isExpanded()

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

◆ isSelectable()

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

◆ isSelected()

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

◆ isVisible()

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

◆ parent()

◆ row()

int Isis::AbstractTreeItem::row ( ) const
inherited

References Isis::AbstractTreeItem::indexOf().

Referenced by childAt().

◆ setData()

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

◆ setExpanded()

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

◆ setFirstVisibleChild()

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

◆ setLastVisibleChild()

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

◆ setLastVisibleFilteredItem()

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

Reimplemented in Isis::RootItem.

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

◆ setNextVisiblePeer()

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

◆ setParent()

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

Referenced by addChild().

◆ setSelectable()

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

◆ setSelected()

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

◆ setVisible()

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

◆ sourceDeleted

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

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