Go to the documentation of this file.
3 #include <SimoxUtility/json/json.hpp>
4 #include <QAbstractItemModel>
12 void setRoot(nlohmann::json
const& root);
15 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent)
const override;
16 QModelIndex
parent(
const QModelIndex&
index)
const override;
19 QVariant
data(
const QModelIndex&
index,
int role)
const override;
23 nlohmann::json* refFrom(QModelIndex
const&
index)
const;
26 mutable std::map<nlohmann::json*, int> rows;
27 mutable std::map<nlohmann::json*, nlohmann::json*> parents;
28 mutable std::map<nlohmann::json*, std::string> names;
29 mutable nlohmann::json root;
ScalarT Orientation(const VectorXD< 2, ScalarT > &p1, const VectorXD< 2, ScalarT > &p2, const VectorXD< 2, ScalarT > &c)
int columnCount(const QModelIndex &parent) const override
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
QModelIndex index(int row, int column, const QModelIndex &parent) const override
int rowCount(const QModelIndex &parent) const override
QModelIndex parent(const QModelIndex &index) const override
QVariant data(const QModelIndex &index, int role) const override
This file offers overloads of toIce() and fromIce() functions for STL container types.
void setRoot(nlohmann::json const &root)