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

#include <WtNodeGraphicsObject.h>

Collaboration diagram for WtNodeGraphicsObject:

Public Types

enum  { Type = 65538 }
 

Public Member Functions

 WtNodeGraphicsObject (WtFlowScene &scene, WtNode &node, Wt::WPainter *painter, int selectType)
 
virtual ~WtNodeGraphicsObject ()
 
WtNodenode ()
 
WtNode const & node () const
 
Wt::WRectF boundingRect () const
 
void setGeometryChanged ()
 
void moveConnections () const
 
int type () const
 
void lock (bool locked)
 
bool isHotKey0Checked () const
 
void setHotKey0Checked (bool checked)
 
bool hotKey0Hovered () const
 
void setHotKey0Hovered (bool h)
 
bool isHotKey1Checked () const
 
void setHotKey1Checked (bool checked)
 
bool hotKey1Hovered () const
 
void setHotKey1Hovered (bool h)
 
void setPos (Wt::WPointF pos)
 
void setPos (int x, int y)
 
Wt::WPointF getPos () const
 
int selectType () const
 
void setSelecteChecked (int s)
 
Wt::WTransform sceneTransform () const
 
void setBoundingRect (Wt::WRectF r) const
 
void setHotKey0BoundingRect (Wt::WRectF r) const
 
void setHotKey1BoundingRect (Wt::WRectF r) const
 
void setPointsData (std::vector< connectionPointData > p) const
 
 WtNodeGraphicsObject ()=default
 

Protected Member Functions

void paint (Wt::WPainter *painter)
 

Private Member Functions

void embedQWidget ()
 

Private Attributes

WtFlowScene_scene
 
WtNode_node
 
Wt::WPainter * _painter
 
bool _locked
 
bool _hotKey0Checked = true
 
bool _hotKey0Hovered = false
 
bool _hotKey1Hovered = false
 
bool _hotKey1Checked = true
 
bool _hotKey2Hovered = false
 
bool _hotKey2Checked = false
 
int _selectType
 
int _pressCounter = 0
 
int HelpTimerID = -1
 
int PortTimerID = -1
 
Wt::WPointF _origin = Wt::WPointF(0, 0)
 
WtFlowNodeData_flowNodeData
 

Detailed Description

Definition at line 83 of file WtNodeGraphicsObject.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Definition at line 102 of file WtNodeGraphicsObject.h.

Constructor & Destructor Documentation

◆ WtNodeGraphicsObject() [1/2]

WtNodeGraphicsObject::WtNodeGraphicsObject ( WtFlowScene & scene,
WtNode & node,
Wt::WPainter * painter,
int selectType )

Definition at line 530 of file WtNodeGraphicsObject.cpp.

Here is the call graph for this function:

◆ ~WtNodeGraphicsObject()

WtNodeGraphicsObject::~WtNodeGraphicsObject ( )
virtual

Definition at line 540 of file WtNodeGraphicsObject.cpp.

◆ WtNodeGraphicsObject() [2/2]

WtNodeGraphicsObject::WtNodeGraphicsObject ( )
default

Member Function Documentation

◆ boundingRect()

Wt::WRectF WtNodeGraphicsObject::boundingRect ( ) const

Definition at line 556 of file WtNodeGraphicsObject.cpp.

◆ embedQWidget()

void WtNodeGraphicsObject::embedQWidget ( )
private

Definition at line 552 of file WtNodeGraphicsObject.cpp.

◆ getPos()

Wt::WPointF WtNodeGraphicsObject::getPos ( ) const

Definition at line 596 of file WtNodeGraphicsObject.cpp.

Here is the caller graph for this function:

◆ hotKey0Hovered()

bool WtNodeGraphicsObject::hotKey0Hovered ( ) const
inline

Definition at line 112 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ hotKey1Hovered()

bool WtNodeGraphicsObject::hotKey1Hovered ( ) const
inline

Definition at line 120 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ isHotKey0Checked()

bool WtNodeGraphicsObject::isHotKey0Checked ( ) const
inline

Definition at line 108 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ isHotKey1Checked()

bool WtNodeGraphicsObject::isHotKey1Checked ( ) const
inline

Definition at line 116 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ lock()

void WtNodeGraphicsObject::lock ( bool locked)

Definition at line 582 of file WtNodeGraphicsObject.cpp.

◆ moveConnections()

void WtNodeGraphicsObject::moveConnections ( ) const

Visits all attached connections and corrects their corresponding end points.

Definition at line 566 of file WtNodeGraphicsObject.cpp.

◆ node() [1/2]

WtNode & WtNodeGraphicsObject::node ( )

Definition at line 542 of file WtNodeGraphicsObject.cpp.

Here is the caller graph for this function:

◆ node() [2/2]

WtNode const & WtNodeGraphicsObject::node ( ) const

Definition at line 547 of file WtNodeGraphicsObject.cpp.

◆ paint()

void WtNodeGraphicsObject::paint ( Wt::WPainter * painter)
protected

Definition at line 591 of file WtNodeGraphicsObject.cpp.

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

◆ sceneTransform()

Wt::WTransform WtNodeGraphicsObject::sceneTransform ( ) const
inline

