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);
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();
207 virtual void SetSelectionBehavior(
int type);
208 virtual int GetSelectionBehavior();
229 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
232 void SetVTKSelection();
237 vtkSetStringMacro(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.
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
vtkTypeUInt64 vtkMTimeType
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)
Methods invoked by print to print information about the object including superclasses.
The superclass for all representations.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
apply colors to a data set.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.