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
VIEWS_API CODEndpoint()
Constructor.
VIEWS_API CODEndpoint(const CODEndpoint& src)
Copy constructor.
VIEWS_API virtual ~CODEndpoint()
Destructor.
VIEWS_API CODEndpoint& operator=(const CODEndpoint& src)
Assignment operator.
VIEWS_API 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.
VIEWS_API void GetEndpoints(CPoint& ptSource, CPoint& ptTarget)
Gets the current values for the endpoints of the line segment this endpoint is on.
VIEWS_API void SetEndpoints(CPoint ptSource, CPoint ptTarget)
Sets the endpoints of the line segment the endpoint is on.
VIEWS_API virtual void OnDraw(CDC* pDC)
Draws the endpoint.
VIEWS_API virtual void CalculateRgn(CODRgn* pRgn)
Calculate the region occupied by the endpoint.
VIEWS_API virtual void Serialize(CArchive& ar)
Serializes the endpoint.