35 #ifndef vtkQtTableModelAdapter_h 36 #define vtkQtTableModelAdapter_h 38 #include "vtkConfigure.h" 39 #include "vtkGUISupportQtModule.h" 71 const QModelIndexList qmil)
const override;
78 void SetIconIndexColumnName(
const char* name);
97 void SetDecorationLocation(
int s);
103 void SetDecorationStrategy(
int s);
105 bool GetSplitMultiComponentColumns()
const;
106 void SetSplitMultiComponentColumns(
bool value);
114 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const override;
115 bool setData(
const QModelIndex &index,
const QVariant &
value,
int role = Qt::EditRole)
override;
116 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
117 QVariant headerData(
int section, Qt::Orientation
orientation,
118 int role = Qt::DisplayRole)
const override;
119 QModelIndex
index(
int row,
int column,
120 const QModelIndex &parent = QModelIndex())
const override;
121 QModelIndex parent(
const QModelIndex &index)
const override;
122 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
123 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
126 bool dropMimeData(
const QMimeData * data, Qt::DropAction action,
int row,
int column,
const QModelIndex & parent)
override ;
127 QMimeData * mimeData (
const QModelIndexList & indexes )
const override;
128 QStringList mimeTypes ()
const override;
129 Qt::DropActions supportedDropActions()
const override;
131 void SetIconSheet(QImage sheet);
132 void SetIconSize(
int w,
int h);
133 void SetIconSheetSize(
int w,
int h);
140 void getValue(
int row,
int column,
vtkVariant& retVal)
const;
141 bool noTableCheck()
const;
142 void updateModelColumnHashTables();
143 QVariant getColorIcon(
int row)
const;
144 QVariant getIcon(
int row)
const;
146 bool SplitMultiComponentColumns;
148 int DecorationLocation;
149 int DecorationStrategy;
152 int IconSheetSize[2];
156 vtkInternal* Internal;
Adapts a table to a Qt item model.
data object that represents a "selection" in VTK.
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