PeriDyno 1.2.1
Loading...
Searching...
No Matches
WtFlowWidget Class Referenceabstract

#include <WtFlowWidget.h>

Inheritance diagram for WtFlowWidget:
Collaboration diagram for WtFlowWidget:

Public Member Functions

 WtFlowWidget (std::shared_ptr< dyno::SceneGraph > scene)
 
virtual ~WtFlowWidget ()=default
 
virtual void onMouseMove (const Wt::WMouseEvent &event)=0
 
virtual void onMouseWentDown (const Wt::WMouseEvent &event)=0
 
virtual void onMouseWentUp (const Wt::WMouseEvent &event)=0
 
virtual void onKeyWentDown ()=0
 
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 Attributes

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 22 of file WtFlowWidget.h.

Constructor & Destructor Documentation

◆ WtFlowWidget()

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

Definition at line 6 of file WtFlowWidget.cpp.

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

◆ ~WtFlowWidget()

virtual WtFlowWidget::~WtFlowWidget ( )
virtualdefault

Member Function Documentation

◆ checkMouseInPoints()

bool WtFlowWidget::checkMouseInPoints ( Wt::WPointF mousePoint,
WtFlowNodeData nodeData,
PortState portState )

Definition at line 66 of file WtFlowWidget.cpp.

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

◆ checkMouseInRect()

bool WtFlowWidget::checkMouseInRect ( Wt::WPointF mousePoint,
WtFlowNodeData nodeData )

Definition at line 53 of file WtFlowWidget.cpp.

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

◆ cubicPath()

Wt::WPainterPath WtFlowWidget::cubicPath ( Wt::WPointF source,
Wt::WPointF sink )

Definition at line 137 of file WtFlowWidget.cpp.

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

◆ drawSketchLine()

void WtFlowWidget::drawSketchLine ( Wt::WPainter * painter,
Wt::WPointF source,
Wt::WPointF sink )

Definition at line 180 of file WtFlowWidget.cpp.

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

◆ onKeyWentDown()

virtual void WtFlowWidget::onKeyWentDown ( )
pure virtual

Implemented in WtModuleFlowWidget, and WtNodeFlowWidget.

◆ onMouseMove()

virtual void WtFlowWidget::onMouseMove ( const Wt::WMouseEvent & event)
pure virtual

Implemented in WtModuleFlowWidget, and WtNodeFlowWidget.

◆ onMouseWentDown()

virtual void WtFlowWidget::onMouseWentDown ( const Wt::WMouseEvent & event)
pure virtual

Implemented in WtModuleFlowWidget, and WtNodeFlowWidget.

◆ onMouseWentUp()

virtual void WtFlowWidget::onMouseWentUp ( const Wt::WMouseEvent & event)
pure virtual

Implemented in WtModuleFlowWidget, and WtNodeFlowWidget.

◆ onMouseWheel()

void WtFlowWidget::onMouseWheel ( const Wt::WMouseEvent & event)

Definition at line 13 of file WtFlowWidget.cpp.

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

◆ pointsC1C2()

std::pair< Wt::WPointF, Wt::WPointF > WtFlowWidget::pointsC1C2 ( Wt::WPointF source,
Wt::WPointF sink )

Definition at line 149 of file WtFlowWidget.cpp.

Here is the caller graph for this function:

◆ reorderNode()

void WtFlowWidget::reorderNode ( )

Definition at line 37 of file WtFlowWidget.cpp.

◆ selectNodeSignal()

Wt::Signal< int > & WtFlowWidget::selectNodeSignal ( )
inline

Definition at line 48 of file WtFlowWidget.h.

◆ updateAll()

void WtFlowWidget::updateAll ( )

Definition at line 45 of file WtFlowWidget.cpp.

Here is the caller graph for this function:

◆ updateCanvas()

Wt::Signal & WtFlowWidget::updateCanvas ( )
inline

Definition at line 50 of file WtFlowWidget.h.

◆ zoomIn()

void WtFlowWidget::zoomIn ( )

Definition at line 25 of file WtFlowWidget.cpp.

Here is the caller graph for this function:

◆ zoomOut()

void WtFlowWidget::zoomOut ( )

Definition at line 31 of file WtFlowWidget.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _selectNodeSignal

Wt::Signal<int> WtFlowWidget::_selectNodeSignal
protected

Definition at line 70 of file WtFlowWidget.h.

◆ _updateCanvas

Wt::Signal WtFlowWidget::_updateCanvas
protected

Definition at line 71 of file WtFlowWidget.h.

◆ canMoveNode

bool WtFlowWidget::canMoveNode = false
protected

Definition at line 59 of file WtFlowWidget.h.

◆ drawLineFlag

bool WtFlowWidget::drawLineFlag = false
protected

Definition at line 62 of file WtFlowWidget.h.

◆ inPoint

connectionPointData WtFlowWidget::inPoint
protected

Definition at line 80 of file WtFlowWidget.h.

◆ isDragging

bool WtFlowWidget::isDragging = false
protected

Definition at line 58 of file WtFlowWidget.h.

◆ mEditingEnabled

bool WtFlowWidget::mEditingEnabled = true
protected

Definition at line 61 of file WtFlowWidget.h.

◆ mLastDelta

Wt::WPointF WtFlowWidget::mLastDelta
protected

Definition at line 56 of file WtFlowWidget.h.

◆ mLastMousePos

Wt::WPointF WtFlowWidget::mLastMousePos
protected

Definition at line 55 of file WtFlowWidget.h.

◆ mMousePoint

Wt::WPointF WtFlowWidget::mMousePoint = Wt::WPointF(0, 0)
protected

Definition at line 66 of file WtFlowWidget.h.

◆ mScene

std::shared_ptr<dyno::SceneGraph> WtFlowWidget::mScene
protected

Definition at line 68 of file WtFlowWidget.h.

◆ mTranslate

Wt::WPointF WtFlowWidget::mTranslate = Wt::WPointF(0, 0)
protected

Definition at line 64 of file WtFlowWidget.h.

◆ mTranslateNode

Wt::WPointF WtFlowWidget::mTranslateNode = Wt::WPointF(0, 0)
protected

Definition at line 65 of file WtFlowWidget.h.

◆ mZoomFactor

double WtFlowWidget::mZoomFactor
protected

Definition at line 54 of file WtFlowWidget.h.

◆ outPoint

connectionPointData WtFlowWidget::outPoint
protected

Definition at line 79 of file WtFlowWidget.h.

◆ reorderFlag

bool WtFlowWidget::reorderFlag = true
protected

Definition at line 60 of file WtFlowWidget.h.

◆ selectedNum

int WtFlowWidget::selectedNum = 0
protected

Definition at line 74 of file WtFlowWidget.h.

◆ selectType

int WtFlowWidget::selectType = -1
protected

Definition at line 73 of file WtFlowWidget.h.

◆ sinkPoint

Wt::WPointF WtFlowWidget::sinkPoint
protected

Definition at line 77 of file WtFlowWidget.h.

◆ sourcePoint

Wt::WPointF WtFlowWidget::sourcePoint
protected

Definition at line 76 of file WtFlowWidget.h.


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