PeriDyno 1.2.1
Loading...
Searching...
No Matches
WtModuleFlowWidget Class Reference

#include <WtModuleFlowWidget.h>

Inheritance diagram for WtModuleFlowWidget:
Collaboration diagram for WtModuleFlowWidget:

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::NodemNode
 
WtModuleFlowScenemModuleFlowScene = nullptr
 
std::map< dyno::ObjectId, WtNode * > moduleMap
 
std::shared_ptr< dyno::ModulemOutModule
 
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::SceneGraphmScene
 
Wt::Signal< int > _selectNodeSignal
 
Wt::Signal _updateCanvas
 
int selectType = -1
 
int selectedNum = 0
 
Wt::WPointF sourcePoint
 
Wt::WPointF sinkPoint
 
connectionPointData outPoint
 
connectionPointData inPoint
 

Detailed Description

Definition at line 6 of file WtModuleFlowWidget.h.

Constructor & Destructor Documentation

◆ WtModuleFlowWidget()

WtModuleFlowWidget::WtModuleFlowWidget ( std::shared_ptr< dyno::SceneGraph > scene)

Definition at line 4 of file WtModuleFlowWidget.cpp.

Here is the call graph for this function:

◆ ~WtModuleFlowWidget()

WtModuleFlowWidget::~WtModuleFlowWidget ( )

Definition at line 12 of file WtModuleFlowWidget.cpp.

Member Function Documentation

◆ checkMouseInAllRect()

bool WtModuleFlowWidget::checkMouseInAllRect ( Wt::WPointF mousePoint)
protected

Definition at line 238 of file WtModuleFlowWidget.cpp.

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

◆ deleteModule()

void WtModuleFlowWidget::deleteModule ( )

Definition at line 190 of file WtModuleFlowWidget.cpp.

◆ moveModule()

void WtModuleFlowWidget::moveModule ( WtNode & n,
const Wt::WPointF & newLocation )

Definition at line 195 of file WtModuleFlowWidget.cpp.

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

◆ onKeyWentDown()

void WtModuleFlowWidget::onKeyWentDown ( )
overridevirtual

Implements WtFlowWidget.

Definition at line 176 of file WtModuleFlowWidget.cpp.

◆ onMouseMove()

void WtModuleFlowWidget::onMouseMove ( const Wt::WMouseEvent & event)
overridevirtual

Implements WtFlowWidget.

Definition at line 96 of file WtModuleFlowWidget.cpp.

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

◆ onMouseWentDown()

void WtModuleFlowWidget::onMouseWentDown ( const Wt::WMouseEvent & event)
overridevirtual

Implements WtFlowWidget.

Definition at line 14 of file WtModuleFlowWidget.cpp.

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

◆ onMouseWentUp()

void WtModuleFlowWidget::onMouseWentUp ( const Wt::WMouseEvent & event)
overridevirtual

Implements WtFlowWidget.

Definition at line 142 of file WtModuleFlowWidget.cpp.

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

◆ paintEvent()

void WtModuleFlowWidget::paintEvent ( Wt::WPaintDevice * paintDevice)
protected

Definition at line 207 of file WtModuleFlowWidget.cpp.

Here is the call graph for this function:

◆ setNode()

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

Definition at line 184 of file WtModuleFlowWidget.cpp.

Member Data Documentation

◆ mModuleFlowScene

WtModuleFlowScene* WtModuleFlowWidget::mModuleFlowScene = nullptr
private

Definition at line 32 of file WtModuleFlowWidget.h.

◆ mNode

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

Definition at line 30 of file WtModuleFlowWidget.h.

◆ moduleMap

std::map<dyno::ObjectId, WtNode*> WtModuleFlowWidget::moduleMap
private

Definition at line 33 of file WtModuleFlowWidget.h.

◆ mOutModule

std::shared_ptr<dyno::Module> WtModuleFlowWidget::mOutModule
private

Definition at line 35 of file WtModuleFlowWidget.h.

◆ selectedNum

int WtModuleFlowWidget::selectedNum = 0
private

Definition at line 38 of file WtModuleFlowWidget.h.

◆ selectType

int WtModuleFlowWidget::selectType = -1
private

Definition at line 37 of file WtModuleFlowWidget.h.


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