<< Click to Display Table of Contents >> NShape Reference
|
Notifies the shape about a moved connection point.
void FollowConnectionPointWithGluePoint(ControlPointId gluePointId, Shape connectedShape, ControlPointId connectedPointId) |
This function is called upon the shape, which possesses the active point of a connection. It means that the passive point (the connection point) of this connection has been moved. The function is called once for each glue point in the target shape that is connected to the moved connection point.
If the connection is a point-to-shape connection, the shape calculates the new endpoint (i.e. position of the glue point) with the help of the connected shape.
In all cases, if the glue point cannot be moved to the new required position because of constraints, the connection is dissolved.
Name |
Description |
---|---|
gluePointId |
Id of the glue point connected to the moved control point. |
connectedShape |
The passive shape of the connection. |
gluePointId |
Id of the control point that has moved. |