16#ifndef vtkQtListView_h
17#define vtkQtListView_h
20#include "vtkViewsQtModule.h"
27class QSortFilterProxyModel;
30VTK_ABI_NAMESPACE_BEGIN
67 vtkGetMacro(FieldType,
int);
103 vtkBooleanMacro(ColorByArray,
bool);
114#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
117 void SetFilterRegExp(
const QRegExp& pattern);
145 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
148 void SetVTKSelection();
154 vtkSetStringMacro(ColorArrayNameInternal);
155 vtkGetStringMacro(ColorArrayNameInternal);
156 vtkSetStringMacro(IconIndexArrayNameInternal);
157 vtkGetStringMacro(IconIndexArrayNameInternal);
159 QPointer<QListView> ListView;
161 QSortFilterProxyModel* TableSorter;
162 char* ColorArrayNameInternal;
163 char* IconIndexArrayNameInternal;
164 char* VisibleColumnName;
165 bool SortSelectionToTop;
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.
a simple class to control print indentation
A VTK view based on a Qt List view.
const char * GetColorArrayName()
The array to use for coloring items in view.
void SetColorArrayName(const char *name)
The array to use for coloring items in view.
void Update() override
Updates the view.
~vtkQtListView() override
void SetEnableDragDrop(bool)
Enable drag and drop on this widget.
void SetVisibleColumn(int col)
The column to display.
void RemoveRepresentationInternal(vtkDataRepresentation *rep) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetAlternatingRowColors(bool)
Have the view alternate its row colors.
void ApplyViewTheme(vtkViewTheme *theme) override
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
void SetIconArrayName(const char *name)
Set the icon ivars.
void SetFilterRegExp(const QRegularExpression &pattern)
The column used to filter on.
void SetIconSheetSize(int w, int h)
Set the icon ivars.
void AddRepresentationInternal(vtkDataRepresentation *rep) override
void SetFieldType(int)
The field type to copy into the output table.
bool GetColorByArray()
Whether to color vertices.
static vtkQtListView * New()
void SetIconSize(int w, int h)
Set the icon ivars.
void SetIconSheet(QImage sheet)
Set the icon ivars.
void SetDecorationStrategy(int)
The strategy for how to decorate rows.
void SetColorByArray(bool vis)
Whether to color vertices.
Adapts a table to a Qt item model.
Superclass for Qt widget-based views.
Computes the portion of a dataset which is inside a selection.
Hold a reference to a vtkObjectBase instance.
Sets theme colors for a graphical view.
vtkTypeUInt32 vtkMTimeType