PeriDyno 1.0.0
Loading...
Searching...
No Matches
WParameterDataNode Class Reference

#include <WParameterDataNode.h>

Inheritance diagram for WParameterDataNode:
Collaboration diagram for WParameterDataNode:

Classes

struct  FieldWidgetMeta
 

Public Member Functions

 WParameterDataNode ()
 
 ~WParameterDataNode ()
 
void setNode (std::shared_ptr< dyno::Node > node)
 
void setModule (std::shared_ptr< dyno::Module > module)
 
virtual int columnCount (const Wt::WModelIndex &parent=Wt::WModelIndex()) const
 
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
 
virtual Wt::cpp17::any headerData (int section, Wt::Orientation orientation=Wt::Orientation::Horizontal, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
 
void createParameterPanel (Wt::WPanel *panel)
 
void createParameterPanelModule (Wt::WPanel *panel)
 
void updateNode ()
 
void updateModule ()
 
Wt::Signal< int > & changeValue ()
 
void emit ()
 
Wt::WContainerWidget * createFieldWidget (dyno::FBase *field)
 

Static Public Member Functions

static int registerWidget (const FieldWidgetMeta &meta)
 
static FieldWidgetMetagetRegistedWidget (const std::string &)
 

Private Member Functions

void castToDerived (Wt::WContainerWidget *fw)
 
void addScalarFieldWidget (Wt::WTable *table, std::string label, dyno::FBase *field, int labelWidth=150, int widgetWidth=300)
 

Private Attributes

std::shared_ptr< dyno::NodemNode
 
std::shared_ptr< dyno::ModulemModule
 
Wt::WTable * table
 
Wt::Signal< int > changeValue_
 

Static Private Attributes

static std::map< std::string, FieldWidgetMetasFieldWidgetMeta {}
 

Detailed Description

Definition at line 32 of file WParameterDataNode.h.

Constructor & Destructor Documentation

◆ WParameterDataNode()

WParameterDataNode::WParameterDataNode ( )

Definition at line 6 of file WParameterDataNode.cpp.

Here is the call graph for this function:

◆ ~WParameterDataNode()

WParameterDataNode::~WParameterDataNode ( )

Definition at line 87 of file WParameterDataNode.cpp.

Member Function Documentation

◆ addScalarFieldWidget()

void WParameterDataNode::addScalarFieldWidget ( Wt::WTable * table,
std::string label,
dyno::FBase * field,
int labelWidth = 150,
int widgetWidth = 300 )
private

Definition at line 295 of file WParameterDataNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ castToDerived()

void WParameterDataNode::castToDerived ( Wt::WContainerWidget * fw)
private

Definition at line 249 of file WParameterDataNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeValue()

Wt::Signal< int > & WParameterDataNode::changeValue ( )
inline

Definition at line 59 of file WParameterDataNode.h.

◆ columnCount()

int WParameterDataNode::columnCount ( const Wt::WModelIndex & parent = Wt::WModelIndex()) const
virtual

Definition at line 105 of file WParameterDataNode.cpp.

◆ createFieldWidget()

Wt::WContainerWidget * WParameterDataNode::createFieldWidget ( dyno::FBase * field)

Definition at line 231 of file WParameterDataNode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createParameterPanel()

void WParameterDataNode::createParameterPanel ( Wt::WPanel * panel)

Definition at line 165 of file WParameterDataNode.cpp.

Here is the call graph for this function:

◆ createParameterPanelModule()

void WParameterDataNode::createParameterPanelModule ( Wt::WPanel * panel)

Definition at line 192 of file WParameterDataNode.cpp.

Here is the call graph for this function:

◆ data()

Wt::cpp17::any WParameterDataNode::data ( const Wt::WModelIndex & index,
Wt::ItemDataRole role = Wt::ItemDataRole::Display ) const
virtual

Definition at line 119 of file WParameterDataNode.cpp.

◆ emit()

void WParameterDataNode::emit ( )

Definition at line 244 of file WParameterDataNode.cpp.

Here is the caller graph for this function:

◆ getRegistedWidget()

WParameterDataNode::FieldWidgetMeta * WParameterDataNode::getRegistedWidget ( const std::string & name)
static

Definition at line 224 of file WParameterDataNode.cpp.

Here is the caller graph for this function:

◆ headerData()

Wt::cpp17::any WParameterDataNode::headerData ( int section,
Wt::Orientation orientation = Wt::Orientation::Horizontal,
Wt::ItemDataRole role = Wt::ItemDataRole::Display ) const
virtual

Definition at line 149 of file WParameterDataNode.cpp.

◆ registerWidget()

int WParameterDataNode::registerWidget ( const FieldWidgetMeta & meta)
static

Definition at line 219 of file WParameterDataNode.cpp.

Here is the caller graph for this function:

◆ rowCount()

int WParameterDataNode::rowCount ( const Wt::WModelIndex & parent = Wt::WModelIndex()) const
virtual

Definition at line 110 of file WParameterDataNode.cpp.

◆ setModule()

void WParameterDataNode::setModule ( std::shared_ptr< dyno::Module > module)

Definition at line 98 of file WParameterDataNode.cpp.

◆ setNode()

void WParameterDataNode::setNode ( std::shared_ptr< dyno::Node > node)

Definition at line 91 of file WParameterDataNode.cpp.

◆ updateModule()

void WParameterDataNode::updateModule ( )

◆ updateNode()

void WParameterDataNode::updateNode ( )

Member Data Documentation

◆ changeValue_

Wt::Signal<int> WParameterDataNode::changeValue_
private

Definition at line 84 of file WParameterDataNode.h.

◆ mModule

std::shared_ptr<dyno::Module> WParameterDataNode::mModule
private

Definition at line 82 of file WParameterDataNode.h.

◆ mNode

std::shared_ptr<dyno::Node> WParameterDataNode::mNode
private

Definition at line 81 of file WParameterDataNode.h.

◆ sFieldWidgetMeta

std::map< std::string, WParameterDataNode::FieldWidgetMeta > WParameterDataNode::sFieldWidgetMeta {}
staticprivate

Definition at line 4 of file WParameterDataNode.h.

◆ table

Wt::WTable* WParameterDataNode::table
private

Definition at line 83 of file WParameterDataNode.h.


The documentation for this class was generated from the following files: