![]() |
PeriDyno 1.2.1
|
#include <WtModuleFlowWidget.h>


Public Member Functions | |
| WtModuleFlowWidget (std::shared_ptr< dyno::SceneGraph > scene) | |
| ~WtModuleFlowWidget () | |
| void | onMouseMove (const Wt::WMouseEvent &event) override |
| void | onMouseWentDown (const Wt::WMouseEvent &event) override |
| void | onMouseWentUp (const Wt::WMouseEvent &event) override |
| void | onKeyWentDown () override |
| void | setNode (std::shared_ptr< dyno::Node > node) |
| void | deleteModule () |
| void | moveModule (WtNode &n, const Wt::WPointF &newLocation) |
Public Member Functions inherited from WtFlowWidget | |
| WtFlowWidget (std::shared_ptr< dyno::SceneGraph > scene) | |
| virtual | ~WtFlowWidget ()=default |
| void | onMouseWheel (const Wt::WMouseEvent &event) |
| void | zoomIn () |
| void | zoomOut () |
| void | reorderNode () |
| void | updateAll () |
| bool | checkMouseInRect (Wt::WPointF mousePoint, WtFlowNodeData nodeData) |
| bool | checkMouseInPoints (Wt::WPointF mousePoint, WtFlowNodeData nodeData, PortState portState) |
| Wt::WPainterPath | cubicPath (Wt::WPointF source, Wt::WPointF sink) |
| std::pair< Wt::WPointF, Wt::WPointF > | pointsC1C2 (Wt::WPointF source, Wt::WPointF sink) |
| void | drawSketchLine (Wt::WPainter *painter, Wt::WPointF source, Wt::WPointF sink) |
| Wt::Signal< int > & | selectNodeSignal () |
| Wt::Signal & | updateCanvas () |
Protected Member Functions | |
| void | paintEvent (Wt::WPaintDevice *paintDevice) |
| bool | checkMouseInAllRect (Wt::WPointF mousePoint) |
Private Attributes | |
| std::shared_ptr< dyno::Node > | mNode |
| WtModuleFlowScene * | mModuleFlowScene = nullptr |
| std::map< dyno::ObjectId, WtNode * > | moduleMap |
| std::shared_ptr< dyno::Module > | mOutModule |
| int | selectType = -1 |
| int | selectedNum = 0 |
Additional Inherited Members | |
Protected Attributes inherited from WtFlowWidget | |
| double | mZoomFactor |
| Wt::WPointF | mLastMousePos |
| Wt::WPointF | mLastDelta |
| bool | isDragging = false |
| bool | canMoveNode = false |
| bool | reorderFlag = true |
| bool | mEditingEnabled = true |
| bool | drawLineFlag = false |
| Wt::WPointF | mTranslate = Wt::WPointF(0, 0) |
| Wt::WPointF | mTranslateNode = Wt::WPointF(0, 0) |
| Wt::WPointF | mMousePoint = Wt::WPointF(0, 0) |
| std::shared_ptr< dyno::SceneGraph > | mScene |
| Wt::Signal< int > | _selectNodeSignal |
| Wt::Signal | _updateCanvas |
| int | selectType = -1 |
| int | selectedNum = 0 |
| Wt::WPointF | sourcePoint |
| Wt::WPointF | sinkPoint |
| connectionPointData | outPoint |
| connectionPointData | inPoint |
Definition at line 6 of file WtModuleFlowWidget.h.
| WtModuleFlowWidget::WtModuleFlowWidget | ( | std::shared_ptr< dyno::SceneGraph > | scene | ) |
| WtModuleFlowWidget::~WtModuleFlowWidget | ( | ) |
Definition at line 12 of file WtModuleFlowWidget.cpp.
|
protected |
Definition at line 238 of file WtModuleFlowWidget.cpp.


| void WtModuleFlowWidget::deleteModule | ( | ) |
Definition at line 190 of file WtModuleFlowWidget.cpp.
| void WtModuleFlowWidget::moveModule | ( | WtNode & | n, |
| const Wt::WPointF & | newLocation ) |
Definition at line 195 of file WtModuleFlowWidget.cpp.


|
overridevirtual |
Implements WtFlowWidget.
Definition at line 176 of file WtModuleFlowWidget.cpp.
|
overridevirtual |
Implements WtFlowWidget.
Definition at line 96 of file WtModuleFlowWidget.cpp.


|
overridevirtual |
Implements WtFlowWidget.
Definition at line 14 of file WtModuleFlowWidget.cpp.


|
overridevirtual |
Implements WtFlowWidget.
Definition at line 142 of file WtModuleFlowWidget.cpp.


|
protected |
| void WtModuleFlowWidget::setNode | ( | std::shared_ptr< dyno::Node > | node | ) |
Definition at line 184 of file WtModuleFlowWidget.cpp.
|
private |
Definition at line 32 of file WtModuleFlowWidget.h.
|
private |
Definition at line 30 of file WtModuleFlowWidget.h.
|
private |
Definition at line 33 of file WtModuleFlowWidget.h.
|
private |
Definition at line 35 of file WtModuleFlowWidget.h.
|
private |
Definition at line 38 of file WtModuleFlowWidget.h.
|
private |
Definition at line 37 of file WtModuleFlowWidget.h.