VTK
Public Member Functions | List of all members
vtkQtAnnotationLayersModelAdapter Class Reference

Adapts annotations to a Qt item model. More...

#include <vtkQtAnnotationLayersModelAdapter.h>

Inheritance diagram for vtkQtAnnotationLayersModelAdapter:
[legend]
Collaboration diagram for vtkQtAnnotationLayersModelAdapter:
[legend]

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)
 Set/Get the VTK data object as input to this adapter. More...
 
virtual vtkDataObjectGetVTKDataObject () const
 Set/Get the VTK data object as input to this adapter. More...
 
virtual vtkAnnotationLayersQModelIndexListToVTKAnnotationLayers (const QModelIndexList qmil) const
 Selection conversion from VTK land to Qt land. More...
 
virtual QItemSelection VTKAnnotationLayersToQItemSelection (vtkAnnotationLayers *vtkann) const
 Selection conversion from VTK land to Qt land. More...
 
virtual vtkSelectionQModelIndexListToVTKIndexSelection (const QModelIndexList qmil) const
 Selection conversion from VTK land to Qt land. More...
 
virtual QItemSelection VTKIndexSelectionToQItemSelection (vtkSelection *vtksel) const
 Selection conversion from VTK land to Qt land. More...
 
void setAnnotationLayers (vtkAnnotationLayers *annotations)
 Set up the model based on the current table. More...
 
vtkAnnotationLayersannotationLayers () const
 Set up the model based on the current table. More...
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 Set up the model based on the current table. More...
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 Set up the model based on the current table. More...
 
Qt::ItemFlags flags (const QModelIndex &index) const
 Set up the model based on the current table. More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 Set up the model based on the current table. More...
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 Set up the model based on the current table. More...
 
QModelIndex parent (const QModelIndex &index) const
 Set up the model based on the current table. More...
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Set up the model based on the current table. More...
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 Set up the model based on the current table. More...
 
- Public Member Functions inherited from vtkQtAbstractModelAdapter
 vtkQtAbstractModelAdapter (QObject *p)
 
virtual void SetViewType (int type)
 Set/Get the view type. More...
 
virtual int GetViewType ()
 
virtual void SetKeyColumn (int col)
 Set/Get the key column. More...
 
virtual int GetKeyColumn ()
 
virtual void SetColorColumn (int col)
 Set/Get the column storing the rgba color values for each row. More...
 
virtual int GetColorColumn ()
 
virtual void SetDataColumnRange (int c1, int c2)
 Set the range of columns that specify the main data matrix. More...
 
void reset ()
 
void beginResetModel ()
 
void endResetModel ()
 

Additional Inherited Members

- Public Types inherited from vtkQtAbstractModelAdapter
enum  { FULL_VIEW, DATA_VIEW }
 
- Signals inherited from vtkQtAbstractModelAdapter
void modelChanged ()
 
- Protected Member Functions inherited from vtkQtAbstractModelAdapter
virtual int ModelColumnToFieldDataColumn (int col) const
 Map a column index in the QAbstractItemModel to a vtkTable column. More...
 
- Protected Attributes inherited from vtkQtAbstractModelAdapter
int ViewType
 
int KeyColumn
 
int ColorColumn
 
int DataStartColumn
 
int DataEndColumn
 

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 42 of file vtkQtAnnotationLayersModelAdapter.h.

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
virtual void vtkQtAnnotationLayersModelAdapter::SetColorColumnName ( const char *  name)
virtual
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 81 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: