16 #ifndef vtkQtListView_h
17 #define vtkQtListView_h
20 #include "vtkViewsQtModule.h"
27 class QSortFilterProxyModel;
30 VTK_ABI_NAMESPACE_BEGIN
67 vtkGetMacro(FieldType,
int);
68 void SetFieldType(
int);
74 void SetEnableDragDrop(
bool);
79 void SetAlternatingRowColors(
bool);
87 void SetDecorationStrategy(
int);
93 void SetColorArrayName(
const char*
name);
94 const char* GetColorArrayName();
101 void SetColorByArray(
bool vis);
102 bool GetColorByArray();
103 vtkBooleanMacro(ColorByArray,
bool);
109 void SetVisibleColumn(
int col);
114 #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
115 void SetFilterRegExp(
const QRegularExpression& pattern);
117 void SetFilterRegExp(
const QRegExp& pattern);
124 void SetIconSheet(QImage sheet);
125 void SetIconSize(
int w,
int h);
126 void SetIconSheetSize(
int w,
int h);
127 void SetIconArrayName(
const char*
name);
145 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
148 void SetVTKSelection();
154 vtkSetStringMacro(ColorArrayNameInternal);
155 vtkGetStringMacro(ColorArrayNameInternal);
156 vtkSetStringMacro(IconIndexArrayNameInternal);
157 vtkGetStringMacro(IconIndexArrayNameInternal);
159 QPointer<QListView> ListView;
161 QSortFilterProxyModel* TableSorter;
162 char* ColorArrayNameInternal;
163 char* IconIndexArrayNameInternal;
164 char* VisibleColumnName;
165 bool SortSelectionToTop;
177 VTK_ABI_NAMESPACE_END
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.
this filter produces a vtkTable from the chosen attribute in the input data object.
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.