Go to the documentation of this file.
38 #ifndef vtkQtTableView_h
39 #define vtkQtTableView_h
41 #include "vtkViewsQtModule.h"
52 class QSortFilterProxyModel;
98 vtkGetMacro(FieldType,
int);
120 vtkGetMacro(ShowAll,
bool);
128 vtkSetStringMacro(ColumnName);
129 vtkGetStringMacro(ColumnName);
151 vtkGetMacro(SortSelectionToTop,
bool);
160 vtkGetMacro(ApplyRowColors,
bool);
182 vtkBooleanMacro(ColorByArray,
bool);
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;
A VTK view based on a Qt Table view.
virtual int GetSelectionBehavior()
void SetShowVerticalHeaders(bool)
Have the view show/hide its column headers.
Add an array to the output indicating membership within an input selection.
void SetColumnVisibility(const QString &name, bool status)
void SetApplyRowColors(bool value)
Whether or not to add an icon to the row header denoting the color of an annotated row.
apply colors to a data set.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
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.
~vtkQtTableView() override
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
Sets theme colors for a graphical view.
void SetShowHorizontalHeaders(bool)
Have the view show/hide its row headers.
The superclass for all representations.
void SetColorArrayName(const char *name)
The array to use for coloring items in view.
const char * GetColorArrayName()
a simple class to control print indentation
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a view theme to this view.
static vtkQtTableView * New()
void AddRepresentationInternal(vtkDataRepresentation *rep) override
void RemoveRepresentationInternal(vtkDataRepresentation *rep) override
dynamic, self-adjusting array of vtkIdType
void SetSplitMultiComponentColumns(bool value)
Set whether or not the table view should split multi-component columns into multiple single-component...
virtual void SetSelectionBehavior(int type)
The selection mode for this view.
void SetEnableDragDrop(bool)
Enable drag and drop on this widget.
Adapts a table to a Qt item model.
void SetSortSelectionToTop(bool value)
Whether or not to sort selections that the view receives to the top.
Superclass for Qt widget-based views.
extract field data as a table
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...
vtkTypeUInt32 vtkMTimeType