![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Organizes all primitive shape drawing functionality into one namespace for convenience. More...
Typedefs | |
typedef std::vector< ArtboardPoint > | ArtboardPointVector |
Functions | |
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 > | 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 > | line (const ArtboardPoint &start_, const ArtboardPoint &end_, const Art *const group_=NULL) |
Draws a line in group_ from start_ to end_. | |
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 > | rect (const ArtboardRect &rect_, const Art *const group_=NULL) |
Draws the rectangle indicated by rect_ in group_. | |
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 > | roundedRect (const ArtboardRect &rect_, const double radius_, const Art *const group_=NULL) |
Draws the rounded rectangle indicated by rect_ and radius_ in group_. | |
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 > | chamferedRect (const ArtboardRect &rect_, const double dist_, const Art *const group_=NULL) |
Draws the chamfered rectangle indicated by rect_ and dist_ in group_. | |
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 > | polygon (const ArtboardPointVector &points_, const Art *const group_=NULL) |
Draws a polygon from a series of points. | |
std::unique_ptr< Art > | regularPolygon (const ArtboardPoint ¢er_, 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 > | regularPolygon (const ArtboardPoint ¢er_, const double radius_, const int16_t sides_, 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 > | regularPolygon (const ArtboardPoint ¢er_, const ArtboardPoint &vertex_, const int16_t sides_, const PathStyle &style_, const Art *const group_=NULL) |
Draws a regular polygon with a given number of sides at a given point, extending to a given vertex point (the center often being the click point and the vertex often being the cursor) | |
std::unique_ptr< Art > | regularPolygon (const ArtboardPoint ¢er_, const ArtboardPoint &vertex_, const int16_t sides_, const Art *const group_=NULL) |
Draws a regular polygon with a given number of sides at a given point, extending to a given vertex point (the center often being the click point and the vertex often being the cursor) | |
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... see arguments list) | |
std::unique_ptr< Art > | ellipse (const ArtboardPoint &source_, const double width_, const double height_, const bool centered_, const Art *const group_=NULL) |
Draws an ellipse from source_ of width_ and height_ in group_ (centered_ determines where source_ is... see arguments list) | |
std::unique_ptr< Art > | star (const ArtboardPoint ¢er_, 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 > | star (const ArtboardPoint ¢er_, const uint16_t points_, const double innerRadius_, const double outerRadius_, const Art *const group_=NULL) |
Draws a star with a given number of points, radii, etc. at a given point. | |
std::unique_ptr< Art > | triangle (const ArtboardPoint ¢er_, 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 > | triangle (const ArtboardPoint ¢er_, const double width_, const Art *const group_=NULL) |
Draws an equilateral triangle of a given (base) width at a given point. | |
std::unique_ptr< Art > | shortestArc (const ArtboardPoint ¢er_, 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 > | shortestArc (const ArtboardPoint ¢er_, const ArtboardPoint &start_, const ArtboardPoint &end_, const Art *const group_=NULL) |
Draws an arc segment (of a circle), whichever direction is the shortest length. | |
std::unique_ptr< Art > | longestArc (const ArtboardPoint ¢er_, 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 > | longestArc (const ArtboardPoint ¢er_, const ArtboardPoint &start_, const ArtboardPoint &end_, const Art *const group_=NULL) |
Draws an arc segment (of a circle), whichever direction is the longest length. | |
std::unique_ptr< Art > | arc (const ArtboardPoint ¢er_, const ArtboardPoint &start_, const ArtboardPoint &end_, const PathStyle &style_, const Art *const group_=NULL) |
Draws an arc segment (of a circle) | |
std::unique_ptr< Art > | arc (const ArtboardPoint ¢er_, const ArtboardPoint &start_, const ArtboardPoint &end_, const Art *const group_=NULL) |
Draws an arc segment (of a circle) | |
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 > | text (const std::string &text_, const ArtboardPoint &where_, const Font &font_, 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. | |
Organizes all primitive shape drawing functionality into one namespace for convenience.
std::unique_ptr< Art > hdi::core::draw::arc | ( | const ArtboardPoint & | center_, |
const ArtboardPoint & | start_, | ||
const ArtboardPoint & | end_, | ||
const Art *const | group_ = NULL |
||
) |
Draws an arc segment (of a circle)
center_ | Center point of the circle (of which the arc is a segment) |
start_ | First point at which the arc segment begins, also controls the radius (distance from center_) |
end_ | Last point at which the arc segment ends |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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)
center_ | Center point of the circle (of which the arc is a segment) |
start_ | First point at which the arc segment begins, also controls the radius (distance from center_) |
end_ | Last point at which the arc segment ends |
style_ | Style for the new arc |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::chamferedRect | ( | const ArtboardRect & | rect_, |
const double | dist_, | ||
const Art *const | group_ = NULL |
||
) |
Draws the chamfered rectangle indicated by rect_ and dist_ in group_.
rect_ | Chamfered rectangle to draw |
dist_ | Distance inward from the corners at which the chamfer will begin |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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_.
rect_ | Chamfered rectangle to draw |
dist_ | Distance inward from the corners at which the chamfer will begin |
style_ | Style for the new rect |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::ellipse | ( | const ArtboardPoint & | source_, |
const double | width_, | ||
const double | height_, | ||
const bool | centered_, | ||
const Art *const | group_ = NULL |
||
) |
Draws an ellipse from source_ of width_ and height_ in group_ (centered_ determines where source_ is... see arguments list)
source_ | Source point for the ellipse; centered_ determines whether this is the top-left or the center of the ellipse |
width_ | Width of the ellipse |
height_ | Height of the ellipse |
centered_ | Whether the ellipse is centered on source_ |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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... see arguments list)
source_ | Source point for the ellipse; centered_ determines whether this is the top-left or the center of the ellipse |
width_ | Width of the ellipse |
height_ | Height of the ellipse |
centered_ | Whether the ellipse is centered on source_ |
style_ | Style for the new ellipse |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::line | ( | const ArtboardPoint & | start_, |
const ArtboardPoint & | end_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a line in group_ from start_ to end_.
start_ | Start point for the line |
end_ | End point for the line |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::line | ( | const ArtboardPoint & | start_, |
const ArtboardPoint & | end_, | ||
const PathStyle & | style_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a line in group_ from start_ to end_.
start_ | Start point for the line |
end_ | End point for the line |
style_ | Style for the new line |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::longestArc | ( | const ArtboardPoint & | center_, |
const ArtboardPoint & | start_, | ||
const ArtboardPoint & | end_, | ||
const Art *const | group_ = NULL |
||
) |
Draws an arc segment (of a circle), whichever direction is the longest length.
center_ | Center point of the circle (of which the arc is a segment) |
start_ | First point at which the arc segment begins, also controls the radius (distance from center_) |
end_ | Last point at which the arc segment ends |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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.
center_ | Center point of the circle (of which the arc is a segment) |
start_ | First point at which the arc segment begins, also controls the radius (distance from center_) |
end_ | Last point at which the arc segment ends |
style_ | Style for the new arc |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::point | ( | const ArtboardPoint & | loc_, |
const Art *const | group_ = NULL |
||
) |
Draws a single segment point at a given location in the current document.
loc_ | Location for the segment point |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::polygon | ( | const ArtboardPointVector & | points_, |
const Art *const | group_ = NULL |
||
) |
Draws a polygon from a series of points.
points_ | Vector of points for the polygon |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::polygon | ( | const ArtboardPointVector & | points_, |
const PathStyle & | style_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a polygon from a series of points.
points_ | Vector of points for the polygon |
style_ | Style for the new art |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::rect | ( | const ArtboardRect & | rect_, |
const Art *const | group_ = NULL |
||
) |
Draws the rectangle indicated by rect_ in group_.
rect_ | Rectangle to draw |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::rect | ( | const ArtboardRect & | rect_, |
const PathStyle & | style_, | ||
const Art *const | group_ = NULL |
||
) |
Draws the rectangle indicated by rect_ in group_.
rect_ | Rectangle to draw |
style_ | Style for the new rect |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::regularPolygon | ( | const ArtboardPoint & | center_, |
const ArtboardPoint & | vertex_, | ||
const int16_t | sides_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a regular polygon with a given number of sides at a given point, extending to a given vertex point (the center often being the click point and the vertex often being the cursor)
center_ | Center point of the polygon |
vertex_ | Vertex point for the polygon (controls radius) |
sides_ | Number of sides for the polygon, in range [3,100] |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::regularPolygon | ( | const ArtboardPoint & | center_, |
const ArtboardPoint & | vertex_, | ||
const int16_t | sides_, | ||
const PathStyle & | style_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a regular polygon with a given number of sides at a given point, extending to a given vertex point (the center often being the click point and the vertex often being the cursor)
center_ | Center point of the polygon |
vertex_ | Vertex point for the polygon (controls radius) |
sides_ | Number of sides for the polygon, in range [3,100] |
style_ | Style for the new art |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::regularPolygon | ( | const ArtboardPoint & | center_, |
const double | radius_, | ||
const int16_t | sides_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a regular polygon of a given radius with a given number of sides at a given point.
center_ | Center point of the polygon |
radius_ | Radius of the polygon, in points |
sides_ | Number of sides for the polygon, in range [3,100] |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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.
center_ | Center point of the polygon |
radius_ | Radius of the polygon, in points |
sides_ | Number of sides for the polygon, in range [3,100] |
style_ | Style for the new art |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::roundedRect | ( | const ArtboardRect & | rect_, |
const double | radius_, | ||
const Art *const | group_ = NULL |
||
) |
Draws the rounded rectangle indicated by rect_ and radius_ in group_.
rect_ | Rounded rectangle to draw |
radius_ | Radius for the corners of the rectangle |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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_.
rect_ | Rounded rectangle to draw |
radius_ | Radius for the corners of the rectangle |
style_ | Style for the new rect |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::shortestArc | ( | const ArtboardPoint & | center_, |
const ArtboardPoint & | start_, | ||
const ArtboardPoint & | end_, | ||
const Art *const | group_ = NULL |
||
) |
Draws an arc segment (of a circle), whichever direction is the shortest length.
center_ | Center point of the circle (of which the arc is a segment) |
start_ | First point at which the arc segment begins, also controls the radius (distance from center_) |
end_ | Last point at which the arc segment ends |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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.
center_ | Center point of the circle (of which the arc is a segment) |
start_ | First point at which the arc segment begins, also controls the radius (distance from center_) |
end_ | Last point at which the arc segment ends |
style_ | Style for the new arc |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::star | ( | const ArtboardPoint & | center_, |
const uint16_t | points_, | ||
const double | innerRadius_, | ||
const double | outerRadius_, | ||
const Art *const | group_ = NULL |
||
) |
Draws a star with a given number of points, radii, etc. at a given point.
center_ | Center point for the star |
points_ | Number of points (tips) in the star |
innerRadius_ | Radius of the star body |
outerRadius_ | Radius of the star tips |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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.
center_ | Center point for the star |
points_ | Number of points (tips) in the star |
innerRadius_ | Radius of the star body |
outerRadius_ | Radius of the star tips |
style_ | Style for the new star |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::text | ( | const std::string & | text_, |
const ArtboardPoint & | where_, | ||
const Font & | font_, | ||
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.
text_ | Value of the string to draw, as UTF-8 |
where_ | Point at which to place it |
fontName_ | Font to use |
fontSize_ | Font size in points (in range 0.1 to 1296.0) |
just_ | Justification |
color_ | Color for the art |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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.
text_ | Value of the string to draw, as UTF-8 |
where_ | Point at which to place it |
fontName_ | Name of the font to use (if not found it will be drawn with the default font for the current locale), as UTF-8 |
fontSize_ | Font size in points (in range 0.1 to 1296.0) |
just_ | Justification |
color_ | Color for the art |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::triangle | ( | const ArtboardPoint & | center_, |
const double | width_, | ||
const Art *const | group_ = NULL |
||
) |
Draws an equilateral triangle of a given (base) width at a given point.
center_ | Center point for the triangle |
width_ | Width of the base of the triangle |
group_ | Group the new art will go in (NULL for top of layer list) |
std::unique_ptr< Art > hdi::core::draw::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.
center_ | Center point for the triangle |
width_ | Width of the base of the triangle |
style_ | Style for the new triangle |
group_ | Group the new art will go in (NULL for top of layer list) |