4 #ifndef pqSpreadSheetViewModel_h 5 #define pqSpreadSheetViewModel_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;
77 void sortSection(
int section, Qt::SortOrder
order);
82 bool isSortable(
int section);
87 int getFieldType()
const;
90 QSet<vtkIndex> getVTKIndices(
const QModelIndexList& indexes);
95 void setDecimalPrecision(
int);
96 int getDecimalPrecision();
101 void setFixedRepresentation(
bool);
102 bool getFixedRepresentation();
110 void setActiveRegion(
int row_top,
int row_bottom);
117 vtkSMProxy* activeRepresentationProxy()
const;
122 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
123 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role = Qt::EditRole)
override;
127 SectionInternal = Qt::UserRole + 1,
135 QString GetRowsAsString()
const;
154 void setActiveRepresentationProxy(
vtkSMProxy*);
160 void selectionChanged(
const QItemSelection& selection);
166 void delayedUpdate();
168 void triggerSelectionChanged();
174 void onDataFetched(
vtkObject*,
unsigned long,
void*,
void* call_data);
179 void hiddenColumnsChanged();
186 bool isDataValid(
const QModelIndex& idx)
const;
194 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