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;
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.
extract field data as a table
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.