OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Private Attributes | List of all members
mvd::TreeWidgetItem Class Reference

#include <mvdTreeWidgetItem.h>

+ Inheritance diagram for mvd::TreeWidgetItem:
+ Collaboration diagram for mvd::TreeWidgetItem:

Public Types

enum  ColumnIndex {
  COLUMN_INDEX_TEXT = 0,
  COLUMN_INDEX_ID = 1,
  COLUMN_INDEX_HASH = 2
}
 
enum  ItemRole { ITEM_ROLE_ID = Qt::UserRole + 1 }
 
enum  ItemType {
  ITEM_TYPE_NONE = QTreeWidgetItem::UserType,
  ITEM_TYPE_NODE = QTreeWidgetItem::UserType + 1,
  ITEM_TYPE_LEAF = QTreeWidgetItem::UserType + 2
}
 

Public Member Functions

QTreeWidgetItem * clone () const override
 
QString GetHash () const
 
QVariant GetId () const
 
QString GetText () const
 
TreeWidgetItem::ItemType GetType () const
 
 TreeWidgetItem (QTreeWidgetItem *p=NULL, const QString &text=QString(), const QVariant &id=QVariant(), const QStringList &columns=QStringList(), TreeWidgetItem::ItemType type=TreeWidgetItem::ITEM_TYPE_LEAF)
 
 ~TreeWidgetItem () override
 

Private Member Functions

void SetId (const QVariant &id)
 

Static Private Attributes

static const int m_ConstPointerMetaTypeId
 
static const int m_MetaTypeId
 
static const int m_PointerMetaTypeId
 

Detailed Description

Definition at line 79 of file mvdTreeWidgetItem.h.

Member Enumeration Documentation

Enumerator
COLUMN_INDEX_TEXT 
COLUMN_INDEX_ID 
COLUMN_INDEX_HASH 

Definition at line 88 of file mvdTreeWidgetItem.h.

Enumerator
ITEM_ROLE_ID 

Definition at line 102 of file mvdTreeWidgetItem.h.

Enumerator
ITEM_TYPE_NONE 
ITEM_TYPE_NODE 
ITEM_TYPE_LEAF 

Definition at line 95 of file mvdTreeWidgetItem.h.

Constructor & Destructor Documentation

mvd::TreeWidgetItem::TreeWidgetItem ( QTreeWidgetItem *  p = NULL,
const QString &  text = QString(),
const QVariant &  id = QVariant(),
const QStringList &  columns = QStringList(),
TreeWidgetItem::ItemType  type = TreeWidgetItem::ITEM_TYPE_LEAF 
)

Constructor.

mvd::TreeWidgetItem::~TreeWidgetItem ( )
override

Destructor.

Member Function Documentation

QTreeWidgetItem* mvd::TreeWidgetItem::clone ( ) const
override
QString mvd::TreeWidgetItem::GetHash ( ) const
inline

Get the datasetID.

Definition at line 266 of file mvdTreeWidgetItem.h.

QVariant mvd::TreeWidgetItem::GetId ( ) const
inline

Definition at line 237 of file mvdTreeWidgetItem.h.

References ITEM_ROLE_ID.

QString mvd::TreeWidgetItem::GetText ( ) const
inline

Definition at line 257 of file mvdTreeWidgetItem.h.

TreeWidgetItem::ItemType mvd::TreeWidgetItem::GetType ( void  ) const
inline

Definition at line 225 of file mvdTreeWidgetItem.h.

References ITEM_TYPE_NONE, and type.

void mvd::TreeWidgetItem::SetId ( const QVariant &  id)
inlineprivate

Definition at line 246 of file mvdTreeWidgetItem.h.

References ITEM_ROLE_ID.

Member Data Documentation

const int mvd::TreeWidgetItem::m_ConstPointerMetaTypeId
staticprivate

Definition at line 188 of file mvdTreeWidgetItem.h.

const int mvd::TreeWidgetItem::m_MetaTypeId
staticprivate

Definition at line 180 of file mvdTreeWidgetItem.h.

const int mvd::TreeWidgetItem::m_PointerMetaTypeId
staticprivate

Definition at line 184 of file mvdTreeWidgetItem.h.


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