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

#include <WtConnection.h>

Collaboration diagram for WtConnection:

Public Member Functions

 WtConnection (PortType portType, WtNode &node, PortIndex portIndex)
 
 WtConnection (WtNode &nodeIn, PortIndex portIndexIn, WtNode &nodeOut, PortIndex portIndexOut, TypeConverter converter=TypeConverter{})
 
 WtConnection (WtNode &nodeIn, PortIndex portIndexIn, WtNode &nodeOut, PortIndex portIndexOut)
 
 WtConnection (const WtConnection &)=delete
 
WtConnection operator= (const WtConnection &)=delete
 
 ~WtConnection ()
 
Wt::Guid id () const
 
void setRequiredPort (PortType portType)
 
PortType requiredPort () const
 
void setGraphicsObject (std::unique_ptr< WtConnectionGraphicsObject > &&graphics)
 
void setNodeToPort (WtNode &node, PortType portType, PortIndex portIndex)
 
void removeFromNodes () const
 
WtConnectionGraphicsObjectgetConnectionGraphicsObject () const
 
WtConnectionState const & connectionState () const
 
WtConnectionStateconnectionState ()
 
WtConnectionGeometryconnectionGeometry ()
 
WtConnectionGeometry const & connectionGeometry () const
 
WtNodegetNode (PortType portType) const
 
WtNode *& getNode (PortType portType)
 
PortIndex getPortIndex (PortType portType) const
 
void clearNode (PortType portType)
 
NodeDataType dataType (PortType portType) const
 
void setTypeConverter (TypeConverter converter)
 
bool complete () const
 
void propagateData (std::shared_ptr< WtNodeData > nodeData) const
 
void propagateEmptyData () const
 
void propagateDisconnectedData () const
 

Private Attributes

Wt::Guid _uid
 
WtNode_outNode = nullptr
 
WtNode_inNode = nullptr
 
PortIndex _outPortIndex
 
PortIndex _inPortIndex
 
WtConnectionState _connectionState
 
WtConnectionGeometry _connectionGeometry
 
std::unique_ptr< WtConnectionGraphicsObject_connectionGraphicsObject
 
TypeConverter _converter
 

Detailed Description

Definition at line 125 of file WtConnection.h.

Constructor & Destructor Documentation

◆ WtConnection() [1/4]

WtConnection::WtConnection ( PortType portType,
WtNode & node,
PortIndex portIndex )

New WtConnection is attached to the port of the given WtNode. The port has parameters (portType, portIndex). The opposite connection end will require anothre port.

Definition at line 146 of file WtConnection.cpp.

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

◆ WtConnection() [2/4]

WtConnection::WtConnection ( WtNode & nodeIn,
PortIndex portIndexIn,
WtNode & nodeOut,
PortIndex portIndexOut,
TypeConverter converter = TypeConverter{} )

Definition at line 159 of file WtConnection.cpp.

Here is the call graph for this function:

◆ WtConnection() [3/4]

WtConnection::WtConnection ( WtNode & nodeIn,
PortIndex portIndexIn,
WtNode & nodeOut,
PortIndex portIndexOut )

Definition at line 176 of file WtConnection.cpp.

Here is the call graph for this function:

◆ WtConnection() [4/4]

WtConnection::WtConnection ( const WtConnection & )
delete
Here is the call graph for this function:

◆ ~WtConnection()

WtConnection::~WtConnection ( )

Definition at line 192 of file WtConnection.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ clearNode()

void WtConnection::clearNode ( PortType portType)

Definition at line 439 of file WtConnection.cpp.

Here is the call graph for this function:

◆ complete()

bool WtConnection::complete ( ) const

Definition at line 257 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ connectionGeometry() [1/2]

WtConnectionGeometry & WtConnection::connectionGeometry ( )

Definition at line 391 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ connectionGeometry() [2/2]

WtConnectionGeometry const & WtConnection::connectionGeometry ( ) const

Definition at line 396 of file WtConnection.cpp.

