vtkQtAnnotationLayersModelAdapter Class Reference

#include <vtkQtAnnotationLayersModelAdapter.h>

Inheritance diagram for vtkQtAnnotationLayersModelAdapter:

Inheritance graph
[legend]
Collaboration diagram for vtkQtAnnotationLayersModelAdapter:

Collaboration graph
[legend]

List of all members.


Detailed Description

Adapts annotations to a Qt item model.

vtkQtAnnotationLayersModelAdapter is a QAbstractItemModel with a vtkAnnotationLayers as its underlying data model.

See also:
vtkQtAbstractModelAdapter vtkQtTableModelAdapter

Definition at line 40 of file vtkQtAnnotationLayersModelAdapter.h.


Public Member Functions

 vtkQtAnnotationLayersModelAdapter (QObject *parent=0)
 vtkQtAnnotationLayersModelAdapter (vtkAnnotationLayers *ann, QObject *parent=0)
 ~vtkQtAnnotationLayersModelAdapter ()
virtual void SetKeyColumnName (const char *name)
virtual void SetColorColumnName (const char *name)
virtual void SetVTKDataObject (vtkDataObject *data)
virtual vtkDataObjectGetVTKDataObject () const
virtual vtkAnnotationLayersQModelIndexListToVTKAnnotationLayers (const QModelIndexList qmil) const
virtual QItemSelection VTKAnnotationLayersToQItemSelection (vtkAnnotationLayers *vtkann) const
virtual vtkSelectionQModelIndexListToVTKIndexSelection (const QModelIndexList qmil) const
virtual QItemSelection VTKIndexSelectionToQItemSelection (vtkSelection *vtksel) const
void setAnnotationLayers (vtkAnnotationLayers *annotations)
vtkAnnotationLayersannotationLayers () const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const

Constructor & Destructor Documentation

vtkQtAnnotationLayersModelAdapter::vtkQtAnnotationLayersModelAdapter ( QObject *  parent = 0  ) 

vtkQtAnnotationLayersModelAdapter::vtkQtAnnotationLayersModelAdapter ( vtkAnnotationLayers ann,
QObject *  parent = 0 
)

vtkQtAnnotationLayersModelAdapter::~vtkQtAnnotationLayersModelAdapter (  ) 


Member Function Documentation

virtual void vtkQtAnnotationLayersModelAdapter::SetVTKDataObject ( vtkDataObject data  )  [virtual]

Set/Get the VTK data object as input to this adapter

Implements vtkQtAbstractModelAdapter.

virtual vtkDataObject* vtkQtAnnotationLayersModelAdapter::GetVTKDataObject (  )  const [virtual]

Set/Get the VTK data object as input to this adapter

Implements vtkQtAbstractModelAdapter.

virtual vtkAnnotationLayers* vtkQtAnnotationLayersModelAdapter::QModelIndexListToVTKAnnotationLayers ( const QModelIndexList  qmil  )  const [virtual]

Selection conversion from VTK land to Qt land

virtual QItemSelection vtkQtAnnotationLayersModelAdapter::VTKAnnotationLayersToQItemSelection ( vtkAnnotationLayers vtkann  )  const [virtual]

Selection conversion from VTK land to Qt land

virtual vtkSelection* vtkQtAnnotationLayersModelAdapter::QModelIndexListToVTKIndexSelection ( const QModelIndexList  qmil  )  const [virtual]

Selection conversion from VTK land to Qt land

Implements vtkQtAbstractModelAdapter.

virtual QItemSelection vtkQtAnnotationLayersModelAdapter::VTKIndexSelectionToQItemSelection ( vtkSelection vtksel  )  const [virtual]

Selection conversion from VTK land to Qt land

Implements vtkQtAbstractModelAdapter.

virtual void vtkQtAnnotationLayersModelAdapter::SetKeyColumnName ( const char *  name  )  [virtual]

Set/Get the key column. The key column is used as the row headers in a table view, and as the first column in a tree view. Set to -1 for no key column. The default is no key column.

Implements vtkQtAbstractModelAdapter.

virtual void vtkQtAnnotationLayersModelAdapter::SetColorColumnName ( const char *  name  )  [virtual]

Set/Get the column storing the rgba color values for each row. The color column is used as the row headers in a table view, and as the first column in a tree view. Set to -1 for no key column. The default is no key column.

Implements vtkQtAbstractModelAdapter.

void vtkQtAnnotationLayersModelAdapter::setAnnotationLayers ( vtkAnnotationLayers annotations  ) 

Set up the model based on the current table.

vtkAnnotationLayers* vtkQtAnnotationLayersModelAdapter::annotationLayers (  )  const [inline]

Set up the model based on the current table.

Definition at line 73 of file vtkQtAnnotationLayersModelAdapter.h.

QVariant vtkQtAnnotationLayersModelAdapter::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Set up the model based on the current table.

bool vtkQtAnnotationLayersModelAdapter::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Set up the model based on the current table.

Qt::ItemFlags vtkQtAnnotationLayersModelAdapter::flags ( const QModelIndex &  index  )  const

Set up the model based on the current table.

QVariant vtkQtAnnotationLayersModelAdapter::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Set up the model based on the current table.

QModelIndex vtkQtAnnotationLayersModelAdapter::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Set up the model based on the current table.

QModelIndex vtkQtAnnotationLayersModelAdapter::parent ( const QModelIndex &  index  )  const

Set up the model based on the current table.

int vtkQtAnnotationLayersModelAdapter::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const

Set up the model based on the current table.

int vtkQtAnnotationLayersModelAdapter::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const

Set up the model based on the current table.


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

Generated on Wed Aug 24 11:59:05 2011 for VTK by  doxygen 1.5.6