31 #ifndef vtkQtListView_h
32 #define vtkQtListView_h
44 class QSortFilterProxyModel;
75 vtkGetMacro(FieldType,
int);
76 void SetFieldType(
int);
80 void SetEnableDragDrop(
bool);
83 void SetAlternatingRowColors(
bool);
88 void SetDecorationStrategy(
int);
92 void SetColorArrayName(
const char*
name);
93 const char* GetColorArrayName();
98 void SetColorByArray(
bool vis);
99 bool GetColorByArray();
100 vtkBooleanMacro(ColorByArray,
bool);
104 void SetVisibleColumn(
int col);
107 void SetFilterRegExp(
const QRegExp& pattern);
112 void SetIconSheet(QImage sheet);
113 void SetIconSize(
int w,
int h);
114 void SetIconSheetSize(
int w,
int h);
115 void SetIconArrayName(
const char*
name);
131 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
134 void SetVTKSelection();
136 unsigned long LastSelectionMTime;
137 unsigned long LastInputMTime;
138 unsigned long LastMTime;
140 vtkSetStringMacro(ColorArrayNameInternal);
141 vtkGetStringMacro(ColorArrayNameInternal);
142 vtkSetStringMacro(IconIndexArrayNameInternal);
143 vtkGetStringMacro(IconIndexArrayNameInternal);
145 QPointer<QListView> ListView;
147 QSortFilterProxyModel* TableSorter;
148 char* ColorArrayNameInternal;
149 char* IconIndexArrayNameInternal;
150 char* VisibleColumnName;
151 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
#define VTKVIEWSQT_EXPORT
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))