37 #ifndef vtkQtTableView_h
38 #define vtkQtTableView_h
41 #include "QVTKWin32Header.h"
45 #include <QSortFilterProxyModel>
72 void SetShowVerticalHeaders(
bool);
75 void SetShowHorizontalHeaders(
bool);
91 void SetFieldType(
int);
95 void SetEnableDragDrop(
bool);
99 void SetSortingEnabled(
bool);
105 void SetShowAll(
bool);
116 void SetColumnVisibility(
const QString &
name,
bool status);
120 void SetSplitMultiComponentColumns(
bool value);
124 bool GetSplitMultiComponentColumns();
128 void SetSortSelectionToTop(
bool value);
135 void SetApplyRowColors(
bool value);
144 void SetColorArrayName(
const char*
name);
145 const char* GetColorArrayName();
150 void SetColorByArray(
bool vis);
151 bool GetColorByArray();
171 virtual void SetSelectionBehavior(
int type);
172 virtual int GetSelectionBehavior();
190 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
193 void SetVTKSelection();
194 unsigned long LastSelectionMTime;
195 unsigned long LastInputMTime;
196 unsigned long LastMTime;
201 QPointer<QTableView> TableView;
203 QSortFilterProxyModel* TableSorter;
207 bool InSelectionChanged;
208 bool SortSelectionToTop;
210 char* ColorArrayNameInternal;
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Adapts a table to a Qt item model.
GLuint GLuint GLsizei GLenum type
#define vtkGetMacro(name, type)
extract field data as a table
virtual QWidget * GetWidget()=0
#define VTKVIEWSQT_EXPORT
virtual void AddRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))
dynamic, self-adjusting array of vtkIdType
GLsizei const GLfloat * value
#define vtkSetStringMacro(name)
#define vtkTypeMacro(thisClass, superclass)
Sets theme colors for a graphical view.
A VTK view based on a Qt Table view.
GLuint const GLchar * name
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
The superclass for all representations.
#define vtkGetStringMacro(name)
apply colors to a data set.
#define vtkBooleanMacro(name, type)
Add an array to the output indicating membership within an input selection.
Superclass for Qt widget-based views.
virtual void RemoveRepresentationInternal(vtkDataRepresentation *vtkNotUsed(rep))