4 #ifndef pqSpreadSheetViewModel_h 5 #define pqSpreadSheetViewModel_h 7 #include "pqCoreModule.h" 10 #include <QAbstractTableModel> 22 class QItemSelectionModel;
32 typedef QAbstractTableModel Superclass;
45 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
50 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
56 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
72 int section, Qt::Orientation
orientation,
int role = Qt::DisplayRole)
const override;
79 int section, Qt::Orientation orientation,
const QVariant&
value,
int role)
override;
84 void sortSection(
int section, Qt::SortOrder
order);
89 bool isSortable(
int section);
94 int getFieldType()
const;
97 QSet<vtkIndex> getVTKIndices(
const QModelIndexList& indexes);
102 void setDecimalPrecision(
int);
103 int getDecimalPrecision();
108 void setFixedRepresentation(
bool);
109 bool getFixedRepresentation();
117 void setActiveRegion(
int row_top,
int row_bottom);
124 vtkSMProxy* activeRepresentationProxy()
const;
129 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
130 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
134 SectionInternal = Qt::UserRole + 1,
149 QString GetRowsAsString()
const;
168 void setActiveRepresentationProxy(
vtkSMProxy*);
174 void selectionChanged(
const QItemSelection& selection);
180 void delayedUpdate();
182 void triggerSelectionChanged();
188 void onDataFetched(
vtkObject*,
unsigned long,
void*,
void* call_data);
193 void hiddenColumnsChanged();
200 bool isDataValid(
const QModelIndex& idx)
const;
208 pqInternal* Internal;
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
vtkSpreadSheetView is a vtkPVView subclass for a view used to show any data as a spreadsheet.
proxy for a VTK object(s) on a server