32 #ifndef vtkQtListView_h
33 #define vtkQtListView_h
36 #include "vtkViewsQtModule.h"
45 class QSortFilterProxyModel;
81 vtkGetMacro(FieldType,
int);
82 void SetFieldType(
int);
88 void SetEnableDragDrop(
bool);
93 void SetAlternatingRowColors(
bool);
101 void SetDecorationStrategy(
int);
107 void SetColorArrayName(
const char*
name);
108 const char* GetColorArrayName();
115 void SetColorByArray(
bool vis);
116 bool GetColorByArray();
117 vtkBooleanMacro(ColorByArray,
bool);
123 void SetVisibleColumn(
int col);
128 #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
129 void SetFilterRegExp(
const QRegularExpression& pattern);
131 void SetFilterRegExp(
const QRegExp& pattern);
138 void SetIconSheet(QImage sheet);
139 void SetIconSize(
int w,
int h);
140 void SetIconSheetSize(
int w,
int h);
141 void SetIconArrayName(
const char*
name);
159 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
162 void SetVTKSelection();
168 vtkSetStringMacro(ColorArrayNameInternal);
169 vtkGetStringMacro(ColorArrayNameInternal);
170 vtkSetStringMacro(IconIndexArrayNameInternal);
171 vtkGetStringMacro(IconIndexArrayNameInternal);
173 QPointer<QListView> ListView;
175 QSortFilterProxyModel* TableSorter;
176 char* ColorArrayNameInternal;
177 char* IconIndexArrayNameInternal;
178 char* VisibleColumnName;
179 bool SortSelectionToTop;
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to the view.
Adapts a table to a Qt item model.
vtkTypeUInt32 vtkMTimeType
virtual void Update()
Update the view.
extract field data as a table
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Subclass "hooks" for notifying subclasses of vtkView when representations are added or removed...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Sets theme colors for a graphical view.
a simple class to control print indentation
The superclass for all representations.
A VTK view based on a Qt List view.
apply colors to a data set.
Superclass for Qt widget-based views.
virtual void RemoveRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Meant for use by subclasses and vtkRepresentation subclasses.