32 #ifndef pqSpreadSheetViewModel_h 33 #define pqSpreadSheetViewModel_h 35 #include "pqCoreModule.h" 37 #include <QAbstractTableModel> 49 class QItemSelectionModel;
52 class vtkSelectionNode;
59 typedef QAbstractTableModel Superclass;
76 vtkIndex(vtkIdType a, vtkIdType b, vtkIdType c)
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;
98 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
104 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
110 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
115 void sortSection(
int section, Qt::SortOrder order);
120 bool isSortable(
int section);
125 bool isVisible(
int section);
130 void setVisible(
int section,
bool visible);
140 int getFieldType()
const;
143 QSet<vtkIndex> getVTKIndices(
const QModelIndexList& indexes);
149 void resetCompositeDataSetIndex();
154 void setDecimalPrecision(
int);
155 int getDecimalPrecision();
163 void setActiveRegion(
int row_top,
int row_bottom);
170 vtkSMProxy* activeRepresentationProxy()
const;
175 virtual Qt::ItemFlags flags(
const QModelIndex& index)
const;
176 virtual bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
194 void setActiveRepresentationProxy(
vtkSMProxy*);
200 void selectionChanged(
const QItemSelection& selection);
206 void delayedUpdate();
208 void triggerSelectionChanged();
214 void onDataFetched(vtkObject*,
unsigned long,
void*,
void* call_data);
221 bool isDataValid(
const QModelIndex& idx)
const;
229 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