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);
151 vtkGetMacro(SortSelectionToTop,
bool);
160 vtkGetMacro(ApplyRowColors,
bool);
229 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
232 void SetVTKSelection();
237 vtkSetStringMacro(ColorArrayNameInternal);
240 QPointer<QTableView> TableView;
242 QSortFilterProxyModel* TableSorter;
246 bool InSelectionChanged;
247 bool SortSelectionToTop;
249 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)
virtual void AddRepresentationInternal(vtkDataRepresentation *rep)
void SetEnableDragDrop(bool)
Enable drag and drop on this widget.
virtual QWidget * GetWidget()
Get the main container of this view (a QWidget).
void SetSplitMultiComponentColumns(bool value)
Set whether or not the table view should split multi-component columns into multiple single-component...
virtual void RemoveRepresentationInternal(vtkDataRepresentation *rep)
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.
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.
const char * GetColorArrayName()
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()
void SetShowAll(bool)
Whether or not to display all columns from the input table or to use the ColumnName provided.
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply a view theme to this view.
void SetColorArrayName(const char *name)
The array to use for coloring items in view.
void SetApplyRowColors(bool value)
Whether or not to add an icon to the row header denoting the color of an annotated row.
virtual void Update()
Updates the view.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Superclass for Qt widget-based views.
Sets theme colors for a graphical view.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType