00001 #ifndef _LIBGNOMECANVASMM_POINT_H
00002 #define _LIBGNOMECANVASMM_POINT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <libgnomecanvas/gnome-canvas.h>
00027
00028 #include <iostream>
00029
00030 namespace Gnome
00031 {
00032
00033 namespace Art
00034 {
00035
00039 class Point
00040 {
00041 public:
00042 Point(gdouble x = 0.0, gdouble y = 0.0);
00043 Point(const ArtPoint& artpoint);
00044 Point(const Point& src);
00045 Point& operator=(const Point& src);
00046 ~Point();
00047
00048 gdouble get_x() const;
00049 void set_x(gdouble x);
00050 gdouble get_y() const;
00051 void set_y(gdouble y);
00052
00053 Point operator+(const Point& p2);
00054 Point operator-(const Point& p2);
00055 Point const & operator+=(const Point& other);
00056 Point const & operator-=(const Point& other);
00057
00058 ArtPoint* gobj();
00059 const ArtPoint* gobj() const;
00060
00061 protected:
00062
00063
00064 ArtPoint m_ArtPoint;
00065 };
00066
00067 }
00068
00069 }
00070
00071 std::ostream& operator<<(std::ostream& out, const Gnome::Art::Point& p);
00072
00073 #endif
00074