Go to the documentation of this file.
38 #ifndef vtkQtTableView_h
39 #define vtkQtTableView_h
41 #include "vtkViewsQtModule.h"
52 class QSortFilterProxyModel;
76 void SetShowVerticalHeaders(
bool);
81 void SetShowHorizontalHeaders(
bool);
98 vtkGetMacro(FieldType,
int);
99 void SetFieldType(
int);
105 void SetEnableDragDrop(
bool);
111 void SetSortingEnabled(
bool);
119 void SetShowAll(
bool);
120 vtkGetMacro(ShowAll,
bool);
128 vtkSetStringMacro(ColumnName);
129 vtkGetStringMacro(ColumnName);
132 void SetColumnVisibility(
const QString &
name,
bool status);
138 void SetSplitMultiComponentColumns(
bool value);
144 bool GetSplitMultiComponentColumns();
150 void SetSortSelectionToTop(
bool value);
151 vtkGetMacro(SortSelectionToTop,
bool);
159 void SetApplyRowColors(
bool value);
160 vtkGetMacro(ApplyRowColors,
bool);
172 void SetColorArrayName(
const char*
name);
173 const char* GetColorArrayName();
180 void SetColorByArray(
bool vis);
181 bool GetColorByArray();
182 vtkBooleanMacro(ColorByArray,
bool);
207 virtual void SetSelectionBehavior(
int type);
208 virtual int GetSelectionBehavior();
229 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
232 void SetVTKSelection();
237 vtkSetStringMacro(ColorArrayNameInternal);
238 vtkGetStringMacro(ColorArrayNameInternal);
240 QPointer<QTableView> TableView;
242 QSortFilterProxyModel* TableSorter;
246 bool InSelectionChanged;
247 bool SortSelectionToTop;
249 char* ColorArrayNameInternal;
A VTK view based on a Qt Table view.
Add an array to the output indicating membership within an input selection.
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Subclass "hooks" for notifying subclasses of vtkView when representations are added or removed.
apply colors to a data set.
Sets theme colors for a graphical view.
The superclass for all representations.
a simple class to control print indentation
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to the view.
dynamic, self-adjusting array of vtkIdType
virtual void Update()
Update the view.
virtual void RemoveRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Adapts a table to a Qt item model.
Superclass for Qt widget-based views.
extract field data as a table
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
vtkTypeUInt32 vtkMTimeType