Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicorePathStyle.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_PATH_STYLE__
8 #define __HDI_CORE_PATH_STYLE__
9 
10 #include "hdicoreArtColor.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
19  class DashStyle
20  {
21  public:
25  static const int16_t maxDashComponents = 6;
26 
30  class Map
31  {
32  public:
37 
41  bool count;
42 
46  bool offset;
47 
55  Map(const bool default_ = false);
56 
64  Map(const Map& map_);
65 
71  virtual ~Map();
72 
81  Map& operator=(const Map& rhs_);
82  };
83 
84  typedef std::auto_ptr<Map> MapAP;
85 
90 
94  int16_t count;
95 
99  double offset;
100 
106  DashStyle();
107 
115  DashStyle(const DashStyle& style_);
116 
122  virtual ~DashStyle();
123 
132  DashStyle& operator=(const DashStyle& rhs_);
133  };
134 
135  typedef std::auto_ptr<DashStyle> DashStyleAP;
136 
140  class FillStyle
141  {
142  public:
146  class Map
147  {
148  public:
152  bool color;
153 
157  bool overprint;
158 
166  Map(const bool default_ = false);
167 
175  Map(const Map& map_);
176 
182  virtual ~Map();
183 
192  Map& operator=(const Map& rhs_);
193  };
194 
195  typedef std::auto_ptr<Map> MapAP;
196 
201 
208  bool overprint;
209 
215  FillStyle();
216 
224  FillStyle(const FillStyle& style_);
225 
231  virtual ~FillStyle();
232 
241  FillStyle& operator=(const FillStyle& rhs_);
242  };
243 
244  typedef std::auto_ptr<FillStyle> FillStyleAP;
245 
250  {
251  public:
255  enum CapStyle
256  {
257  ButtCap = 100,
258  RoundCap = 110,
259  ProjectingCap = 120,
260  SquareCap = ProjectingCap
261  };
262 
267  {
268  MiterJoin = 100,
269  RoundJoin = 110,
270  BevelJoin = 120
271  };
272 
276  class Map
277  {
278  public:
282  bool color;
283 
287  bool overprint;
288 
292  bool width;
293 
298 
302  bool cap;
303 
307  bool join;
308 
313 
321  Map(const bool default_ = false);
322 
330  Map(const Map& map_);
331 
337  virtual ~Map();
338 
347  Map& operator=(const Map& rhs_);
348  };
349 
350  typedef std::auto_ptr<Map> MapAP;
351 
356 
360  bool overprint;
361 
365  double width;
366 
371 
376 
381 
385  double miterLimit;
386 
393  StrokeStyle();
394 
402  StrokeStyle(const StrokeStyle& style_);
403 
409  virtual ~StrokeStyle();
410 
419  StrokeStyle& operator=(const StrokeStyle& rhs_);
420  };
421 
422  typedef std::auto_ptr<StrokeStyle> StrokeStyleAP;
423 
427  class PathStyle
428  {
429  public:
433  class Map
434  {
435  public:
439  bool useFill;
440 
445 
449  bool useStroke;
450 
455 
459  bool evenodd;
460 
465 
473  Map(const Map& map_);
474 
482  Map(const bool default_ = false);
483 
489  virtual ~Map();
490 
499  Map& operator=(const Map& rhs_);
500  };
501 
502  typedef std::auto_ptr<Map> MapAP;
503 
507  bool useFill;
508 
513 
517  bool useStroke;
518 
523 
527  bool evenodd;
528 
532  double resolution;
533 
540  PathStyle();
541 
549  PathStyle(const PathStyle& style_);
550 
556  virtual ~PathStyle();
557 
566  PathStyle& operator=(const PathStyle& rhs_);
567  };
568 
569  typedef std::auto_ptr<PathStyle> PathStyleAP;
570  }
571 }
572 
573 #endif
574 // __HDI_CORE_PATH_STYLE__
bool useStroke
Whether or not to use stroke.
Definition: hdicorePathStyle.h:517
CapStyle cap
Stroke cap style.
Definition: hdicorePathStyle.h:375
Acts as a DashStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:30
bool evenodd
Whether the evenodd setting is known.
Definition: hdicorePathStyle.h:459
ArtColor color
Stroke color.
Definition: hdicorePathStyle.h:355
StrokeStyle::Map stroke
StrokeStyle value mappings.
Definition: hdicorePathStyle.h:454
int16_t count
Number of valid values in the lengths array.
Definition: hdicorePathStyle.h:94
bool overprint
Whether the overprint setting is known.
Definition: hdicorePathStyle.h:157
bool useFill
Whether or not to use fill.
Definition: hdicorePathStyle.h:507
Header file for Illustrator art color manipulation.
bool resolution
Whether the resolution is known.
Definition: hdicorePathStyle.h:464
CapStyle
Indicates the type of cap for a given stroke style.
Definition: hdicorePathStyle.h:255
Describes all styling attributes of a path.
Definition: hdicorePathStyle.h:427
DashStyle::Map dash
Dash style value mappings.
Definition: hdicorePathStyle.h:297
Acts as a FillStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:146
bool overprint
Controls whether fill overprint is enabled.
Definition: hdicorePathStyle.h:208
virtual ~DashStyle()
Destructs a DashStyle object.
bool join
Whether the join setting is known.
Definition: hdicorePathStyle.h:307
virtual ~Map()
Destructs a Map object.
Describes the stroke styling of a path.
Definition: hdicorePathStyle.h:249
static const int16_t maxDashComponents
Maximum number of sublengths that can compose a dash style.
Definition: hdicorePathStyle.h:25
bool overprint
Whether the overprint setting is known.
Definition: hdicorePathStyle.h:287
bool useFill
Whether the useFill setting is known.
Definition: hdicorePathStyle.h:439
bool overprint
Controls whether stroke overprint is enabled.
Definition: hdicorePathStyle.h:360
double offset
Dash offset.
Definition: hdicorePathStyle.h:99
Acts as a StrokeStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:433
DashStyle dash
Stroke dash style.
Definition: hdicorePathStyle.h:370
DashStyle()
DashStyle constructor; sets all the lengths to 0.0, the count to 0, and the offset to 0...
bool miterLimit
Whether the miter limit is known.
Definition: hdicorePathStyle.h:312
bool evenodd
Whether to use the even-odd rule to determine path insideness.
Definition: hdicorePathStyle.h:527
bool cap
Whether the cap setting is known.
Definition: hdicorePathStyle.h:302
StrokeStyle stroke
Stroke style.
Definition: hdicorePathStyle.h:522
Map(const bool default_=false)
Constructs a new Map object with values set to the given default.
Definition: hdicoreaiArray.h:12
FillStyle fill
Fill style.
Definition: hdicorePathStyle.h:512
bool color
Whether the color is known.
Definition: hdicorePathStyle.h:152
bool offset
Whether the offset is known.
Definition: hdicorePathStyle.h:46
bool width
Whether the width is known.
Definition: hdicorePathStyle.h:292
double width
Stroke width, in points.
Definition: hdicorePathStyle.h:365
Map & operator=(const Map &rhs_)
Map assignment operator.
Acts as a StrokeStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:276
JoinStyle
Indicates the type of join for a given stroke style.
Definition: hdicorePathStyle.h:266
bool count
Whether the component count is known.
Definition: hdicorePathStyle.h:41
bool lengths[maxDashComponents]
Whether the dash components are known.
Definition: hdicorePathStyle.h:36
Describes the dash styling of a path.
Definition: hdicorePathStyle.h:19
double resolution
Resolution for the path.
Definition: hdicorePathStyle.h:532
JoinStyle join
Stroke join style.
Definition: hdicorePathStyle.h:380
bool useStroke
Whether the useStroke setting is known.
Definition: hdicorePathStyle.h:449
Describes the fill styling of a path.
Definition: hdicorePathStyle.h:140
ArtColor color
Fill color.
Definition: hdicorePathStyle.h:200
Describes the color of art on the artboard.
Definition: hdicoreArtColor.h:32
bool color
Whether the color is known.
Definition: hdicorePathStyle.h:282
FillStyle::Map fill
FillStyle value mappings.
Definition: hdicorePathStyle.h:444
double miterLimit
Stroke miter limit.
Definition: hdicorePathStyle.h:385