3#include <Wt/WAbstractItemModel.h>
4#include <Wt/WAbstractTableModel.h>
8#include <Wt/WDoubleSpinBox.h>
39 void setNode(std::shared_ptr<dyno::Node> node);
40 void setModule(std::shared_ptr<dyno::Module> module);
42 virtual int columnCount(
const Wt::WModelIndex& parent = Wt::WModelIndex())
const;
43 virtual int rowCount(
const Wt::WModelIndex& parent = Wt::WModelIndex())
const;
46 virtual Wt::cpp17::any
data(
const Wt::WModelIndex& index,
47 Wt::ItemDataRole role = Wt::ItemDataRole::Display)
const;
50 Wt::Orientation orientation = Wt::Orientation::Horizontal,
51 Wt::ItemDataRole role = Wt::ItemDataRole::Display)
const;
69 const std::type_info*
type;
81 std::shared_ptr<dyno::Node>
mNode;
std::shared_ptr< dyno::Node > mNode
static FieldWidgetMeta * getRegistedWidget(const std::string &)
static std::map< std::string, FieldWidgetMeta > sFieldWidgetMeta
void addScalarFieldWidget(Wt::WTable *table, std::string label, dyno::FBase *field, int labelWidth=150, int widgetWidth=300)
static int registerWidget(const FieldWidgetMeta &meta)
virtual int rowCount(const Wt::WModelIndex &parent=Wt::WModelIndex()) const
void createParameterPanel(Wt::WPanel *panel)
std::shared_ptr< dyno::Module > mModule
void setModule(std::shared_ptr< dyno::Module > module)
void setNode(std::shared_ptr< dyno::Node > node)
Wt::Signal< int > & changeValue()
Wt::Signal< int > changeValue_
void createParameterPanelModule(Wt::WPanel *panel)
void castToDerived(Wt::WContainerWidget *fw)
virtual Wt::cpp17::any data(const Wt::WModelIndex &index, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
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
Wt::WContainerWidget * createFieldWidget(dyno::FBase *field)
This is an implementation of AdditiveCCD based on peridyno.