Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicorePointPref.h
Go to the documentation of this file.
1
6
7#ifndef __HDI_CORE_POINT_PREF__
8#define __HDI_CORE_POINT_PREF__
9
10#include "hdicorePoint.h"
11#include "hdicorePrefData.h"
12
13namespace hdi
14{
15 namespace core
16 {
20 class PointPref : public PrefData
21 {
22 public:
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::unique_ptr<PointPref> PointPrefUP;
111 typedef std::shared_ptr<PointPref> PointPrefSP;
112 typedef std::weak_ptr<PointPref> PointPrefWP;
113 }
114}
115
116#endif
117// __HDI_CORE_POINT_PREF__
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition hdicorePoint.h:38
PointPref(const Point &value_, const std::string &name_="")
Constructs a PointPref object, with new data, to be added to a container at a later time.
PointPref(const PointPref &p_)
Constructs a new PointPref object from an existing PointPref object (copy constructor)
virtual PointPref * clone() const
Convenience method to clone an PointPref object on the heap.
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.
virtual bool setPoint(const Point &pt_)
Sets the point for this object.
virtual Point point() const
Gets the point for this object.
PrefData()
Constructs an empty PrefData object.
Header file for describing 2D points.
Header file for general preference data storage.