|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   32 #ifndef vtkQtTreeView_h 
   33 #define vtkQtTreeView_h 
   36 #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);
 
  171   void SetItemDelegate(QAbstractItemDelegate* delegate);
 
  177   void SetColorArrayName(
const char* 
name);
 
  178   const char* GetColorArrayName();
 
  185   void SetColorByArray(
bool vis);
 
  186   bool GetColorByArray();
 
  187   vtkBooleanMacro(ColorByArray, 
bool);
 
  200   void slotQtSelectionChanged(
const QItemSelection&, 
const QItemSelection&);
 
  203   void SetVTKSelection();
 
  207   vtkSetStringMacro(ColorArrayNameInternal);
 
  208   vtkGetStringMacro(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;
 
  
A VTK view based on a Qt tree view.
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Subclass "hooks" for notifying subclasses of vtkView when representations are added or removed.
apply colors to a data set.
Sets theme colors for a graphical view.
The superclass for all representations.
a simple class to control print indentation
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to the view.
virtual void Update()
Update the view.
virtual void RemoveRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
Superclass for Qt widget-based views.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
Adapts a tree to a Qt item model.
vtkTypeUInt32 vtkMTimeType