32 #ifndef vtkQtTableModelAdapter_h 33 #define vtkQtTableModelAdapter_h 35 #include "vtkConfigure.h" 36 #include "vtkGUISupportQtModule.h" 68 const QModelIndexList qmil)
const VTK_OVERRIDE;
75 void SetIconIndexColumnName(
const char* name);
94 void SetDecorationLocation(
int s);
100 void SetDecorationStrategy(
int s);
102 bool GetSplitMultiComponentColumns()
const;
103 void SetSplitMultiComponentColumns(
bool value);
111 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const VTK_OVERRIDE;
112 bool setData(
const QModelIndex &index,
const QVariant &
value,
int role = Qt::EditRole) VTK_OVERRIDE;
113 Qt::ItemFlags flags(
const QModelIndex &index)
const VTK_OVERRIDE;
114 QVariant headerData(
int section, Qt::Orientation
orientation,
115 int role = Qt::DisplayRole)
const VTK_OVERRIDE;
116 QModelIndex
index(
int row,
int column,
117 const QModelIndex &parent = QModelIndex())
const VTK_OVERRIDE;
118 QModelIndex parent(
const QModelIndex &index)
const VTK_OVERRIDE;
119 int rowCount(
const QModelIndex &parent = QModelIndex())
const VTK_OVERRIDE;
120 int columnCount(
const QModelIndex &parent = QModelIndex())
const VTK_OVERRIDE;
123 bool dropMimeData(
const QMimeData * data, Qt::DropAction action,
int row,
int column,
const QModelIndex & parent) VTK_OVERRIDE ;
124 QMimeData * mimeData (
const QModelIndexList & indexes )
const VTK_OVERRIDE;
125 QStringList mimeTypes ()
const VTK_OVERRIDE;
126 Qt::DropActions supportedDropActions()
const VTK_OVERRIDE;
128 void SetIconSheet(QImage sheet);
129 void SetIconSize(
int w,
int h);
130 void SetIconSheetSize(
int w,
int h);
137 void getValue(
int row,
int column,
vtkVariant& retVal)
const;
138 bool noTableCheck()
const;
139 void updateModelColumnHashTables();
140 QVariant getColorIcon(
int row)
const;
141 QVariant getIcon(
int row)
const;
143 bool SplitMultiComponentColumns;
145 int DecorationLocation;
146 int DecorationStrategy;
149 int IconSheetSize[2];
153 vtkInternal* Internal;
Adapts a table to a Qt item model.
A node in a selection tree.
A atomic type representing the union of many types.
vtkTable * table() const
Set up the model based on the current table.
virtual vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const =0
Selection conversion from VTK land to Qt land.
virtual void SetColorColumnName(const char *name)=0
virtual vtkDataObject * GetVTKDataObject() const =0
Set/Get the VTK data object as input to this adapter.
virtual QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const =0
Selection conversion from VTK land to Qt land.
Superclass for Qt model adapters.
A table, which contains similar-typed columns of data.
virtual void SetKeyColumnName(const char *name)=0
virtual void SetVTKDataObject(vtkDataObject *data)=0
Set/Get the VTK data object as input to this adapter.
general representation of visualization data