37 #ifndef __vtkQtTableView_h
38 #define __vtkQtTableView_h
40 #include "vtkViewsQtModule.h"
41 #include "QVTKWin32Header.h"
45 #include <QSortFilterProxyModel>
46 #include "vtkQtAbstractModelAdapter.h"
47 #include "vtkSmartPointer.h"
55 class vtkQtTableModelAdapter;
64 void PrintSelf(ostream& os, vtkIndent indent);
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();
180 virtual void GetSelectedItems(vtkIdTypeArray* arr);
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;
202 vtkQtTableModelAdapter* TableAdapter;
203 QSortFilterProxyModel* TableSorter;
207 bool InSelectionChanged;
208 bool SortSelectionToTop;
210 char* ColorArrayNameInternal;
212 vtkSmartPointer<vtkAddMembershipArray> AddSelectedColumn;
213 vtkSmartPointer<vtkDataObjectToTable> DataObjectToTable;
214 vtkSmartPointer<vtkApplyColors> ApplyColors;
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
extract field data as a table
virtual QWidget * GetWidget()=0
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Sets theme colors for a graphical view.
A VTK view based on a Qt Table view.
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))