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);
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;
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 SetShowAll(bool)
Whether or not to display all columns from the input table or to use the ColumnName provided.
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.
vtkTypeUInt64 vtkMTimeType
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply a view theme to this view.
virtual void AddRepresentationInternal(vtkDataRepresentation *rep)
static vtkQtTableView * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void Update()
Updates the view.
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 RemoveRepresentationInternal(vtkDataRepresentation *rep)
virtual void SetSelectionBehavior(int type)
The selection mode for this view.
void SetEnableDragDrop(bool)
Enable drag and drop on this widget.
virtual QWidget * GetWidget()
Get the main container of this view (a QWidget).
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...