Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicorePointPref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_POINT_PREF__
8 #define __HDI_CORE_POINT_PREF__
9 
10 #include "hdicorePoint.h"
11 #include "hdicorePrefData.h"
12 
13 namespace hdi
14 {
15  namespace core
16  {
20  class PointPref : public PrefData
21  {
22  public:
33  PointPref();
34 
42  PointPref(const PointPref& p_);
43 
56  PointPref(const Point& value_, const std::string& name_ = "");
57 
63  virtual ~PointPref();
64 
73  virtual PointPref& operator=(const PointPref& rhs_);
74 
88  virtual PointPref* clone() const;
89 
97  virtual Point point() const;
98 
107  virtual bool setPoint(const Point& pt_);
108  };
109 
110  typedef std::auto_ptr<PointPref> PointPrefAP;
111  }
112 }
113 
114 #endif
115 // __HDI_CORE_POINT_PREF__
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
Allows for storage of 2D points.
Definition: hdicorePointPref.h:20
virtual bool setPoint(const Point &pt_)
Sets the point for this object.
virtual Point point() const
Gets the point for this object.
virtual PointPref & operator=(const PointPref &rhs_)
Allows one PointPref object to be assigned from another.
virtual ~PointPref()
Destructs a PointPref object.
PointPref()
Constructs an empty PointPref object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
Header file for describing 2D points.
Definition: hdicoreaiArray.h:12
Header file for general preference data storage.
virtual PointPref * clone() const
Convenience method to clone an PointPref object on the heap.