CODLineLinkShape::UpdateVertex

BOOLCODLineLinkShape::UpdateVertex(const intnVertexIdx, CODPortComponent*pSourcePort, CODPortComponent*pTargetPort)

Adjust the shape when a vertex changes.

Defined in: OdLinkShape.cpp

Return Value

TRUE if shape changed; otherwise FALSE.

Parameters

nVertexIdx

Index of vertex that has changed.

pSourcePort

Pointer to port connected to the tail of the link.

pTargetPort

Pointer to port connected to the head of the link.

Comments

If the given vertex is adjacent to either line endpoint and the port corresponding to the endpoint returns TRUE from  CODPortComponent::MustAttachAtPerimeter, then the position of the endpoint must be recalculated.