◆ connectionState() [1/2]

WtConnectionState & WtConnection::connectionState ( )

Definition at line 381 of file WtConnection.cpp.

◆ connectionState() [2/2]

WtConnectionState const & WtConnection::connectionState ( ) const

Definition at line 386 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ dataType()

NodeDataType WtConnection::dataType ( PortType portType) const

Definition at line 455 of file WtConnection.cpp.

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

◆ getConnectionGraphicsObject()

WtConnectionGraphicsObject & WtConnection::getConnectionGraphicsObject ( ) const

Definition at line 376 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ getNode() [1/2]

WtNode *& WtConnection::getNode ( PortType portType)

Definition at line 420 of file WtConnection.cpp.

◆ getNode() [2/2]

WtNode * WtConnection::getNode ( PortType portType) const

Definition at line 401 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ getPortIndex()

PortIndex WtConnection::getPortIndex ( PortType portType) const

Definition at line 318 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ id()

Wt::Guid WtConnection::id ( ) const

Definition at line 252 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ operator=()

WtConnection WtConnection::operator= ( const WtConnection & )
delete
Here is the call graph for this function:

◆ propagateData()

void WtConnection::propagateData ( std::shared_ptr< WtNodeData > nodeData) const

Definition at line 499 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ propagateDisconnectedData()

void WtConnection::propagateDisconnectedData ( ) const

Definition at line 519 of file WtConnection.cpp.

Here is the call graph for this function:

◆ propagateEmptyData()

void WtConnection::propagateEmptyData ( ) const

Definition at line 512 of file WtConnection.cpp.

Here is the call graph for this function:

◆ removeFromNodes()

void WtConnection::removeFromNodes ( ) const

Definition at line 367 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ requiredPort()

PortType WtConnection::requiredPort ( ) const

Definition at line 283 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ setGraphicsObject()

void WtConnection::setGraphicsObject ( std::unique_ptr< WtConnectionGraphicsObject > && graphics)

Definition at line 288 of file WtConnection.cpp.

Here is the call graph for this function:

◆ setNodeToPort()

void WtConnection::setNodeToPort ( WtNode & node,
PortType portType,
PortIndex portIndex )

Assigns a node to the required port. It is assumed that there is a required port, no extra checks

Definition at line 340 of file WtConnection.cpp.

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

◆ setRequiredPort()

void WtConnection::setRequiredPort ( PortType portType)

Remembers the end being dragged. Invalidates WtNode address. Grabs mouse.

Definition at line 262 of file WtConnection.cpp.

Here is the caller graph for this function:

◆ setTypeConverter()

void WtConnection::setTypeConverter ( TypeConverter converter)

Definition at line 494 of file WtConnection.cpp.

Member Data Documentation

◆ _connectionGeometry

WtConnectionGeometry WtConnection::_connectionGeometry
private

Definition at line 239 of file WtConnection.h.

◆ _connectionGraphicsObject

std::unique_ptr<WtConnectionGraphicsObject> WtConnection::_connectionGraphicsObject
private

Definition at line 241 of file WtConnection.h.

◆ _connectionState

WtConnectionState WtConnection::_connectionState
private

Definition at line 238 of file WtConnection.h.

◆ _converter

TypeConverter WtConnection::_converter
private

Definition at line 243 of file WtConnection.h.

◆ _inNode

WtNode* WtConnection::_inNode = nullptr
private

Definition at line 231 of file WtConnection.h.

◆ _inPortIndex

PortIndex WtConnection::_inPortIndex
private

Definition at line 234 of file WtConnection.h.

◆ _outNode

WtNode* WtConnection::_outNode = nullptr
private

Definition at line 230 of file WtConnection.h.

◆ _outPortIndex

PortIndex WtConnection::_outPortIndex
private

Definition at line 233 of file WtConnection.h.

◆ _uid

Wt::Guid WtConnection::_uid
private

Definition at line 226 of file WtConnection.h.


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