IODLinkShape Class
class IODLinkShape: public IODObject
The link shape interface defines a set of methods used by the CODLinkComponent class for positioning a child component to dock with its connected symbols. This interface is mixed into classes derived from CODComponent so that any type of shape (not just lines) can be used for links. The link shape defines a head and tail point that correspond to the head and tail ports of a link. The method Dock adjusts the shape so that the head and tail points are positioned over the given ports. The UpdateVertex method is called to update the shape when a vertex is modified. The GetComponent provides a type-safe way to cast the link shape to a CODComponent object.Defined in: OdLinkShape.h
Class Members
virtual CODComponent* GetComponent()
Return a pointer to the component that implements the line shape.
virtual CPoint GetTailPoint() const
Return the point that represents the tail of the link.
virtual CPoint GetHeadPoint() const
Return the point that represents the head of the link.
virtual BOOL Dock(CODPortComponent* pSourcePort, CODPortComponent* pTargetPort)
Adjusts the shape so that the head and tail dock with the given ports.
virtual BOOL UpdateVertex(const int nVertexIdx, CODPortComponent* pSourcePort, CODPortComponent* pTargetPort)
Adjust the shape when a vertex changes.