CODLinkCommand Class

class CODLinkCommand: public CODCommand

Inserts a link component into a model.

Defined in: OdLinkCmd.h

Class Members

VIEWS_API CODLinkCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODLinkCommand()

Destructor.

VIEWS_API virtual BOOL Execute()

Inserts a link connecting two components.

VIEWS_API virtual sfl::MvcCommand* Inverse() const

Creates a command which performs the inverse of this command.

VIEWS_API virtual sfl::MvcCommand* Dup() const

Make a copy of this link command

VIEWS_API virtual void GetUpdateSet(CODComponentSet& setUpdate) const

Returns a list of components that are affected by this command.

VIEWS_API virtual void Sprint(CString& strCmd)

Print information on the insert command for logging purposes.

VIEWS_API void SetSourcePort(CODPortComponent* pSourcePort)

Set the source port for the link connection.

VIEWS_API void SetTargetPort(CODPortComponent* pTargetPort)

Set the target port for the link connection.

VIEWS_API void SetPoints(const CODPointArray& pointArray)

Set points that make up the line.

VIEWS_API void SetPoints(const LPPOINT lpPoints, int nCount)

Set points that make up the line.

VIEWS_API void SetSourceEndpoint(CODEndpoint* pEndpoint)

Sets the representation of the source endpoint.

VIEWS_API void SetTargetEndpoint(CODEndpoint* pEndpoint)

Sets the representation of the target endpoint.

VIEWS_API virtual CODLinkComponent* CreateLink()

Create the link component to insert into the model.

LPPOINT m_lpPoints

Points that make up the line of the link.

int m_nPointCount

Number of points in the link.

CODPortComponent* m_pSourcePort

Port that tail of link will connect to.

CODPortComponent* m_pTargetPort

Port that head of link will connect to.

CODEndpoint* m_pSourceEndpoint

Representation of the source endpoint.

CODEndpoint* m_pTargetEndpoint

Representation of the target endpoint.