osg::QSceneGraphItem Class Reference

#include <OSGQNodeTreeView_qt.h>

Inheritance diagram for osg::QSceneGraphItem:

osg::QFCItem osg::QNodeCoreItem osg::QNodeItem

List of all members.

Public Member Functions

 QSceneGraphItem (QListView *parent)
 QSceneGraphItem (QListViewItem *parent)
virtual ~QSceneGraphItem (void)
virtual FieldContainerPtr getFC (void) const =0
virtual void setOpen (bool bOpen)
virtual void expand (void)=0
virtual void collapse (void)=0

Static Public Member Functions

static QSceneGraphItemdcast (QListViewItem *pItem)

Protected Member Functions

UInt32 getAspect (void)

Private Types

typedef QListViewItem Inherited


Detailed Description

Definition at line 71 of file OSGQNodeTreeView_qt.h.


Member Typedef Documentation

typedef QListViewItem osg::QSceneGraphItem::Inherited [private]

Reimplemented in osg::QFCItem, osg::QNodeItem, and osg::QNodeCoreItem.

Definition at line 91 of file OSGQNodeTreeView_qt.h.


Constructor & Destructor Documentation

QSceneGraphItem::QSceneGraphItem ( QListView *  parent  ) 

Definition at line 86 of file OSGQNodeTreeView_qt.cpp.

00087     : Inherited(parent)
00088 {
00089 }

QSceneGraphItem::QSceneGraphItem ( QListViewItem *  parent  ) 

Definition at line 91 of file OSGQNodeTreeView_qt.cpp.

00092     : Inherited(parent)
00093 {
00094 }

QSceneGraphItem::~QSceneGraphItem ( void   )  [virtual]

Definition at line 96 of file OSGQNodeTreeView_qt.cpp.

00097 {
00098 }


Member Function Documentation

QSceneGraphItem * QSceneGraphItem::dcast ( QListViewItem *  pItem  )  [static]

Reimplemented in osg::QFCItem, osg::QNodeItem, and osg::QNodeCoreItem.

Definition at line 101 of file OSGQNodeTreeView_qt.cpp.

Referenced by osg::QNodeTreeView::findItemInChildren(), and osg::QSceneGraphView::onSelectionChanged().

00102 {
00103     return dynamic_cast<QSceneGraphItem *>(pItem);
00104 }

virtual FieldContainerPtr osg::QSceneGraphItem::getFC ( void   )  const [pure virtual]

void QSceneGraphItem::setOpen ( bool  bOpen  )  [virtual]

Definition at line 107 of file OSGQNodeTreeView_qt.cpp.

References collapse(), and expand().

00108 {
00109     if(bOpen)
00110         expand();
00111     else
00112         collapse();
00113 
00114     Inherited::setOpen(bOpen);
00115 }

virtual void osg::QSceneGraphItem::expand ( void   )  [pure virtual]

virtual void osg::QSceneGraphItem::collapse ( void   )  [pure virtual]

Implemented in osg::QFCItem.

Referenced by setOpen().

UInt32 QSceneGraphItem::getAspect ( void   )  [protected]

Definition at line 118 of file OSGQNodeTreeView_qt.cpp.

References osg::QNodeTreeView::dcast(), and osg::QNodeTreeView::getAspect().

Referenced by osg::QFCItem::expand(), and osg::QFCItem::setup().

00119 {
00120     if(!this->listView())
00121         return 0;
00122 
00123     QNodeTreeView *pView = QNodeTreeView::dcast(this->listView());
00124 
00125     if(!pView)
00126         return 0;
00127 
00128     return pView->getAspect();
00129 }


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

Generated on Mon Mar 17 12:26:18 2008 for OpenSG by  doxygen 1.5.5