feat(geometrySpreadsheet): read attributes from geometry

This commit is contained in:
parker
2025-08-10 02:01:28 +01:00
parent 898291e39e
commit add55e720f
7 changed files with 145 additions and 5 deletions

View File

@@ -12,9 +12,11 @@ public:
GeometrySpreadsheetModel(const QStringList &strings, QObject *parent = nullptr);
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role) const override;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const override;
int indexFromSection(unsigned int section) const;
void selectionChanged(enzo::nt::OpId opId);
@@ -23,5 +25,7 @@ private:
QStringList stringList;
enzo::nt::OpId opId_;
enzo::geo::Geometry geometry_;
std::vector<unsigned int> attribSizes_;
std::vector<unsigned int> sectionAttribMap_;
};