CODLinkCommand Class

class CODLinkCommand: public CODCommand

Inserts a link component into a model.

Defined in: OdLinkCmd.h

Class Members

 CODLinkCommand(CODModel* pModel)

Constructor.

virtual  ~CODLinkCommand()

Destructor.

virtual BOOL  Execute()

Inserts a link connecting two components.

virtual sfl::MvcCommand*  Inverse() const

Creates a command which performs the inverse of this command.

virtual sfl::MvcCommand*  Dup() const

Make a copy of this link command

virtual void  GetUpdateSet(CODComponentSet& setUpdate) const

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

virtual void  Sprint(CString& strCmd)

Print information on the insert command for logging purposes.

void  SetSourcePort(CODPortComponent* pSourcePort)

Set the source port for the link connection.

void  SetTargetPort(CODPortComponent* pTargetPort)

Set the target port for the link connection.

void  SetPoints(const CODPointArray& pointArray)

Set points that make up the line.

void  SetPoints(const LPPOINT lpPoints, int nCount)

Set points that make up the line.

void  SetSourceEndpoint(CODEndpoint* pEndpoint)

Sets the representation of the source endpoint.

void  SetTargetEndpoint(CODEndpoint* pEndpoint)

Sets the representation of the target endpoint.

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.