CODDiamondEndpoint Class
class CODDiamondEndpoint: public CODEndpoint
Diamond endpoint representation.Defined in: OdDiamondEndpt.h
Class Members
Constructor.
CODDiamondEndpoint(const CODDiamondEndpoint& src)
Copy constructor.
virtual ~CODDiamondEndpoint()
Destructor.
CODDiamondEndpoint& operator=(const CODDiamondEndpoint& src)
Assignment operator.
virtual CODEndpoint* Dup() const
Create a duplicate copy of this object.
int m_nDiamondLength
Length of the diamond.
int m_nDiamondWidth
Width of the diamond.
int GetDiamondLength() const
Gets the length of the diamond.
void SetDiamondLength(const int nLength)
Sets the length of the diamond.
int GetDiamondWidth() const
Gets the width of the diamond.
void SetDiamondWidth(const int nWidth)
Sets the width of the diamond.
virtual void OnDraw(CDC* pDC)
Draws the diamond endpoint.
virtual void CalculateRgn(CODRgn* pRgn)
Calculate the region occupied by the endpoint.
virtual void CalculateDiamond(LPPOINT lpPoints)
Calculates the polygon of the diamond.
virtual void Serialize(CArchive& ar)
Serializes the endpoint.