Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreDraw.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_DRAW__
8#define __HDI_CORE_DRAW__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include <memory>
13#include <vector>
14
15#include "hdicoreTypes.h"
16
17namespace hdi
18{
19 namespace core
20 {
21 class Art;
22 class ArtboardPoint;
23 class ArtboardRect;
24 class ArtColor;
25 class Font;
26 class PathStyle;
27
31 namespace draw
32 {
33 typedef std::vector<ArtboardPoint> ArtboardPointVector;
34
46 std::unique_ptr<Art> point(const ArtboardPoint& loc_, const Art* const group_ = NULL);
47
61 std::unique_ptr<Art> line(
62 const ArtboardPoint& start_,
63 const ArtboardPoint& end_,
64 const PathStyle& style_,
65 const Art* const group_ = NULL
66 );
67
80 std::unique_ptr<Art> line(
81 const ArtboardPoint& start_,
82 const ArtboardPoint& end_,
83 const Art* const group_ = NULL
84 );
85
98 std::unique_ptr<Art> rect(const ArtboardRect& rect_, const PathStyle& style_, const Art* const group_ = NULL);
99
111 std::unique_ptr<Art> rect(const ArtboardRect& rect_, const Art* const group_ = NULL);
112
126 std::unique_ptr<Art> roundedRect(
127 const ArtboardRect& rect_,
128 const double radius_,
129 const PathStyle& style_,
130 const Art* const group_ = NULL
131 );
132
145 std::unique_ptr<Art> roundedRect(
146 const ArtboardRect& rect_,
147 const double radius_,
148 const Art* const group_ = NULL
149 );
150
164 std::unique_ptr<Art> chamferedRect(
165 const ArtboardRect& rect_,
166 const double dist_,
167 const PathStyle& style_,
168 const Art* const group_ = NULL
169 );
170
183 std::unique_ptr<Art> chamferedRect(
184 const ArtboardRect& rect_,
185 const double dist_,
186 const Art* const group_ = NULL
187 );
188
201 std::unique_ptr<Art> polygon(
202 const ArtboardPointVector& points_,
203 const PathStyle& style_,
204 const Art* const group_ = NULL
205 );
206
218 std::unique_ptr<Art> polygon(const ArtboardPointVector& points_, const Art* const group_ = NULL);
219
234 std::unique_ptr<Art> regularPolygon(
235 const ArtboardPoint& center_,
236 const double radius_,
237 const int16_t sides_,
238 const PathStyle& style_,
239 const Art* const group_ = NULL
240 );
241
255 std::unique_ptr<Art> regularPolygon(
256 const ArtboardPoint& center_,
257 const double radius_,
258 const int16_t sides_,
259 const Art* const group_ = NULL
260 );
261
277 std::unique_ptr<Art> regularPolygon(
278 const ArtboardPoint& center_,
279 const ArtboardPoint& vertex_,
280 const int16_t sides_,
281 const PathStyle& style_,
282 const Art* const group_ = NULL
283 );
284
299 std::unique_ptr<Art> regularPolygon(
300 const ArtboardPoint& center_,
301 const ArtboardPoint& vertex_,
302 const int16_t sides_,
303 const Art* const group_ = NULL
304 );
305
323 std::unique_ptr<Art> ellipse(
324 const ArtboardPoint& source_,
325 const double width_,
326 const double height_,
327 const bool centered_,
328 const PathStyle& style_,
329 const Art* const group_ = NULL
330 );
331
348 std::unique_ptr<Art> ellipse(
349 const ArtboardPoint& source_,
350 const double width_,
351 const double height_,
352 const bool centered_,
353 const Art* const group_ = NULL
354 );
355
371 std::unique_ptr<Art> star(
372 const ArtboardPoint& center_,
373 const uint16_t points_,
374 const double innerRadius_,
375 const double outerRadius_,
376 const PathStyle& style_,
377 const Art* const group_ = NULL
378 );
379
394 std::unique_ptr<Art> star(
395 const ArtboardPoint& center_,
396 const uint16_t points_,
397 const double innerRadius_,
398 const double outerRadius_,
399 const Art* const group_ = NULL
400 );
401
415 std::unique_ptr<Art> triangle(
416 const ArtboardPoint& center_,
417 const double width_,
418 const PathStyle& style_,
419 const Art* const group_ = NULL
420 );
421
434 std::unique_ptr<Art> triangle(
435 const ArtboardPoint& center_,
436 const double width_,
437 const Art* const group_ = NULL
438 );
439
455 std::unique_ptr<Art> shortestArc(
456 const ArtboardPoint& center_,
457 const ArtboardPoint& start_,
458 const ArtboardPoint& end_,
459 const PathStyle& style_,
460 const Art* const group_ = NULL
461 );
462
477 std::unique_ptr<Art> shortestArc(
478 const ArtboardPoint& center_,
479 const ArtboardPoint& start_,
480 const ArtboardPoint& end_,
481 const Art* const group_ = NULL
482 );
483
499 std::unique_ptr<Art> longestArc(
500 const ArtboardPoint& center_,
501 const ArtboardPoint& start_,
502 const ArtboardPoint& end_,
503 const PathStyle& style_,
504 const Art* const group_ = NULL
505 );
506
521 std::unique_ptr<Art> longestArc(
522 const ArtboardPoint& center_,
523 const ArtboardPoint& start_,
524 const ArtboardPoint& end_,
525 const Art* const group_ = NULL
526 );
527
546 std::unique_ptr<Art> arc(
547 const ArtboardPoint& center_,
548 const ArtboardPoint& start_,
549 const ArtboardPoint& end_,
550 const PathStyle& style_,
551 const Art* const group_ = NULL
552 );
553
571 std::unique_ptr<Art> arc(
572 const ArtboardPoint& center_,
573 const ArtboardPoint& start_,
574 const ArtboardPoint& end_,
575 const Art* const group_ = NULL
576 );
577
595 std::unique_ptr<Art> text(
596 const std::string& text_,
597 const ArtboardPoint& where_,
598 const std::string& fontName_,
599 const double fontSize_,
600 const ParagraphJustification just_,
601 const ArtColor& color_,
602 const Art* const group_ = NULL
603 );
604
621 std::unique_ptr<Art> text(
622 const std::string& text_,
623 const ArtboardPoint& where_,
624 const Font& font_,
625 const double fontSize_,
626 const ParagraphJustification just_,
627 const ArtColor& color_,
628 const Art* const group_ = NULL
629 );
630 }
631 }
632}
633
634#endif
635// HDI_CORE_AIP_MODE
636
637#endif
638// __HDI_CORE_DRAW__
Describes the color of art on the artboard.
Definition: hdicoreArtColor.h:40
Handles general art-related functionality.
Definition: hdicoreArt.h:51
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:31
Describes a rectangular area on the Illustrator artboard.
Definition: hdicoreArtboardRect.h:28
Font class to allow for easy font manipulation.
Definition: hdicoreFont.h:183
Describes all styling attributes of a path.
Definition: hdicorePathStyle.h:442
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
ParagraphJustification
Indicates how text should be justified for a text art object.
Definition: hdicoreTypes.h:377
std::unique_ptr< Art > text(const std::string &text_, const ArtboardPoint &where_, const std::string &fontName_, const double fontSize_, const ParagraphJustification just_, const ArtColor &color_, const Art *const group_=NULL)
Draws text at a given point of a given font, size, justification, color, etc.
std::unique_ptr< Art > star(const ArtboardPoint &center_, const uint16_t points_, const double innerRadius_, const double outerRadius_, const PathStyle &style_, const Art *const group_=NULL)
Draws a star with a given number of points, radii, etc. at a given point.
std::unique_ptr< Art > roundedRect(const ArtboardRect &rect_, const double radius_, const PathStyle &style_, const Art *const group_=NULL)
Draws the rounded rectangle indicated by rect_ and radius_ in group_.
std::unique_ptr< Art > point(const ArtboardPoint &loc_, const Art *const group_=NULL)
Draws a single segment point at a given location in the current document.
std::unique_ptr< Art > polygon(const ArtboardPointVector &points_, const PathStyle &style_, const Art *const group_=NULL)
Draws a polygon from a series of points.
std::unique_ptr< Art > longestArc(const ArtboardPoint &center_, const ArtboardPoint &start_, const ArtboardPoint &end_, const PathStyle &style_, const Art *const group_=NULL)
Draws an arc segment (of a circle), whichever direction is the longest length.
std::unique_ptr< Art > ellipse(const ArtboardPoint &source_, const double width_, const double height_, const bool centered_, const PathStyle &style_, const Art *const group_=NULL)
Draws an ellipse from source_ of width_ and height_ in group_ (centered_ determines where source_ is....
std::unique_ptr< Art > line(const ArtboardPoint &start_, const ArtboardPoint &end_, const PathStyle &style_, const Art *const group_=NULL)
Draws a line in group_ from start_ to end_.
std::unique_ptr< Art > chamferedRect(const ArtboardRect &rect_, const double dist_, const PathStyle &style_, const Art *const group_=NULL)
Draws the chamfered rectangle indicated by rect_ and dist_ in group_.
std::unique_ptr< Art > triangle(const ArtboardPoint &center_, const double width_, const PathStyle &style_, const Art *const group_=NULL)
Draws an equilateral triangle of a given (base) width at a given point.
std::unique_ptr< Art > regularPolygon(const ArtboardPoint &center_, const double radius_, const int16_t sides_, const PathStyle &style_, const Art *const group_=NULL)
Draws a regular polygon of a given radius with a given number of sides at a given point.
std::unique_ptr< Art > rect(const ArtboardRect &rect_, const PathStyle &style_, const Art *const group_=NULL)
Draws the rectangle indicated by rect_ in group_.
std::unique_ptr< Art > shortestArc(const ArtboardPoint &center_, const ArtboardPoint &start_, const ArtboardPoint &end_, const PathStyle &style_, const Art *const group_=NULL)
Draws an arc segment (of a circle), whichever direction is the shortest length.
std::unique_ptr< Art > arc(const ArtboardPoint &center_, const ArtboardPoint &start_, const ArtboardPoint &end_, const PathStyle &style_, const Art *const group_=NULL)
Draws an arc segment (of a circle)