Connection

In this documentaion you can see the Struckture of a connection Node.

So first a tabel wich explains the messagefileds, used types and what the field is for.

but first here is an exampel of a connection:

Example of a connection (what=P_C_CONNECTION_TYPE='pcCT')

BMessage('pcCT') {
        Node::from = (type = 'PNTR')(size = 4)
        Node::to = (type = 'PNTR')(size = 4)
        Node::Data = BMessage(0x0) {
                Name = string("Unbenannt", 10 bytes)
        }
        Node::type = int8(0x1 or 1 or '[')
        ProjectConceptor::doc = (type = 'PNTR')(size = 4)
        Node::selected = bool(true)
        GraphEditor0::Renderer = (type = 'PNTR')(size = 4)
}

 

 BMessage Field

 Type

Description

Node::From

Pointer to a BMessage (node)

Points to the node where the connection start

Node::To 

Pointer to a BMessage (node)

Points to the node where the connection end

Node::selected

boolean

Stores if this connection ist currently selected or no

Node::Data

BMessage 

Contains all displayed data  for this Connection

ProjectConceptor::doc

Pointer to a PDocument

points to the document wich this connection belong to

Node::type int Int wich tells what kind of connection this is: eg straight or bended or bezier or ...