37 #ifndef vtkQtTableView_h
38 #define vtkQtTableView_h
51 class QSortFilterProxyModel;
70 void SetShowVerticalHeaders(
bool);
73 void SetShowHorizontalHeaders(
bool);
88 vtkGetMacro(FieldType,
int);
89 void SetFieldType(
int);
93 void SetEnableDragDrop(
bool);
97 void SetSortingEnabled(
bool);
103 void SetShowAll(
bool);
104 vtkGetMacro(ShowAll,
bool);
110 vtkSetStringMacro(ColumnName);
111 vtkGetStringMacro(ColumnName);
114 void SetColumnVisibility(
const QString &
name,
bool status);
118 void SetSplitMultiComponentColumns(
bool value);
122 bool GetSplitMultiComponentColumns();
126 void SetSortSelectionToTop(
bool value);
127 vtkGetMacro(SortSelectionToTop,
bool);
133 void SetApplyRowColors(
bool value);
134 vtkGetMacro(ApplyRowColors,
bool);
142 void SetColorArrayName(
const char*
name);
143 const char* GetColorArrayName();
148 void SetColorByArray(
bool vis);
149 bool GetColorByArray();
150 vtkBooleanMacro(ColorByArray,
bool);
169 virtual void SetSelectionBehavior(
int type);
170 virtual int GetSelectionBehavior();
188 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
191 void SetVTKSelection();
192 unsigned long LastSelectionMTime;
193 unsigned long LastInputMTime;
194 unsigned long LastMTime;
196 vtkSetStringMacro(ColorArrayNameInternal);
197 vtkGetStringMacro(ColorArrayNameInternal);
199 QPointer<QTableView> TableView;
201 QSortFilterProxyModel* TableSorter;
205 bool InSelectionChanged;
206 bool SortSelectionToTop;
208 char* ColorArrayNameInternal;
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))
dynamic, self-adjusting array of vtkIdType
Sets theme colors for a graphical view.
A VTK view based on a Qt Table view.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
The superclass for all representations.
apply colors to a data set.
Add an array to the output indicating membership within an input selection.
Superclass for Qt widget-based views.
virtual void RemoveRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))