22#ifndef vtkQtTableView_h
23#define vtkQtTableView_h
26#include "vtkViewsQtModule.h"
32class QSortFilterProxyModel;
35VTK_ABI_NAMESPACE_BEGIN
84 vtkGetMacro(FieldType,
int);
106 vtkGetMacro(ShowAll,
bool);
114 vtkSetStringMacro(ColumnName);
115 vtkGetStringMacro(ColumnName);
137 vtkGetMacro(SortSelectionToTop,
bool);
146 vtkGetMacro(ApplyRowColors,
bool);
168 vtkBooleanMacro(ColorByArray,
bool);
215 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
218 void SetVTKSelection();
223 vtkSetStringMacro(ColorArrayNameInternal);
224 vtkGetStringMacro(ColorArrayNameInternal);
226 QPointer<QTableView> TableView;
228 QSortFilterProxyModel* TableSorter;
232 bool InSelectionChanged;
233 bool SortSelectionToTop;
235 char* ColorArrayNameInternal;
Add an array to the output indicating membership within an input selection.
apply colors to a data set.
this filter produces a vtkTable from the chosen attribute in the input data object.
The superclass for all representations.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Adapts a table to a Qt item model.
A VTK view based on a Qt Table view.
void SetColumnVisibility(const QString &name, bool status)
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkQtTableView() override
void SetEnableDragDrop(bool)
Enable drag and drop on this widget.
bool GetColorByArray()
Whether to color vertices.
const char * GetColorArrayName()
The array to use for coloring items in view.
void SetFieldType(int)
The field type to copy into the output table.
void SetSplitMultiComponentColumns(bool value)
Set whether or not the table view should split multi-component columns into multiple single-component...
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a view theme to this view.
void SetShowVerticalHeaders(bool)
Have the view show/hide its column headers.
void SetSortSelectionToTop(bool value)
Whether or not to sort selections that the view receives to the top.
void AddRepresentationInternal(vtkDataRepresentation *rep) override
bool GetSplitMultiComponentColumns()
Get whether or not the table view splits multi-component columns into multiple single-component colum...
void SetColorByArray(bool vis)
Whether to color vertices.
void SetShowHorizontalHeaders(bool)
Have the view show/hide its row headers.
virtual void SetSelectionBehavior(int type)
The selection mode for this view.
virtual void GetSelectedItems(vtkIdTypeArray *arr)
Fills the array with the selected items of the view.
void SetSortingEnabled(bool)
Whether the table allows individual columns to be sorted upon Sorting is enabled by default (turn off...
static vtkQtTableView * New()
virtual int GetSelectionBehavior()
The selection mode for this view.
void SetShowAll(bool)
Whether or not to display all columns from the input table or to use the ColumnName provided.
void Update() override
Updates the view.
void SetColorArrayName(const char *name)
The array to use for coloring items in view.
void RemoveRepresentationInternal(vtkDataRepresentation *rep) override
void SetApplyRowColors(bool value)
Whether or not to add an icon to the row header denoting the color of an annotated row.
Superclass for Qt widget-based views.
Hold a reference to a vtkObjectBase instance.
Sets theme colors for a graphical view.
vtkTypeUInt32 vtkMTimeType