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);
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);
160 void Update() VTK_OVERRIDE;
166 void SetColorArrayName(const
char*
name);
167 const
char* GetColorArrayName();
174 void SetColorByArray(
bool vis);
175 bool GetColorByArray();
201 virtual void SetSelectionBehavior(
int type);
202 virtual int GetSelectionBehavior();
223 void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
226 void SetVTKSelection();
231 vtkSetStringMacro(ColorArrayNameInternal);
234 QPointer<QTableView> TableView;
236 QSortFilterProxyModel* TableSorter;
240 bool InSelectionChanged;
241 bool SortSelectionToTop;
243 char* ColorArrayNameInternal;
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).
dynamic, self-adjusting array of vtkIdType
Hold a reference to a vtkObjectBase instance.
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.
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.