31 #ifndef vtkQtListView_h
32 #define vtkQtListView_h
34 #include "vtkViewsQtModule.h"
35 #include "QVTKWin32Header.h"
40 #include <QSortFilterProxyModel>
77 vtkGetMacro(FieldType,
int);
78 void SetFieldType(
int);
82 void SetEnableDragDrop(
bool);
85 void SetAlternatingRowColors(
bool);
90 void SetDecorationStrategy(
int);
94 void SetColorArrayName(
const char*
name);
95 const char* GetColorArrayName();
100 void SetColorByArray(
bool vis);
101 bool GetColorByArray();
102 vtkBooleanMacro(ColorByArray,
bool);
106 void SetVisibleColumn(
int col);
109 void SetFilterRegExp(
const QRegExp& pattern);
114 void SetIconSheet(QImage sheet);
115 void SetIconSize(
int w,
int h);
116 void SetIconSheetSize(
int w,
int h);
117 void SetIconArrayName(
const char*
name);
133 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
136 void SetVTKSelection();
138 unsigned long LastSelectionMTime;
139 unsigned long LastInputMTime;
140 unsigned long LastMTime;
142 vtkSetStringMacro(ColorArrayNameInternal);
143 vtkGetStringMacro(ColorArrayNameInternal);
144 vtkSetStringMacro(IconIndexArrayNameInternal);
145 vtkGetStringMacro(IconIndexArrayNameInternal);
147 QPointer<QListView> ListView;
149 QSortFilterProxyModel* TableSorter;
150 char* ColorArrayNameInternal;
151 char* IconIndexArrayNameInternal;
152 char* VisibleColumnName;
153 bool SortSelectionToTop;
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Adapts a table to a Qt item model.
extract field data as a table
virtual QWidget * GetWidget()=0
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Sets theme colors for a graphical view.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
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))