19 #ifndef vtkQtTableModelAdapter_h
20 #define vtkQtTableModelAdapter_h
22 #include "vtkGUISupportQtModule.h"
28 VTK_ABI_NAMESPACE_BEGIN
60 void SetIconIndexColumnName(
const char* name);
79 void SetDecorationLocation(
int s);
85 void SetDecorationStrategy(
int s);
87 bool GetSplitMultiComponentColumns()
const;
88 void SetSplitMultiComponentColumns(
bool value);
96 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
97 bool setData(
const QModelIndex&
index,
const QVariant&
value,
int role = Qt::EditRole)
override;
98 Qt::ItemFlags flags(
const QModelIndex&
index)
const override;
100 int section, Qt::Orientation
orientation,
int role = Qt::DisplayRole)
const override;
101 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
102 QModelIndex parent(
const QModelIndex&
index)
const override;
103 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
104 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
107 bool dropMimeData(
const QMimeData* data, Qt::DropAction action,
int row,
int column,
108 const QModelIndex& parent)
override;
109 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
110 QStringList mimeTypes()
const override;
111 Qt::DropActions supportedDropActions()
const override;
113 void SetIconSheet(QImage sheet);
114 void SetIconSize(
int w,
int h);
115 void SetIconSheetSize(
int w,
int h);
121 void getValue(
int row,
int column,
vtkVariant& retVal)
const;
122 bool noTableCheck()
const;
123 void updateModelColumnHashTables();
124 QVariant getColorIcon(
int row)
const;
125 QVariant getIcon(
int row)
const;
127 bool SplitMultiComponentColumns;
129 int DecorationLocation;
130 int DecorationStrategy;
133 int IconSheetSize[2];
137 vtkInternal* Internal;
143 VTK_ABI_NAMESPACE_END
Adapts a table to a Qt item model.
virtual vtkSelection * QModelIndexListToVTKIndexSelection(QModelIndexList qmil) const =0
Selection conversion from VTK land to Qt land.
data object that represents a "selection" in VTK.
A type representing the union of many types.
vtkTable * table() const
Set up the model based on the current table.
virtual void SetColorColumnName(const char *name)=0
virtual vtkDataObject * GetVTKDataObject() const =0
Set/Get the VTK data object as input to this adapter.
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.
virtual QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const =0
Selection conversion from VTK land to Qt land.
general representation of visualization data