Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreDraw.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_DRAW__
8 #define __HDI_CORE_DRAW__
9 
10 #include <vector>
11 
12 #include "hdicoreTypes.h"
13 
14 namespace hdi
15 {
16  namespace core
17  {
18  class Art;
19  class ArtboardPoint;
20  class ArtboardRect;
21  class ArtColor;
22  class Font;
23  class PathStyle;
24 
25  namespace draw
26  {
27  typedef std::vector<ArtboardPoint> ArtboardPointVector;
28 
40  std::auto_ptr<Art> point(const ArtboardPoint& loc_, const Art* const group_ = NULL);
41 
55  std::auto_ptr<Art> line(
56  const ArtboardPoint& start_,
57  const ArtboardPoint& end_,
58  const PathStyle& style_,
59  const Art* const group_ = NULL
60  );
61 
74  std::auto_ptr<Art> line(
75  const ArtboardPoint& start_,
76  const ArtboardPoint& end_,
77  const Art* const group_ = NULL
78  );
79 
92  std::auto_ptr<Art> rect(const ArtboardRect& rect_, const PathStyle& style_, const Art* const group_ = NULL);
93 
105  std::auto_ptr<Art> rect(const ArtboardRect& rect_, const Art* const group_ = NULL);
106 
120  std::auto_ptr<Art> roundedRect(
121  const ArtboardRect& rect_,
122  const double radius_,
123  const PathStyle& style_,
124  const Art* const group_ = NULL
125  );
126 
139  std::auto_ptr<Art> roundedRect(
140  const ArtboardRect& rect_,
141  const double radius_,
142  const Art* const group_ = NULL
143  );
144 
158  std::auto_ptr<Art> chamferedRect(
159  const ArtboardRect& rect_,
160  const double dist_,
161  const PathStyle& style_,
162  const Art* const group_ = NULL
163  );
164 
177  std::auto_ptr<Art> chamferedRect(
178  const ArtboardRect& rect_,
179  const double dist_,
180  const Art* const group_ = NULL
181  );
182 
195  std::auto_ptr<Art> polygon(
196  const ArtboardPointVector& points_,
197  const PathStyle& style_,
198  const Art* const group_ = NULL
199  );
200 
212  std::auto_ptr<Art> polygon(const ArtboardPointVector& points_, const Art* const group_ = NULL);
213 
228  std::auto_ptr<Art> regularPolygon(
229  const ArtboardPoint& center_,
230  const double radius_,
231  const int16_t sides_,
232  const PathStyle& style_,
233  const Art* const group_ = NULL
234  );
235 
249  std::auto_ptr<Art> regularPolygon(
250  const ArtboardPoint& center_,
251  const double radius_,
252  const int16_t sides_,
253  const Art* const group_ = NULL
254  );
255 
271  std::auto_ptr<Art> regularPolygon(
272  const ArtboardPoint& center_,
273  const ArtboardPoint& vertex_,
274  const int16_t sides_,
275  const PathStyle& style_,
276  const Art* const group_ = NULL
277  );
278 
293  std::auto_ptr<Art> regularPolygon(
294  const ArtboardPoint& center_,
295  const ArtboardPoint& vertex_,
296  const int16_t sides_,
297  const Art* const group_ = NULL
298  );
299 
317  std::auto_ptr<Art> ellipse(
318  const ArtboardPoint& source_,
319  const double width_,
320  const double height_,
321  const bool centered_,
322  const PathStyle& style_,
323  const Art* const group_ = NULL
324  );
325 
342  std::auto_ptr<Art> ellipse(
343  const ArtboardPoint& source_,
344  const double width_,
345  const double height_,
346  const bool centered_,
347  const Art* const group_ = NULL
348  );
349 
365  std::auto_ptr<Art> star(
366  const ArtboardPoint& center_,
367  const uint16_t points_,
368  const double innerRadius_,
369  const double outerRadius_,
370  const PathStyle& style_,
371  const Art* const group_ = NULL
372  );
373 
388  std::auto_ptr<Art> star(
389  const ArtboardPoint& center_,
390  const uint16_t points_,
391  const double innerRadius_,
392  const double outerRadius_,
393  const Art* const group_ = NULL
394  );
395 
409  std::auto_ptr<Art> triangle(
410  const ArtboardPoint& center_,
411  const double width_,
412  const PathStyle& style_,
413  const Art* const group_ = NULL
414  );
415 
428  std::auto_ptr<Art> triangle(
429  const ArtboardPoint& center_,
430  const double width_,
431  const Art* const group_ = NULL
432  );
433 
449  std::auto_ptr<Art> arc(
450  const ArtboardPoint& center_,
451  const ArtboardPoint& start_,
452  const ArtboardPoint& end_,
453  const PathStyle& style_,
454  const Art* const group_ = NULL
455  );
456 
471  std::auto_ptr<Art> arc(
472  const ArtboardPoint& center_,
473  const ArtboardPoint& start_,
474  const ArtboardPoint& end_,
475  const Art* const group_ = NULL
476  );
477 
495  std::auto_ptr<Art> text(
496  const std::string& text_,
497  const ArtboardPoint& where_,
498  const std::string& fontName_,
499  const double fontSize_,
500  const ParagraphJustification just_,
501  const ArtColor& color_,
502  const Art* const group_ = NULL
503  );
504 
521  std::auto_ptr<Art> text(
522  const std::string& text_,
523  const ArtboardPoint& where_,
524  const Font& font_,
525  const double fontSize_,
526  const ParagraphJustification just_,
527  const ArtColor& color_,
528  const Art* const group_ = NULL
529  );
530  }
531  }
532 }
533 
534 #endif
535 // __HDI_CORE_DRAW__
bool line(const Point &start_, const Point &end_)
Draws a line with the given end points.
bool polygon(const PointVector &points_, const bool fill_=false)
Draws a polygon constructed of the given points.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
bool rect(const Rect &rect_, const bool fill_=false)
Draws a rectangle with the given coordinates and fill.
Definition: hdicoreaiArray.h:12
bool ellipse(const Rect &bounds_, const bool fill_=false)
Draws an ellipse within the given rectangular bounds.
bool text(const std::string &text_, const Point &pt_, const bool hasCJK_=false)
Draws text with the current font and left justification.