32 #ifndef pqSpreadSheetViewModel_h 33 #define pqSpreadSheetViewModel_h 35 #include "pqCoreModule.h" 37 #include <QAbstractTableModel> 47 class QItemSelectionModel;
50 class vtkSelectionNode;
52 class vtkSpreadSheetView;
57 typedef QAbstractTableModel Superclass;
73 vtkIndex(vtkIdType a, vtkIdType b, vtkIdType c)
82 return (this->Tuple[0] == other.
Tuple[0] &&
83 this->Tuple[1] == other.
Tuple[1] &&
84 this->Tuple[2] == other.
Tuple[2]);
89 int rowCount(
const QModelIndex& parent=QModelIndex())
const;
92 int columnCount(
const QModelIndex& parent=QModelIndex())
const;
96 QVariant data(
const QModelIndex& index,
int role=Qt::DisplayRole)
const;
100 QVariant headerData (
int section, Qt::Orientation orientation,
101 int role=Qt::DisplayRole)
const;
104 void sortSection (
int section, Qt::SortOrder order);
107 bool isSortable(
int section);
110 bool isVisible(
int section);
113 void setVisible(
int section,
bool visible);
119 int getFieldType()
const;
122 QSet<vtkIndex> getVTKIndices(
const QModelIndexList& indexes);
126 void resetCompositeDataSetIndex();
129 void setDecimalPrecision(
int);
130 int getDecimalPrecision();
136 void setActiveRegion(
int row_top,
int row_bottom);
141 vtkSMProxy* activeRepresentationProxy()
const;
144 virtual Qt::ItemFlags flags (
const QModelIndex & index )
const;
145 virtual bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole );
157 void setActiveRepresentationProxy(vtkSMProxy*);
161 void selectionChanged(
const QItemSelection& selection);
165 void delayedUpdate();
167 void triggerSelectionChanged();
171 void onDataFetched(vtkObject*,
unsigned long,
void*,
void* call_data);
176 bool isDataValid(
const QModelIndex &idx)
const;
178 vtkSpreadSheetView* GetView()
const;
183 pqInternal* Internal;
185 vtkSMProxy* ViewProxy;
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
bool operator==(const vtkIndex &other) const
vtkIndex(vtkIdType a, vtkIdType b, vtkIdType c)