37 #ifndef vtkQtTableView_h
38 #define vtkQtTableView_h
40 #include "vtkViewsQtModule.h"
41 #include "QVTKWin32Header.h"
45 #include <QSortFilterProxyModel>
72 void SetShowVerticalHeaders(
bool);
75 void SetShowHorizontalHeaders(
bool);
90 vtkGetMacro(FieldType,
int);
91 void SetFieldType(
int);
95 void SetEnableDragDrop(
bool);
99 void SetSortingEnabled(
bool);
105 void SetShowAll(
bool);
106 vtkGetMacro(ShowAll,
bool);
112 vtkSetStringMacro(ColumnName);
113 vtkGetStringMacro(ColumnName);
116 void SetColumnVisibility(
const QString &
name,
bool status);
120 void SetSplitMultiComponentColumns(
bool value);
124 bool GetSplitMultiComponentColumns();
128 void SetSortSelectionToTop(
bool value);
129 vtkGetMacro(SortSelectionToTop,
bool);
135 void SetApplyRowColors(
bool value);
136 vtkGetMacro(ApplyRowColors,
bool);
144 void SetColorArrayName(
const char*
name);
145 const char* GetColorArrayName();
150 void SetColorByArray(
bool vis);
151 bool GetColorByArray();
152 vtkBooleanMacro(ColorByArray,
bool);
171 virtual void SetSelectionBehavior(
int type);
172 virtual int GetSelectionBehavior();
190 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
193 void SetVTKSelection();
194 unsigned long LastSelectionMTime;
195 unsigned long LastInputMTime;
196 unsigned long LastMTime;
198 vtkSetStringMacro(ColorArrayNameInternal);
199 vtkGetStringMacro(ColorArrayNameInternal);
201 QPointer<QTableView> TableView;
203 QSortFilterProxyModel* TableSorter;
207 bool InSelectionChanged;
208 bool SortSelectionToTop;
210 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))