//--------------------------------------------------------------------------- // Copyright (c) Jim Wright 2004 // // JimPoint.h // This is the class for drawing and maintaining a point on the page. // //--------------------------------------------------------------------------- #pragma once #include "jimdrawingobject.h" class CJimPoint : public CJimDrawingObject { private: double m_x; double m_y; int m_size; COLORREF m_color; public: CJimPoint(void); CJimPoint(double x,double y); CJimPoint(double x,double y,int size); CJimPoint(double x,double y,int size,COLORREF color); CJimPoint(const CJimPoint &right); CJimPoint& operator=(const CJimPoint &right); int operator==(const CJimPoint &right) const; ~CJimPoint(void); double DistanceBetween(CJimPoint right); double Slope(CJimPoint right); double GetX(void); double GetY(void); void SetX(double x); void SetY(double y); virtual void Draw(CDC* hDC, int x, int y,double scale); virtual double FindTop(void); virtual double FindLeft(void); virtual double FindBottom(void); virtual double FindRight(void); };