61#ifndef vtkQtTableView_h
62#define vtkQtTableView_h
65#include "vtkViewsQtModule.h"
75class QSortFilterProxyModel;
121 vtkGetMacro(FieldType,
int);
143 vtkGetMacro(ShowAll,
bool);
151 vtkSetStringMacro(ColumnName);
152 vtkGetStringMacro(ColumnName);
174 vtkGetMacro(SortSelectionToTop,
bool);
183 vtkGetMacro(ApplyRowColors,
bool);
205 vtkBooleanMacro(ColorByArray,
bool);
252 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
255 void SetVTKSelection();
260 vtkSetStringMacro(ColorArrayNameInternal);
261 vtkGetStringMacro(ColorArrayNameInternal);
263 QPointer<QTableView> TableView;
265 QSortFilterProxyModel* TableSorter;
269 bool InSelectionChanged;
270 bool SortSelectionToTop;
272 char* ColorArrayNameInternal;
Add an array to the output indicating membership within an input selection.
apply colors to a data set.
extract field data as a table
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.
Sets theme colors for a graphical view.
vtkTypeUInt32 vtkMTimeType