Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicorePathStyle.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_PATH_STYLE__
8#define __HDI_CORE_PATH_STYLE__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreArtColor.h"
13
14namespace hdi
15{
16 namespace core
17 {
22 {
23 public:
27 static const int16_t maxDashComponents = 6;
28
32 class Map
33 {
34 public:
39
43 bool count;
44
48 bool offset;
49
57 Map(const bool default_ = false);
58
66 Map(const Map& map_);
67
73 virtual ~Map();
74
83 Map& operator=(const Map& rhs_);
84 };
85
86 typedef std::unique_ptr<Map> MapUP;
87 typedef std::shared_ptr<Map> MapSP;
88 typedef std::weak_ptr<Map> MapWP;
89
94
98 int16_t count;
99
103 double offset;
104
111
119 DashStyle(const DashStyle& style_);
120
126 virtual ~DashStyle();
127
137 };
138
139 typedef std::unique_ptr<DashStyle> DashStyleUP;
140 typedef std::shared_ptr<DashStyle> DashStyleSP;
141 typedef std::weak_ptr<DashStyle> DashStyleWP;
142
147 {
148 public:
152 class Map
153 {
154 public:
158 bool color;
159
164
172 Map(const bool default_ = false);
173
181 Map(const Map& map_);
182
188 virtual ~Map();
189
198 Map& operator=(const Map& rhs_);
199 };
200
201 typedef std::unique_ptr<Map> MapUP;
202 typedef std::shared_ptr<Map> MapSP;
203 typedef std::weak_ptr<Map> MapWP;
204
209
217
224
232 FillStyle(const FillStyle& style_);
233
239 virtual ~FillStyle();
240
250 };
251
252 typedef std::unique_ptr<FillStyle> FillStyleUP;
253 typedef std::shared_ptr<FillStyle> FillStyleSP;
254 typedef std::weak_ptr<FillStyle> FillStyleWP;
255
260 {
261 public:
266 {
267 ButtCap = 100,
268 RoundCap = 110,
269 ProjectingCap = 120,
270 SquareCap = ProjectingCap
271 };
272
277 {
278 MiterJoin = 100,
279 RoundJoin = 110,
280 BevelJoin = 120
281 };
282
286 class Map
287 {
288 public:
292 bool color;
293
298
302 bool width;
303
308
312 bool cap;
313
317 bool join;
318
323
331 Map(const bool default_ = false);
332
340 Map(const Map& map_);
341
347 virtual ~Map();
348
357 Map& operator=(const Map& rhs_);
358 };
359
360 typedef std::unique_ptr<Map> MapUP;
361 typedef std::shared_ptr<Map> MapSP;
362 typedef std::weak_ptr<Map> MapWP;
363
368
373
377 double width;
378
383
388
393
398
406
414 StrokeStyle(const StrokeStyle& style_);
415
421 virtual ~StrokeStyle();
422
432 };
433
434 typedef std::unique_ptr<StrokeStyle> StrokeStyleUP;
435 typedef std::shared_ptr<StrokeStyle> StrokeStyleSP;
436 typedef std::weak_ptr<StrokeStyle> StrokeStyleWP;
437
442 {
443 public:
447 class Map
448 {
449 public:
454
459
464
469
474
479
487 Map(const Map& map_);
488
496 Map(const bool default_ = false);
497
503 virtual ~Map();
504
513 Map& operator=(const Map& rhs_);
514 };
515
516 typedef std::unique_ptr<Map> MapUP;
517 typedef std::shared_ptr<Map> MapSP;
518 typedef std::weak_ptr<Map> MapWP;
519
524
529
534
539
544
549
557
565 PathStyle(const PathStyle& style_);
566
572 virtual ~PathStyle();
573
583 };
584
585 typedef std::unique_ptr<PathStyle> PathStyleUP;
586 typedef std::shared_ptr<PathStyle> PathStyleSP;
587 typedef std::weak_ptr<PathStyle> PathStyleWP;
588 }
589}
590
591#endif
592// HDI_CORE_AIP_MODE
593
594#endif
595// __HDI_CORE_PATH_STYLE__
Describes the color of art on the artboard.
Definition: hdicoreArtColor.h:40
Acts as a DashStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:33
bool lengths[maxDashComponents]
Whether the dash components are known.
Definition: hdicorePathStyle.h:38
virtual ~Map()
Destructs a Map object.
bool offset
Whether the offset is known.
Definition: hdicorePathStyle.h:48
Map(const bool default_=false)
Constructs a new Map object with values set to the given default.
Map & operator=(const Map &rhs_)
Map assignment operator.
Map(const Map &map_)
Constructs a new Map object from an existing one.
bool count
Whether the component count is known.
Definition: hdicorePathStyle.h:43
Describes the dash styling of a path.
Definition: hdicorePathStyle.h:22
virtual ~DashStyle()
Destructs a DashStyle object.
DashStyle & operator=(const DashStyle &rhs_)
DashStyle assignment operator.
DashStyle(const DashStyle &style_)
Constructs a new DashStyle object from an existing one.
double offset
Dash offset.
Definition: hdicorePathStyle.h:103
static const int16_t maxDashComponents
Maximum number of sublengths that can compose a dash style.
Definition: hdicorePathStyle.h:27
double lengths[maxDashComponents]
Lengths of each dash component, in points.
Definition: hdicorePathStyle.h:93
int16_t count
Number of valid values in the lengths array.
Definition: hdicorePathStyle.h:98
DashStyle()
DashStyle constructor; sets all the lengths to 0.0, the count to 0, and the offset to 0....
Acts as a FillStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:153
Map(const bool default_=false)
Constructs a new Map object with values set to the given default.
Map & operator=(const Map &rhs_)
Map assignment operator.
Map(const Map &map_)
Constructs a new Map object from an existing one.
bool color
Whether the color is known.
Definition: hdicorePathStyle.h:158
virtual ~Map()
Destructs a Map object.
bool overprint
Whether the overprint setting is known.
Definition: hdicorePathStyle.h:163
Describes the fill styling of a path.
Definition: hdicorePathStyle.h:147
FillStyle(const FillStyle &style_)
Constructs a new FillStyle object from an existing one.
virtual ~FillStyle()
Destructs a FillStyle object.
FillStyle & operator=(const FillStyle &rhs_)
FillStyle assignment operator.
FillStyle()
FillStyle constructor; sets the color to none and overprint to false.
ArtColor color
Fill color.
Definition: hdicorePathStyle.h:208
bool overprint
Controls whether fill overprint is enabled.
Definition: hdicorePathStyle.h:216
Acts as a StrokeStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:448
bool evenodd
Whether the evenodd setting is known.
Definition: hdicorePathStyle.h:473
bool useFill
Whether the useFill setting is known.
Definition: hdicorePathStyle.h:453
bool useStroke
Whether the useStroke setting is known.
Definition: hdicorePathStyle.h:463
FillStyle::Map fill
FillStyle value mappings.
Definition: hdicorePathStyle.h:458
Map & operator=(const Map &rhs_)
Map assignment operator.
virtual ~Map()
Destructs a Map object.
Map(const bool default_=false)
Constructs a new Map object with values set to the given default.
Map(const Map &map_)
Constructs a new Map object from an existing one.
bool resolution
Whether the resolution is known.
Definition: hdicorePathStyle.h:478
StrokeStyle::Map stroke
StrokeStyle value mappings.
Definition: hdicorePathStyle.h:468
Describes all styling attributes of a path.
Definition: hdicorePathStyle.h:442
bool evenodd
Whether to use the even-odd rule to determine path insideness.
Definition: hdicorePathStyle.h:543
PathStyle & operator=(const PathStyle &rhs_)
PathStyle assignment operator.
virtual ~PathStyle()
Destructs a PathStyle object.
bool useFill
Whether or not to use fill.
Definition: hdicorePathStyle.h:523
FillStyle fill
Fill style.
Definition: hdicorePathStyle.h:528
StrokeStyle stroke
Stroke style.
Definition: hdicorePathStyle.h:538
bool useStroke
Whether or not to use stroke.
Definition: hdicorePathStyle.h:533
PathStyle(const PathStyle &style_)
Constructs a new PathStyle object from an existing one.
PathStyle()
PathStyle constructor; sets useFill to false, useStroke to false, evenodd to false,...
double resolution
Resolution for the path.
Definition: hdicorePathStyle.h:548
Acts as a StrokeStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:287
bool width
Whether the width is known.
Definition: hdicorePathStyle.h:302
bool join
Whether the join setting is known.
Definition: hdicorePathStyle.h:317
bool cap
Whether the cap setting is known.
Definition: hdicorePathStyle.h:312
bool color
Whether the color is known.
Definition: hdicorePathStyle.h:292
bool overprint
Whether the overprint setting is known.
Definition: hdicorePathStyle.h:297
bool miterLimit
Whether the miter limit is known.
Definition: hdicorePathStyle.h:322
DashStyle::Map dash
Dash style value mappings.
Definition: hdicorePathStyle.h:307
Map(const bool default_=false)
Constructs a new Map object with values set to the given default.
virtual ~Map()
Destructs a Map object.
Map(const Map &map_)
Constructs a new Map object from an existing one.
Map & operator=(const Map &rhs_)
Map assignment operator.
Describes the stroke styling of a path.
Definition: hdicorePathStyle.h:260
StrokeStyle & operator=(const StrokeStyle &rhs_)
StrokeStyle assignment operator.
JoinStyle join
Stroke join style.
Definition: hdicorePathStyle.h:392
double miterLimit
Stroke miter limit.
Definition: hdicorePathStyle.h:397
StrokeStyle(const StrokeStyle &style_)
Constructs a new StrokeStyle object from an existing one.
virtual ~StrokeStyle()
Destructs a StrokeStyle object.
StrokeStyle()
StrokeStyle constructor; sets overprint to false, the width to 0.0, the color to none,...
JoinStyle
Indicates the type of join for a given stroke style.
Definition: hdicorePathStyle.h:277
CapStyle
Indicates the type of cap for a given stroke style.
Definition: hdicorePathStyle.h:266
bool overprint
Controls whether stroke overprint is enabled.
Definition: hdicorePathStyle.h:372
double width
Stroke width, in points.
Definition: hdicorePathStyle.h:377
DashStyle dash
Stroke dash style.
Definition: hdicorePathStyle.h:382
CapStyle cap
Stroke cap style.
Definition: hdicorePathStyle.h:387
ArtColor color
Stroke color.
Definition: hdicorePathStyle.h:367
Header file for art color manipulation.