Go to the documentation of this file.
32 #ifndef vtkQtListView_h
33 #define vtkQtListView_h
35 #include "vtkViewsQtModule.h"
45 class QSortFilterProxyModel;
81 vtkGetMacro(FieldType,
int);
117 vtkBooleanMacro(ColorByArray,
bool);
155 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
158 void SetVTKSelection();
164 vtkSetStringMacro(ColorArrayNameInternal);
165 vtkGetStringMacro(ColorArrayNameInternal);
166 vtkSetStringMacro(IconIndexArrayNameInternal);
167 vtkGetStringMacro(IconIndexArrayNameInternal);
169 QPointer<QListView> ListView;
171 QSortFilterProxyModel* TableSorter;
172 char* ColorArrayNameInternal;
173 char* IconIndexArrayNameInternal;
174 char* VisibleColumnName;
175 bool SortSelectionToTop;
void SetIconArrayName(const char *name)
static vtkQtListView * New()
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
apply colors to a data set.
void RemoveRepresentationInternal(vtkDataRepresentation *rep) override
void SetIconSize(int w, int h)
void AddRepresentationInternal(vtkDataRepresentation *rep) override
void SetColorArrayName(const char *name)
The array to use for coloring items in view.
void SetDecorationStrategy(int)
The strategy for how to decorate rows.
void SetFilterRegExp(const QRegExp &pattern)
The column used to filter on.
~vtkQtListView() override
void SetIconSheet(QImage sheet)
Set the icon ivars.
Sets theme colors for a graphical view.
The superclass for all representations.
void SetAlternatingRowColors(bool)
Have the view alternate its row colors.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetColorArrayName()
a simple class to control print indentation
void SetColorByArray(bool vis)
Whether to color vertices.
void Update() override
Updates the view.
A VTK view based on a Qt List view.
void SetIconSheetSize(int w, int h)
void SetEnableDragDrop(bool)
Enable drag and drop on this widget.
Adapts a table to a Qt item model.
Superclass for Qt widget-based views.
extract field data as a table
void SetVisibleColumn(int col)
The column to display.
void ApplyViewTheme(vtkViewTheme *theme) override
vtkTypeUInt32 vtkMTimeType