32 #ifndef vtkQtTableView_h 33 #define vtkQtTableView_h 35 #include "vtkViewsQtModule.h" 46 class QSortFilterProxyModel;
70 void SetShowVerticalHeaders(
bool);
75 void SetShowHorizontalHeaders(
bool);
92 vtkGetMacro(FieldType,
int);
93 void SetFieldType(
int);
99 void SetEnableDragDrop(
bool);
105 void SetSortingEnabled(
bool);
113 void SetShowAll(
bool);
114 vtkGetMacro(ShowAll,
bool);
122 vtkSetStringMacro(ColumnName);
123 vtkGetStringMacro(ColumnName);
126 void SetColumnVisibility(
const QString &
name,
bool status);
132 void SetSplitMultiComponentColumns(
bool value);
138 bool GetSplitMultiComponentColumns();
144 void SetSortSelectionToTop(
bool value);
145 vtkGetMacro(SortSelectionToTop,
bool);
153 void SetApplyRowColors(
bool value);
154 vtkGetMacro(ApplyRowColors,
bool);
166 void SetColorArrayName(
const char*
name);
167 const char* GetColorArrayName();
174 void SetColorByArray(
bool vis);
175 bool GetColorByArray();
176 vtkBooleanMacro(ColorByArray,
bool);
201 virtual void SetSelectionBehavior(
int type);
202 virtual int GetSelectionBehavior();
223 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
226 void SetVTKSelection();
231 vtkSetStringMacro(ColorArrayNameInternal);
232 vtkGetStringMacro(ColorArrayNameInternal);
234 QPointer<QTableView> TableView;
236 QSortFilterProxyModel* TableSorter;
240 bool InSelectionChanged;
241 bool SortSelectionToTop;
243 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.