Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreStrokeStyleMapPref.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_STROKE_STYLE_MAP_PREF__
8#define __HDI_CORE_STROKE_STYLE_MAP_PREF__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicorePathStyle.h"
13#include "hdicorePrefData.h"
14
15namespace hdi
16{
17 namespace aip
18 {
19 class PersistentDictionary;
20 }
21
22 namespace core
23 {
28 {
29 public:
42
51
63 StrokeStyleMapPref(const StrokeStyle::Map& value_, const std::string& name_ = "");
64
71
81
95 virtual StrokeStyleMapPref* clone() const;
96
106 virtual Type dataType() const;
107
116
125 virtual bool setStrokeStyleMap(const StrokeStyle::Map& value_);
126
127
128 private:
129 friend class PathStyleMapPref;
130
136 StrokeStyleMapPref(aip::PersistentDictionary*&);
137 };
138
139 typedef std::unique_ptr<StrokeStyleMapPref> StrokeStyleMapPrefUP;
140 typedef std::shared_ptr<StrokeStyleMapPref> StrokeStyleMapPrefSP;
141 typedef std::weak_ptr<StrokeStyleMapPref> StrokeStyleMapPrefWP;
142 }
143}
144
145#endif
146// HDI_CORE_AIP_MODE
147
148#endif
149// __HDI_CORE_STROKE_STYLE_MAP_PREF__
Allows for storage of path style maps.
Definition: hdicorePathStyleMapPref.h:23
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Type
Describes the type of the data the PrefData object contains; useful for determining which subclass to...
Definition: hdicorePrefData.h:32
Acts as a StrokeStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:287
Allows for storage of stroke style maps.
Definition: hdicoreStrokeStyleMapPref.h:28
virtual StrokeStyleMapPref & operator=(const StrokeStyleMapPref &rhs_)
Allows one StrokeStyleMapPref object to be assigned from another.
StrokeStyleMapPref(const StrokeStyle::Map &value_, const std::string &name_="")
Constructs a StrokeStyleMapPref object, with new data, to be added to a container at a later time.
virtual Type dataType() const
Gets the type of persistent data.
virtual bool setStrokeStyleMap(const StrokeStyle::Map &value_)
Sets the stroke style map value for this object.
virtual ~StrokeStyleMapPref()
Destructs a StrokeStyleMapPref object.
virtual StrokeStyleMapPref * clone() const
Convenience method to clone an StrokeStyleMapPref object on the heap.
StrokeStyleMapPref(const StrokeStyleMapPref &ss_)
Constructs a new StrokeStyleMapPref object from an existing StrokeStyleMapPref object (copy construct...
StrokeStyleMapPref()
Constructs an empty StrokeStyleMapPref object.
virtual StrokeStyle::Map strokeStyleMap() const
Gets the stroke style map value for this object.
Header file for path style-related classes.
Header file for general preference data storage.