CuteHMI - Pipes (CuteHMI.Symbols.Pipes.1)
ConnectorSelector Class Reference

Connector selector. More...

Inheritance diagram for ConnectorSelector:
PipeConnector

Public Member Functions

void mapToPipe (pipe, other)
 
- Public Member Functions inherited from PipeConnector
void mapToPipe (pipe, other)
 

Properties

var connectors
 
- Properties inherited from PipeConnector
real x
 
real y
 
Item parent
 

Detailed Description

Connector selector.

Since
1.0

Given the list of connectors, selector tries to pick closest connector to the other connector a pipe is connected to. Connector selectors present themselves as connectors located in the center of the parent item. Currently a simple algorithm is used, thus when paired they give approximate solutions, because selector does not access connectors list of the other selector. In some cases it may be necesary to pick appropriate connectors manually.

Member Function Documentation

◆ mapToPipe()

void ConnectorSelector::mapToPipe ( pipe  ,
other   
)

Property Documentation

◆ connectors

var ConnectorSelector::connectors
read