22 #ifndef vtkQtTableView_h
23 #define vtkQtTableView_h
26 #include "vtkViewsQtModule.h"
32 class QSortFilterProxyModel;
35 VTK_ABI_NAMESPACE_BEGIN
62 void SetShowVerticalHeaders(
bool);
67 void SetShowHorizontalHeaders(
bool);
84 vtkGetMacro(FieldType,
int);
85 void SetFieldType(
int);
91 void SetEnableDragDrop(
bool);
97 void SetSortingEnabled(
bool);
105 void SetShowAll(
bool);
106 vtkGetMacro(ShowAll,
bool);
114 vtkSetStringMacro(ColumnName);
115 vtkGetStringMacro(ColumnName);
118 void SetColumnVisibility(
const QString&
name,
bool status);
124 void SetSplitMultiComponentColumns(
bool value);
130 bool GetSplitMultiComponentColumns();
136 void SetSortSelectionToTop(
bool value);
137 vtkGetMacro(SortSelectionToTop,
bool);
145 void SetApplyRowColors(
bool value);
146 vtkGetMacro(ApplyRowColors,
bool);
158 void SetColorArrayName(
const char*
name);
159 const char* GetColorArrayName();
166 void SetColorByArray(
bool vis);
167 bool GetColorByArray();
168 vtkBooleanMacro(ColorByArray,
bool);
193 virtual void SetSelectionBehavior(
int type);
194 virtual int GetSelectionBehavior();
215 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
218 void SetVTKSelection();
223 vtkSetStringMacro(ColorArrayNameInternal);
224 vtkGetStringMacro(ColorArrayNameInternal);
226 QPointer<QTableView> TableView;
228 QSortFilterProxyModel* TableSorter;
232 bool InSelectionChanged;
233 bool SortSelectionToTop;
235 char* ColorArrayNameInternal;
245 VTK_ABI_NAMESPACE_END
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to the view.
Adapts a table to a Qt item model.
vtkTypeUInt32 vtkMTimeType
virtual void Update()
Update the view.
this filter produces a vtkTable from the chosen attribute in the input data object.
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Subclass "hooks" for notifying subclasses of vtkView when representations are added or removed...
dynamic, self-adjusting array of vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Sets theme colors for a graphical view.
A VTK view based on a Qt Table view.
a simple class to control print indentation
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))
Meant for use by subclasses and vtkRepresentation subclasses.