Go to the documentation of this file.
35 #ifndef vtkQtTreeView_h
36 #define vtkQtTreeView_h
38 #include "vtkViewsQtModule.h"
45 class QAbstractItemDelegate;
46 class QAbstractItemView;
55 class QItemSelectionModel;
203 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
206 void SetVTKSelection();
210 vtkSetStringMacro(ColorArrayNameInternal);
213 QPointer<QTreeView> TreeView;
214 QPointer<QColumnView> ColumnView;
215 QPointer<QWidget> Widget;
216 QPointer<QVBoxLayout> Layout;
217 QPointer<QItemSelectionModel> SelectionModel;
218 QList<int> HiddenColumns;
220 QAbstractItemView* View;
221 char* ColorArrayNameInternal;
const char * GetColorArrayName()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void collapsed(const QModelIndex &)
void SetColorByArray(bool vis)
Whether to color vertices.
A VTK view based on a Qt tree view.
virtual void Update()
Updates the view.
void SetEnableDragDrop(bool)
Have the view alternate its row colors (default is OFF)
void SetUseColumnView(int state)
Set whether to use a QColumnView (QTreeView is the default)
void ExpandToDepth(int depth)
Expands all expandable items to the given depth.
apply colors to a data set.
void HideColumn(int i)
Hide the column of the given index from being shown in the view.
void SetShowHeaders(bool)
Have the view show/hide its column headers (default is ON)
vtkTypeUInt64 vtkMTimeType
virtual void RemoveRepresentationInternal(vtkDataRepresentation *rep)
Sets theme colors for a graphical view.
The superclass for all representations.
virtual void ApplyViewTheme(vtkViewTheme *theme)
void ResizeColumnToContents(int column)
Resizes the column given to the size of its contents.
a simple class to control print indentation
void SetShowRootNode(bool)
Show the root node of the tree (default is OFF)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void ExpandAll()
Expands all expandable items.
void SetItemDelegate(QAbstractItemDelegate *delegate)
Set item delegate to something custom.
void SetFilterColumn(int i)
The column used to filter on.
void SetAlternatingRowColors(bool)
Have the view alternate its row colors (default is OFF)
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual QWidget * GetWidget()
Get the main container of this view (a QWidget).
void ShowColumn(int i)
Show the column of the given index in the view.
virtual void AddRepresentationInternal(vtkDataRepresentation *rep)
void SetFilterRegExp(const QRegExp &pattern)
The column used to filter on.
void CollapseAll()
Collapses all expanded items.
void SetColorArrayName(const char *name)
The array to use for coloring items in view.
void HideAllButFirstColumn()
Hide all but the first column in the view.
Superclass for Qt widget-based views.
void Collapse(const QModelIndex &index)
Collapses the model item specified by the index.
static vtkQtTreeView * New()
void expanded(const QModelIndex &)
void Expand(const QModelIndex &index)
Expands the model item specified by the index.
void updatePreviewWidget(const QModelIndex &)
void SetFilterTreeLevel(int level)
The column used to filter on.
Adapts a tree to a Qt item model.