32 #ifndef vtkQtListView_h
33 #define vtkQtListView_h
35 #include "vtkViewsQtModule.h"
45 class QSortFilterProxyModel;
81 vtkGetMacro(FieldType,
int);
82 void SetFieldType(
int);
88 void SetEnableDragDrop(
bool);
93 void SetAlternatingRowColors(
bool);
101 void SetDecorationStrategy(
int);
107 void SetColorArrayName(
const char*
name);
108 const char* GetColorArrayName();
115 void SetColorByArray(
bool vis);
116 bool GetColorByArray();
123 void SetVisibleColumn(
int col);
128 void SetFilterRegExp(
const QRegExp& pattern);
134 void SetIconSheet(QImage sheet);
135 void SetIconSize(
int w,
int h);
136 void SetIconSheetSize(
int w,
int h);
137 void SetIconArrayName(
const char*
name);
155 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
158 void SetVTKSelection();
164 vtkSetStringMacro(ColorArrayNameInternal);
166 vtkSetStringMacro(IconIndexArrayNameInternal);
169 QPointer<QListView> ListView;
171 QSortFilterProxyModel* TableSorter;
172 char* ColorArrayNameInternal;
173 char* IconIndexArrayNameInternal;
174 char* VisibleColumnName;
175 bool SortSelectionToTop;
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to the view.
Adapts a table to a Qt item model.
virtual void Update()
Update the view.
extract field data as a table
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Subclass "hooks" for notifying subclasses of vtkView when representations are added or removed...
vtkTypeUInt64 vtkMTimeType
Sets theme colors for a graphical view.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
The superclass for all representations.
A VTK view based on a Qt List view.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
apply colors to a data set.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Superclass for Qt widget-based views.
virtual void RemoveRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Meant for use by subclasses and vtkRepresentation subclasses.