Definition at line 134 of file WtNodeGraphicsObject.h.

◆ selectType()

int WtNodeGraphicsObject::selectType ( ) const
inline

Definition at line 130 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ setBoundingRect()

void WtNodeGraphicsObject::setBoundingRect ( Wt::WRectF r) const
inline

Definition at line 139 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ setGeometryChanged()

void WtNodeGraphicsObject::setGeometryChanged ( )

Definition at line 561 of file WtNodeGraphicsObject.cpp.

◆ setHotKey0BoundingRect()

void WtNodeGraphicsObject::setHotKey0BoundingRect ( Wt::WRectF r) const
inline

Definition at line 141 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ setHotKey0Checked()

void WtNodeGraphicsObject::setHotKey0Checked ( bool checked)
inline

Definition at line 110 of file WtNodeGraphicsObject.h.

◆ setHotKey0Hovered()

void WtNodeGraphicsObject::setHotKey0Hovered ( bool h)
inline

Definition at line 114 of file WtNodeGraphicsObject.h.

◆ setHotKey1BoundingRect()

void WtNodeGraphicsObject::setHotKey1BoundingRect ( Wt::WRectF r) const
inline

Definition at line 143 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ setHotKey1Checked()

void WtNodeGraphicsObject::setHotKey1Checked ( bool checked)
inline

Definition at line 118 of file WtNodeGraphicsObject.h.

◆ setHotKey1Hovered()

void WtNodeGraphicsObject::setHotKey1Hovered ( bool h)
inline

Definition at line 122 of file WtNodeGraphicsObject.h.

◆ setPointsData()

void WtNodeGraphicsObject::setPointsData ( std::vector< connectionPointData > p) const
inline

Definition at line 145 of file WtNodeGraphicsObject.h.

Here is the caller graph for this function:

◆ setPos() [1/2]

void WtNodeGraphicsObject::setPos ( int x,
int y )

Definition at line 601 of file WtNodeGraphicsObject.cpp.

Here is the call graph for this function:

◆ setPos() [2/2]

void WtNodeGraphicsObject::setPos ( Wt::WPointF pos)

Definition at line 613 of file WtNodeGraphicsObject.cpp.

Here is the call graph for this function:

◆ setSelecteChecked()

void WtNodeGraphicsObject::setSelecteChecked ( int s)
inline

Definition at line 132 of file WtNodeGraphicsObject.h.

◆ type()

int WtNodeGraphicsObject::type ( ) const
inline

Definition at line 104 of file WtNodeGraphicsObject.h.

Member Data Documentation

◆ _flowNodeData

WtFlowNodeData& WtNodeGraphicsObject::_flowNodeData
private

Definition at line 184 of file WtNodeGraphicsObject.h.

◆ _hotKey0Checked

bool WtNodeGraphicsObject::_hotKey0Checked = true
private

Definition at line 162 of file WtNodeGraphicsObject.h.

◆ _hotKey0Hovered

bool WtNodeGraphicsObject::_hotKey0Hovered = false
private

Definition at line 164 of file WtNodeGraphicsObject.h.

◆ _hotKey1Checked

bool WtNodeGraphicsObject::_hotKey1Checked = true
private

Definition at line 168 of file WtNodeGraphicsObject.h.

◆ _hotKey1Hovered

bool WtNodeGraphicsObject::_hotKey1Hovered = false
private

Definition at line 166 of file WtNodeGraphicsObject.h.

◆ _hotKey2Checked

bool WtNodeGraphicsObject::_hotKey2Checked = false
private

Definition at line 172 of file WtNodeGraphicsObject.h.

◆ _hotKey2Hovered

bool WtNodeGraphicsObject::_hotKey2Hovered = false
private

Definition at line 170 of file WtNodeGraphicsObject.h.

◆ _locked

bool WtNodeGraphicsObject::_locked
private

Definition at line 160 of file WtNodeGraphicsObject.h.

◆ _node

WtNode& WtNodeGraphicsObject::_node
private

Definition at line 156 of file WtNodeGraphicsObject.h.

◆ _origin

Wt::WPointF WtNodeGraphicsObject::_origin = Wt::WPointF(0, 0)
private

Definition at line 182 of file WtNodeGraphicsObject.h.

◆ _painter

Wt::WPainter* WtNodeGraphicsObject::_painter
private

Definition at line 158 of file WtNodeGraphicsObject.h.

◆ _pressCounter

int WtNodeGraphicsObject::_pressCounter = 0
private

Definition at line 176 of file WtNodeGraphicsObject.h.

◆ _scene

WtFlowScene& WtNodeGraphicsObject::_scene
private

Definition at line 154 of file WtNodeGraphicsObject.h.

◆ _selectType

int WtNodeGraphicsObject::_selectType
private

Definition at line 174 of file WtNodeGraphicsObject.h.

◆ HelpTimerID

int WtNodeGraphicsObject::HelpTimerID = -1
private

Definition at line 178 of file WtNodeGraphicsObject.h.

◆ PortTimerID

int WtNodeGraphicsObject::PortTimerID = -1
private

Definition at line 179 of file WtNodeGraphicsObject.h.


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