32 #ifndef vtkQtListView_h 33 #define vtkQtListView_h 35 #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();
123 void SetVisibleColumn(
int col);
128 void SetFilterRegExp(
const QRegExp& pattern);
134 void SetIconSheet(QImage sheet);
135 void SetIconSize(
int w,
int h);
136 void SetIconSheetSize(
int w,
int h);
137 void SetIconArrayName(
const char*
name);
145 void Update() VTK_OVERRIDE;
149 ~vtkQtListView() VTK_OVERRIDE;
155 void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
158 void SetVTKSelection();
164 vtkSetStringMacro(ColorArrayNameInternal);
166 vtkSetStringMacro(IconIndexArrayNameInternal);
169 QPointer<QListView> ListView;
171 QSortFilterProxyModel* TableSorter;
172 char* ColorArrayNameInternal;
173 char* IconIndexArrayNameInternal;
174 char* VisibleColumnName;
175 bool SortSelectionToTop;
183 vtkQtListView(const vtkQtListView&) VTK_DELETE_FUNCTION;
184 void operator=(const vtkQtListView&) VTK_DELETE_FUNCTION;
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).
Hold a reference to a vtkObjectBase instance.
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.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
apply colors to a data set.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Superclass for Qt widget-based views.