32 #ifndef vtkQtTreeView_h 33 #define vtkQtTreeView_h 35 #include "vtkViewsQtModule.h" 42 class QAbstractItemDelegate;
43 class QAbstractItemView;
52 class QItemSelectionModel;
59 void expanded(
const QModelIndex&);
60 void collapsed(
const QModelIndex&);
61 void updatePreviewWidget(
const QModelIndex&);
79 void SetShowHeaders(
bool);
84 void SetAlternatingRowColors(
bool);
89 void SetEnableDragDrop(
bool);
94 void SetShowRootNode(
bool);
99 void HideColumn(
int i);
104 void ShowColumn(
int i);
109 void HideAllButFirstColumn();
114 void SetFilterColumn(
int i);
119 void SetFilterRegExp(const QRegExp& pattern);
124 void SetFilterTreeLevel(
int level);
129 void Collapse( const QModelIndex &
index );
139 void Expand ( const QModelIndex & index );
151 void ExpandToDepth (
int depth );
156 void ResizeColumnToContents (
int column );
161 void SetUseColumnView(
int state);
166 void Update() VTK_OVERRIDE;
171 void SetItemDelegate(QAbstractItemDelegate* delegate);
177 void SetColorArrayName(const
char*
name);
178 const
char* GetColorArrayName();
185 void SetColorByArray(
bool vis);
186 bool GetColorByArray();
194 ~vtkQtTreeView() VTK_OVERRIDE;
200 void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
203 void SetVTKSelection();
207 vtkSetStringMacro(ColorArrayNameInternal);
210 QPointer<QTreeView> TreeView;
211 QPointer<QColumnView> ColumnView;
212 QPointer<QWidget> Widget;
213 QPointer<QVBoxLayout> Layout;
214 QPointer<QItemSelectionModel> SelectionModel;
215 QList<
int> HiddenColumns;
217 QAbstractItemView* View;
218 char* ColorArrayNameInternal;
223 vtkQtTreeView(const vtkQtTreeView&) VTK_DELETE_FUNCTION;
224 void operator=(const vtkQtTreeView&) VTK_DELETE_FUNCTION;
Adapts a tree to a Qt item model.
vtkTypeUInt32 vtkMTimeType
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
virtual void Update()
Updates the extensions string.
Hold a reference to a vtkObjectBase instance.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Sets theme colors for a graphical view.
a simple class to control print indentation
The superclass for all representations.
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.
A VTK view based on a Qt tree view.