3#include <Wt/WAbstractItemModel.h>
4#include <Wt/WAbstractTableModel.h>
8#include <Wt/WDoubleSpinBox.h>
25 void setScene(std::shared_ptr<dyno::SceneGraph> scene);
27 virtual Wt::WModelIndex
parent(
const Wt::WModelIndex&
index)
const;
28 virtual Wt::WModelIndex
index(
int row,
int column,
29 const Wt::WModelIndex&
parent = Wt::WModelIndex())
const;
32 virtual int rowCount(
const Wt::WModelIndex&
parent = Wt::WModelIndex())
const;
34 virtual Wt::cpp17::any
data(
const Wt::WModelIndex&
index,
35 Wt::ItemDataRole role = Wt::ItemDataRole::Display)
const;
38 Wt::Orientation orientation = Wt::Orientation::Horizontal,
39 Wt::ItemDataRole role = Wt::ItemDataRole::Display)
const;
41 std::shared_ptr<dyno::Node>
getNode(
const Wt::WModelIndex&
index);
44 std::shared_ptr<dyno::SceneGraph>
mScene;
54 std::shared_ptr<dyno::Node>
ref;
65 void setNode(std::shared_ptr<dyno::Node> node);
67 virtual int columnCount(
const Wt::WModelIndex& parent = Wt::WModelIndex())
const;
68 virtual int rowCount(
const Wt::WModelIndex& parent = Wt::WModelIndex())
const;
70 virtual Wt::cpp17::any
data(
const Wt::WModelIndex& index,
71 Wt::ItemDataRole role = Wt::ItemDataRole::Display)
const;
74 Wt::Orientation orientation = Wt::Orientation::Horizontal,
75 Wt::ItemDataRole role = Wt::ItemDataRole::Display)
const;
77 std::shared_ptr<dyno::Module>
getModule(
const Wt::WModelIndex& index);
79 std::shared_ptr<dyno::Node>
mNode;
void setNode(std::shared_ptr< dyno::Node > node)
virtual Wt::cpp17::any headerData(int section, Wt::Orientation orientation=Wt::Orientation::Horizontal, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
virtual int columnCount(const Wt::WModelIndex &parent=Wt::WModelIndex()) const
std::shared_ptr< dyno::Module > getModule(const Wt::WModelIndex &index)
std::shared_ptr< dyno::Node > mNode
virtual int rowCount(const Wt::WModelIndex &parent=Wt::WModelIndex()) const
virtual Wt::cpp17::any data(const Wt::WModelIndex &index, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
void setScene(std::shared_ptr< dyno::SceneGraph > scene)
virtual Wt::WModelIndex index(int row, int column, const Wt::WModelIndex &parent=Wt::WModelIndex()) const
std::vector< NodeItem * > mNodeList
std::shared_ptr< dyno::SceneGraph > mScene
virtual int rowCount(const Wt::WModelIndex &parent=Wt::WModelIndex()) const
virtual int columnCount(const Wt::WModelIndex &parent=Wt::WModelIndex()) const
virtual Wt::WModelIndex parent(const Wt::WModelIndex &index) const
virtual Wt::cpp17::any headerData(int section, Wt::Orientation orientation=Wt::Orientation::Horizontal, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
std::shared_ptr< dyno::Node > getNode(const Wt::WModelIndex &index)
virtual Wt::cpp17::any data(const Wt::WModelIndex &index, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
This is an implementation of AdditiveCCD based on peridyno.
std::shared_ptr< dyno::Node > ref
std::vector< NodeItem * > children