32 #ifndef pqSpreadSheetViewModel_h 33 #define pqSpreadSheetViewModel_h 37 #include <QAbstractTableModel> 49 class QItemSelectionModel;
59 typedef QAbstractTableModel Superclass;
85 return (this->Tuple[0] == other.
Tuple[0] && this->Tuple[1] == other.
Tuple[1] &&
86 this->Tuple[2] == other.
Tuple[2]);
93 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
98 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
104 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
120 int section, Qt::Orientation
orientation,
int role = Qt::DisplayRole)
const override;
125 void sortSection(
int section, Qt::SortOrder
order);
130 bool isSortable(
int section);
135 int getFieldType()
const;
138 QSet<vtkIndex> getVTKIndices(
const QModelIndexList& indexes);
144 void resetCompositeDataSetIndex();
149 void setDecimalPrecision(
int);
150 int getDecimalPrecision();
155 void setFixedRepresentation(
bool);
156 bool getFixedRepresentation();
164 void setActiveRegion(
int row_top,
int row_bottom);
171 vtkSMProxy* activeRepresentationProxy()
const;
176 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
177 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role = Qt::EditRole)
override;
181 SectionInternal = Qt::UserRole + 1,
189 QString GetRowsAsString()
const;
208 void setActiveRepresentationProxy(
vtkSMProxy*);
214 void selectionChanged(
const QItemSelection& selection);
220 void delayedUpdate();
222 void triggerSelectionChanged();
228 void onDataFetched(
vtkObject*,
unsigned long,
void*,
void* call_data);
233 void hiddenColumnsChanged();
240 bool isDataValid(
const QModelIndex& idx)
const;
248 pqInternal* Internal;
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
bool operator==(const vtkIndex &other) const
vtkSpreadSheetView is a vtkPVView subclass for a view used to show any data as a spreadsheet.
vtkIndex(vtkIdType a, vtkIdType b, vtkIdType c)
proxy for a VTK object(s) on a server