37 #ifndef __vtkQtTableView_h
38 #define __vtkQtTableView_h
40 #include "QVTKWin32Header.h"
44 #include <QSortFilterProxyModel>
71 void SetShowVerticalHeaders(
bool);
74 void SetShowHorizontalHeaders(
bool);
89 vtkGetMacro(FieldType,
int);
90 void SetFieldType(
int);
94 void SetEnableDragDrop(
bool);
98 void SetSortingEnabled(
bool);
104 void SetShowAll(
bool);
105 vtkGetMacro(ShowAll,
bool);
111 vtkSetStringMacro(ColumnName);
112 vtkGetStringMacro(ColumnName);
115 void SetColumnVisibility(
const QString &
name,
bool status);
119 void SetSplitMultiComponentColumns(
bool value);
123 bool GetSplitMultiComponentColumns();
127 void SetSortSelectionToTop(
bool value);
128 vtkGetMacro(SortSelectionToTop,
bool);
134 void SetApplyRowColors(
bool value);
135 vtkGetMacro(ApplyRowColors,
bool);
143 void SetColorArrayName(
const char*
name);
144 const char* GetColorArrayName();
149 void SetColorByArray(
bool vis);
150 bool GetColorByArray();
151 vtkBooleanMacro(ColorByArray,
bool);
170 virtual void SetSelectionBehavior(
int type);
171 virtual int GetSelectionBehavior();
189 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
192 void SetVTKSelection();
193 unsigned long LastSelectionMTime;
194 unsigned long LastInputMTime;
195 unsigned long LastMTime;
197 vtkSetStringMacro(ColorArrayNameInternal);
198 vtkGetStringMacro(ColorArrayNameInternal);
200 QPointer<QTableView> TableView;
202 QSortFilterProxyModel* TableSorter;
206 bool InSelectionChanged;
207 bool SortSelectionToTop;
209 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
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))