CODEndpoint Class

class CODEndpoint: public CObject

Line endpoint representation. This class draws nothing by default. It should be overridden to create endpoints.

Defined in: OdEndpoint.h

See Also

CODArrowEndpoint  CODDiamondEndpoint

Class Members

 CODEndpoint()

Constructor.

 CODEndpoint(const CODEndpoint& src)

Copy constructor.

virtual  ~CODEndpoint()

Destructor.

CODEndpoint&  operator=(const CODEndpoint& src)

Assignment operator.

virtual CODEndpoint*  Dup() const

Create a duplicate copy of this object.

CPoint  m_ptSource

Source of the line segment the endpoint is on.

CPoint  m_ptTarget

Target of the line segment the enpoint is on. This is where the enpoint will be drawn.

void  GetEndpoints(CPoint& ptSource, CPoint& ptTarget)

Gets the current values for the endpoints of the line segment this endpoint is on.

void  SetEndpoints(CPoint ptSource, CPoint ptTarget)

Sets the endpoints of the line segment the endpoint is on.

virtual void  OnDraw(CDC* pDC)

Draws the endpoint.

virtual void  CalculateRgn(CODRgn* pRgn)

Calculate the region occupied by the endpoint.

virtual void  Serialize(CArchive& ar)

Serializes the endpoint.