Board 0.9.6
|
Namespaces | |
namespace | Fonts |
namespace | Tools |
Classes | |
struct | Arrow |
A line between two points with an arrow at one extremity. More... | |
struct | Bezier |
A Bezier curve described by two series of 2D points (curve points and control points). More... | |
struct | Board |
Class for EPS, FIG or SVG drawings. More... | |
struct | BoundingBoxExtractor |
The BoundingBoxExtractor struct may be used to compute the bounding box of a composite shape tree. More... | |
struct | BoundingBoxViewer |
The BoundingBoxViewer struct may be used to display the bounding boxes of the shapes in a composite tree. More... | |
class | Color |
Structure representing an RGB triple. More... | |
struct | CompositeShapeTransform |
A CompositeShapeTransform may be used to duplicate/transform a composite shape tree. More... | |
struct | ConstLeafVisitor |
Leaf visitor may be used to apply a function on each leaf, in back-to-front order. More... | |
struct | ConstShapeVisitor |
A ConstShapeVisitor may visit const shapes of a composite shape tree in back-to-front order. More... | |
struct | Dot |
A line between two points. More... | |
struct | Ellipse |
An ellipse. More... | |
class | Exception |
struct | FillColorExtractor |
The fill-color extractor may be used to retrieve all fill colors. More... | |
struct | GouraudTriangle |
A triangle with shaded filling according to colors given for each vertex. More... | |
struct | Group |
A group of shapes. A group is basically a ShapeList except that when rendered in either an SVG of a FIG file, it is a true compound element. More... | |
struct | Image |
Structure for a bitmap image shape. More... | |
struct | LeafVisitor |
Leaf visitor may be used to apply a function on each leaf, in back-to-front order. More... | |
struct | Line |
A line between two points. More... | |
struct | Path |
A path, according to Postscript and SVG definition. More... | |
struct | PenColorExtractor |
The pen-color extractor may be used to retrieve all pen colors. More... | |
struct | Point |
Struct representing a 2D point. More... | |
struct | Polyline |
A polygonal line described by a series of 2D points. More... | |
struct | Rect |
Struct representing a rectangle on the plane. More... | |
struct | RoughVisitor |
struct | Shape |
Abstract structure for a 2D shape. More... | |
struct | ShapeCounter |
The ShapeCounter struct may be used to count shapes in the composite shapes tree. More... | |
struct | ShapeList |
A group of shapes. More... | |
struct | ShapeVisitor |
A ShapeVisitor visits all shapes in a composite shape tree in back-to-front order. More... | |
struct | ShapeWithStyle |
Abstract structure for a 2D shape. More... | |
struct | ShapeWithStyleVisitor |
Leaf visitor may be used to apply a function on each Shape with style, in back-to-front order. More... | |
struct | Style |
struct | Text |
A piece of text. More... | |
struct | Transform |
struct | TransformEPS |
Structure representing a scaling and translation suitable for an EPS output. More... | |
struct | TransformFIG |
Structure representing a scaling and translation suitable for an XFig output. More... | |
class | TransformMatrix |
struct | TransformSVG |
Structure representing a scaling and translation suitable for an SVG output. More... | |
struct | TransformTikZ |
Structure representing a scaling and translation suitable for an TikZ output. More... | |
Enumerations | |
enum class | Direction { Top , Right , Bottom , Left } |
The Direction enum. More... | |
enum | Alignment { Top , Bottom , Center , Left , Right } |
The Alignment enum. More... | |
enum class | PageSize { BoundingBox = 0 , A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , Letter , Legal , Executive } |
Page sizes. More... | |
enum class | Unit { Point , Inch , Centimeter , Millimeter } |
Length units. More... | |
enum class | ColorSpecification { PenColor , FillColor } |
The ColorSpecification enum. More... | |
enum | LineCap { ButtCap = 0 , RoundCap , SquareCap } |
enum | LineJoin { MiterJoin = 0 , RoundJoin , BevelJoin } |
enum | LineStyle { SolidStyle = 0 , DashStyle , DotStyle , DashDotStyle , DashDotDotStyle , DashDotDotDotStyle } |
enum | LineWidthFlag { IgnoreLineWidth , UseLineWidth } |
enum | SketchFilling { NoFilling , PlainFilling , StraightHachure , CrossingHachure , SketchyHachure , SketchyCrossingHachure } |
Functions | |
Group | grid (Point topLeft, size_t columns, size_t rows, double width, double height, Color penColor, Color fillColor, double lineWidth, const LineStyle style=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin) |
Group | grid (Point topLeft, size_t columns, size_t rows, double width, double height, const Style &style=Style::defaultStyle()) |
Group | cross (Point p, const Style &style=Style::defaultStyle()) |
Group | array (Point topLeft, const std::vector< Color > &colors, unsigned int columns, unsigned int rows, double pixelWidth, double pixelHeight=0.0, double lineWidth=0.0) |
Produce a rectangular color matrix. | |
Group | framed (const Shape &shape, double margin=0.0, const Color &penColor=Style::defaultPenColor(), const Color &fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), LineStyle lineStyle=Style::defaultLineStyle(), int sketchyCount=0) |
Surround a shape with a rectangular frame. | |
Group | tiling (const Shape &shape, Point topLeftCorner, int columns, int rows, double spacing=0.0, LineWidthFlag lineWidthFlag=UseLineWidth) |
Group | circled (const Shape &shape, double margin=0.0, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), LineStyle lineStyle=Style::defaultLineStyle()) |
Surround a shape with a cirle. | |
Polyline | bezierControls (const Bezier &bezier, const Style &style=Style::defaultStyle()) |
Produce a polyline of the Biezer vertices and control points. | |
Group | boardFontText (Point baselineStart, const std::string &text, double size, Color penColor=Style::defaultPenColor(), double lineWidth=0.0) |
Create a text with board's font. | |
std::ostream & | operator<< (std::ostream &out, const Color &color) |
Ellipse | circle (double x, double y, double radius, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), const LineStyle lineStyle=Style::defaultLineStyle()) |
Ellipse | circle (Point center, double radius, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), const LineStyle lineStyle=Style::defaultLineStyle()) |
Ellipse | circle (Point center, double radius, Style style) |
Path | mix (const Path &a, const Path &b, double time) |
Interpolate two paths according to a time (0 is a, 1 is b) | |
Point | mix (const Point &a, const Point &b, double t) |
Return an interpolated point between two points at 'time' t. | |
bool | orthogonal (const Point &a, const Point &b) |
Check if two vectors are orthogonals. | |
Point | operator+ (const Point &a, const Point &b) |
Compute the sum of two vectors. | |
Point | operator- (const Point &a, const Point &b) |
Compute the difference between two vectors. | |
double | operator* (const Point &a, const Point &b) |
Compute the scalar product of two vectors. | |
Point | operator* (const Point &p, double s) |
Compute the product of a vector and a scalar. | |
Point | operator* (double s, const Point &p) |
Compute the product of a vector and a scalar. | |
Point | operator/ (const Point &p, double s) |
Compute the division of a vector by a scalar. | |
bool | operator== (const Point &a, const Point &b) |
Check if two points are equal. | |
bool | operator!= (const Point &a, const Point &b) |
Check if two points are different. | |
bool | almostEqual (const Point &a, const Point &b) |
Check if two points are almost equal according to Tools::almostEqual. | |
Polyline | rectangle (double left, double top, double width, double height, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), const LineStyle lineStyle=Style::defaultLineStyle(), const LineCap cap=Style::defaultLineCap(), const LineJoin join=Style::defaultLineJoin()) |
Polyline | rectangle (double left, double top, double width, double height, const Style &style) |
Polyline | rectangle (const Rect &rect, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), const LineStyle lineStyle=Style::defaultLineStyle(), const LineCap cap=Style::defaultLineCap(), const LineJoin join=Style::defaultLineJoin()) |
Polyline | rectangle (const Rect &rect, const Style &style) |
Polyline | triangle (const Point &p1, const Point &p2, const Point &p3, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), const LineStyle lineStyle=Style::defaultLineStyle(), const LineCap cap=Style::defaultLineCap(), const LineJoin join=Style::defaultLineJoin()) |
Polyline | triangle (const double x1, const double y1, const double x2, const double y2, const double x3, const double y3, Color penColor=Style::defaultPenColor(), Color fillColor=Style::defaultFillColor(), double lineWidth=Style::defaultLineWidth(), const LineStyle lineStyle=Style::defaultLineStyle(), const LineCap cap=Style::defaultLineCap(), const LineJoin join=Style::defaultLineJoin()) |
Polyline | triangle (const Point &p1, const Point &p2, const Point &p3, const Style &style) |
Polyline | mix (const Polyline &a, const Polyline &b, double time) |
Rect | operator|| (const Rect &rectA, const Rect &rectB) |
Rect | operator&& (const Rect &rectA, const Rect &rectB) |
ShapeList | makeRough (const Shape &shape, int repeat=1, SketchFilling filling=PlainFilling, double hachureAngle=0.0, double hachureSpacing=0.0) |
ShapeList | hachuresLinesOrBezier (const std::vector< std::tuple< Point, Point > > &lines, Style style, SketchFilling type) |
std::vector< std::tuple< Point, Point > > | hachures (const Path &path, double spacing, double angle=0.0, bool addHorizontals=false) |
std::vector< std::tuple< Point, Point > > | hachures (const Ellipse &ellipse, double spacing, double angle=0.0) |
ShapeList | hachures (const Ellipse &ellipse, Style style, SketchFilling type, double spacing, double angle=0.0) |
ShapeList | hachures (const Path &path, Style style, SketchFilling type, double spacing, double angle=0.0, bool addHorizontals=false) |
ShapeList | hachures (const Path &path, SketchFilling type, Color color, double width, double spacing, double angle=0.0) |
std::ostream & | operator<< (std::ostream &out, const Style &style) |
Variables | |
const char * | PSFontNames [] |
const char * | xFigDashStylesPS [] |
const char * | xFigDashStylesSVG [] |
const char * | xFigDashStylesTikZ [] |
const char * | XFigPostscriptFontnames [] |
enum LibBoard::Alignment |
|
strong |
|
strong |
enum LibBoard::LineCap |
enum LibBoard::LineJoin |
enum LibBoard::LineStyle |
|
strong |
|
strong |
Check if two points are almost equal according to Tools::almostEqual.
a | A point |
b | A point |
References LibBoard::Tools::almostEqual().
Referenced by LibBoard::RoughVisitor::map().
Group LibBoard::array | ( | Point | topLeft, |
const std::vector< Color > & | colors, | ||
unsigned int | columns, | ||
unsigned int | rows, | ||
double | pixelWidth, | ||
double | pixelHeight = 0.0 , |
||
double | lineWidth = 0.0 |
||
) |
Produce a rectangular color matrix.
topLeft | |
colors | |
columns | |
rows | |
pixelWidth | |
pixelHeight | if zero (default), then it take the same value as pixelHeight |
lineWidth | if zero, pixels are drawn with Color::Null outline (i.e. color is "none") |
References LibBoard::Style::fillColor, MiterJoin, LibBoard::Color::Null, LibBoard::Style::penColor, rectangle(), SolidStyle, SquareCap, LibBoard::Point::x, and LibBoard::Point::y.
Referenced by space_invader().
Polyline LibBoard::bezierControls | ( | const Bezier & | bezier, |
const Style & | style = Style::defaultStyle() |
||
) |
Produce a polyline of the Biezer vertices and control points.
References LibBoard::Path::back(), LibBoard::Path::begin(), LibBoard::Bezier::controls(), LibBoard::Path::Open, LibBoard::Bezier::path(), and LibBoard::Path::points().
Referenced by main().
Group LibBoard::boardFontText | ( | Point | baselineStart, |
const std::string & | text, | ||
double | size, | ||
Color | penColor = Style::defaultPenColor() , |
||
double | lineWidth = 0.0 |
||
) |
Create a text with board's font.
baselineStart | |
text | |
size | |
penColor | |
lineWidth |
References LibBoard::Group::accept(), LibBoard::Rect::bottom(), LibBoard::ShapeList::boundingBox(), LibBoard::Style::fillColor, IgnoreLineWidth, LibBoard::Rect::left, LibBoard::Style::lineCap, LibBoard::Style::lineJoin, LibBoard::Style::lineWidth, LSHOW, LibBoard::Color::Null, LibBoard::Style::penColor, RoundCap, RoundJoin, LibBoard::ShapeList::scaled(), text(), LibBoard::ShapeList::translate(), LibBoard::Point::x, and LibBoard::Point::y.
Referenced by LeaveBox(), main(), merge(), rough(), and text().
Ellipse LibBoard::circle | ( | double | x, |
double | y, | ||
double | radius, | ||
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
const LineStyle | lineStyle = Style::defaultLineStyle() |
||
) |
References LibBoard::Ellipse::setCircleFlag().
Referenced by circled(), LibBoard::Board::drawCircle(), LibBoard::Board::fillCircle(), generateGroup(), main(), rough(), and strikeOut().
Ellipse LibBoard::circle | ( | Point | center, |
double | radius, | ||
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
const LineStyle | lineStyle = Style::defaultLineStyle() |
||
) |
References LibBoard::Ellipse::setCircleFlag().
References LibBoard::Ellipse::setCircleFlag().
Group LibBoard::circled | ( | const Shape & | shape, |
double | margin = 0.0 , |
||
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
LineStyle | lineStyle = Style::defaultLineStyle() |
||
) |
Surround a shape with a cirle.
shape | A shape |
margin | Space between the shape and the circle |
penColor | Pen color |
fillColor | Fill color |
lineWidth | Line width |
lineStyle | Line style |
References LibBoard::Shape::boundingBox(), LibBoard::Rect::center(), circle(), LibBoard::Rect::diameter(), and UseLineWidth.
Referenced by main().
Group LibBoard::cross | ( | Point | p, |
const Style & | style = Style::defaultStyle() |
||
) |
Make a small cross
p | |
style |
References cross(), LibBoard::Style::lineWidth, and LibBoard::Point::translated().
Group LibBoard::framed | ( | const Shape & | shape, |
double | margin = 0.0 , |
||
const Color & | penColor = Style::defaultPenColor() , |
||
const Color & | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
LineStyle | lineStyle = Style::defaultLineStyle() , |
||
int | sketchyCount = 0 |
||
) |
Surround a shape with a rectangular frame.
shape | A shape |
margin | Space between the shape and the frame |
penColor | Frame color |
fillColor | Fill color |
lineWidth | Line width |
lineStyle | Line style |
sketchyCount | If set to zero, the frame is a straight one, otherwise a sketchy frame is produced with given repetition count. |
References LibBoard::Shape::bbox(), LibBoard::Rect::grow(), makeRough(), NoFilling, rectangle(), and UseLineWidth.
Referenced by LeaveBox(), main(), rough(), and text().
Group LibBoard::grid | ( | Point | topLeft, |
size_t | columns, | ||
size_t | rows, | ||
double | width, | ||
double | height, | ||
Color | penColor, | ||
Color | fillColor, | ||
double | lineWidth, | ||
const LineStyle | style = SolidStyle , |
||
const LineCap | cap = ButtCap , |
||
const LineJoin | join = MiterJoin |
||
) |
Build a grid with specified number of rows and columns and a given size.
topLeft | Coordinates of the top left point of the grid. |
columns | Number of columns of the grid. |
rows | Number of rows of the grid. |
width | Width of the grid. |
height | Height of the grid. |
penColor | Color of the lines. |
fillColor | Background color. |
lineWidth | Line width. |
style | Line style (default is Board::SolidStyle). |
cap | Line cap (default is Board::ButtCap). |
join | Line join (default is Board::MiterJoin). |
References rectangle(), RoundCap, LibBoard::Line::translate(), LibBoard::Point::x, and LibBoard::Point::y.
Group LibBoard::grid | ( | Point | topLeft, |
size_t | columns, | ||
size_t | rows, | ||
double | width, | ||
double | height, | ||
const Style & | style = Style::defaultStyle() |
||
) |
Build a grid with specified number of rows and columns and a given size.
topLeft | Coordinates of the top left point of the grid. |
columns | Number of columns of the grid. |
rows | Number of rows of the grid. |
width | Width of the grid. |
height | Height of the grid. |
style | Shape style |
References LibBoard::Style::fillColor, grid(), LibBoard::Style::lineCap, LibBoard::Style::lineJoin, LibBoard::Style::lineStyle, LibBoard::Style::lineWidth, and LibBoard::Style::penColor.
std::vector< std::tuple< Point, Point > > LibBoard::hachures | ( | const Ellipse & | ellipse, |
double | spacing, | ||
double | angle = 0.0 |
||
) |
References LibBoard::Ellipse::angle(), LibBoard::Rect::bottom(), LibBoard::Ellipse::boundingBox(), LibBoard::Ellipse::center(), IgnoreLineWidth, LibBoard::Shape::moveCenter(), LibBoard::Ellipse::rotate(), LibBoard::Tools::solveQuadratic(), LibBoard::Tools::square(), LibBoard::Rect::top, LibBoard::Ellipse::xRadius(), and LibBoard::Ellipse::yRadius().
ShapeList LibBoard::hachures | ( | const Ellipse & | ellipse, |
Style | style, | ||
SketchFilling | type, | ||
double | spacing, | ||
double | angle = 0.0 |
||
) |
References CrossingHachure, hachures(), hachuresLinesOrBezier(), M_PI_2, SketchyCrossingHachure, SketchyHachure, and StraightHachure.
std::vector< std::tuple< Point, Point > > LibBoard::hachures | ( | const Path & | path, |
double | spacing, | ||
double | angle = 0.0 , |
||
bool | addHorizontals = false |
||
) |
References LibBoard::Path::center(), LibBoard::Path::rotated(), and LibBoard::Path::size().
ShapeList LibBoard::hachures | ( | const Path & | path, |
SketchFilling | type, | ||
Color | color, | ||
double | width, | ||
double | spacing, | ||
double | angle = 0.0 |
||
) |
ShapeList LibBoard::hachures | ( | const Path & | path, |
Style | style, | ||
SketchFilling | type, | ||
double | spacing, | ||
double | angle = 0.0 , |
||
bool | addHorizontals = false |
||
) |
References CrossingHachure, hachures(), hachuresLinesOrBezier(), M_PI_2, SketchyCrossingHachure, SketchyHachure, and StraightHachure.
ShapeList LibBoard::hachuresLinesOrBezier | ( | const std::vector< std::tuple< Point, Point > > & | lines, |
Style | style, | ||
SketchFilling | type | ||
) |
References LibBoard::Style::fillColor, LibBoard::Color::Null, and SketchyHachure.
Referenced by hachures(), and hachures().
ShapeList LibBoard::makeRough | ( | const Shape & | shape, |
int | repeat = 1 , |
||
SketchFilling | filling = PlainFilling , |
||
double | hachureAngle = 0.0 , |
||
double | hachureSpacing = 0.0 |
||
) |
Interpolate two paths according to a time (0 is a, 1 is b)
a | First path |
b | Second path |
time | Interpolation time in (0 is a, 1 is b) |
References LibBoard::Path::begin(), LibBoard::Path::end(), LibBoard::Tools::error, mix(), LibBoard::Path::openClosed(), LibBoard::Path::push_back(), and LibBoard::Path::size().
Referenced by diamond(), divided(), interpolate(), LibBoard::RoughVisitor::map(), LibBoard::RoughVisitor::map(), LibBoard::RoughVisitor::map(), merge(), mix(), mix(), Sierpinksi(), and LibBoard::Bezier::smoothedPolyline().
Return an interpolated point between two points at 'time' t.
a | First point. |
b | Second point. |
t | Interpolation time in [0,1]. 0 is a, 1 is b. |
Return an interpolated polyline between two, according to a time.
a | First polyline |
b | Second polyline |
time | Time (0 is a, 1 is b) |
References LibBoard::ShapeWithStyle::fillColor(), LibBoard::ShapeWithStyle::lineCap(), LibBoard::ShapeWithStyle::lineJoin(), LibBoard::ShapeWithStyle::lineStyle(), LibBoard::ShapeWithStyle::lineWidth(), LibBoard::Tools::mix(), mix(), LibBoard::Color::mixRGB(), LibBoard::Polyline::path(), LibBoard::ShapeWithStyle::penColor(), and LibBoard::Tools::warning.
Check if two points are different.
a | A point |
b | A point |
References LibBoard::Point::x, and LibBoard::Point::y.
Computes the intersection of two bounding boxes.
rectA | A first rectangle. |
rectB | A second rectangle. |
References LibBoard::Rect::height, LibBoard::Rect::left, LibBoard::Rect::top, and LibBoard::Rect::width.
Compute the scalar product of two vectors.
a | A vector |
b | A vector |
References LibBoard::Point::x, and LibBoard::Point::y.
Compute the product of a vector and a scalar.
p | A vector |
s | A scalar |
References LibBoard::Point::x, and LibBoard::Point::y.
Compute the product of a vector and a scalar.
s | A scalar |
p | A vector |
References LibBoard::Point::x, and LibBoard::Point::y.
Compute the sum of two vectors.
a | A vector |
b | A vector |
References LibBoard::Point::x, and LibBoard::Point::y.
Compute the difference between two vectors.
a | A vector |
b | A vector |
References LibBoard::Point::x, and LibBoard::Point::y.
Compute the division of a vector by a scalar.
p | A vector |
s | A scalar |
References LibBoard::Point::x, and LibBoard::Point::y.
std::ostream & LibBoard::operator<< | ( | std::ostream & | out, |
const Color & | color | ||
) |
References LibBoard::Color::flush().
std::ostream & LibBoard::operator<< | ( | std::ostream & | out, |
const Style & | style | ||
) |
Check if two points are equal.
a | A point |
b | A point |
References LibBoard::Point::x, and LibBoard::Point::y.
Computes the bounding box of two bounding boxes.
rectA | A first rectangle. |
rectB | A second rectangle. |
References LibBoard::Rect::height, LibBoard::Rect::isNull(), LibBoard::Rect::left, LibBoard::Rect::top, and LibBoard::Rect::width.
Check if two vectors are orthogonals.
a | A vector |
b | A vector |
References LibBoard::Tools::almostEqual().
Referenced by LibBoard::Polyline::flushSVG().
Polyline LibBoard::rectangle | ( | const Rect & | rect, |
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
const LineStyle | lineStyle = Style::defaultLineStyle() , |
||
const LineCap | cap = Style::defaultLineCap() , |
||
const LineJoin | join = Style::defaultLineJoin() |
||
) |
References LibBoard::Rect::height, LibBoard::Rect::left, rectangle(), LibBoard::Rect::top, and LibBoard::Rect::width.
Polyline LibBoard::rectangle | ( | double | left, |
double | top, | ||
double | width, | ||
double | height, | ||
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
const LineStyle | lineStyle = Style::defaultLineStyle() , |
||
const LineCap | cap = Style::defaultLineCap() , |
||
const LineJoin | join = Style::defaultLineJoin() |
||
) |
References LibBoard::Path::Closed, and LibBoard::Polyline::setRectangleFlag().
Referenced by array(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawRectangle(), LibBoard::Board::fillRectangle(), LibBoard::Image::flushFIG(), framed(), generateGroup(), grid(), hachures(), LibBoard::Image::Image(), main(), merge(), polygons(), rectangle(), rectangle(), rectangle(), rough(), LibBoard::Board::saveEPS(), LibBoard::Board::saveFIG(), LibBoard::Board::saveSVG(), LibBoard::Board::saveTikZ(), and LibBoard::BoundingBoxExtractor::visit().
Group LibBoard::tiling | ( | const Shape & | shape, |
Point | topLeftCorner, | ||
int | columns, | ||
int | rows, | ||
double | spacing = 0.0 , |
||
LineWidthFlag | lineWidthFlag = UseLineWidth |
||
) |
Builds a tiling based on a shape by repeating this shape along its bounding box.
shape | A shape to be repeated. |
topLeftCorner | Position of the top left corner of the tiling. |
columns | Number of columns of the tiling. |
rows | Number of rows of the tiling. |
spacing | Spacing between rows and columns. |
lineWidthFlag | Should the line width be considered when computing bounding boxes. |
References LibBoard::Shape::boundingBox(), LibBoard::Shape::clone(), LibBoard::Rect::height, LibBoard::Rect::left, LibBoard::Rect::top, LibBoard::Shape::translate(), LibBoard::Rect::width, LibBoard::Point::x, and LibBoard::Point::y.
Referenced by main().
Polyline LibBoard::triangle | ( | const double | x1, |
const double | y1, | ||
const double | x2, | ||
const double | y2, | ||
const double | x3, | ||
const double | y3, | ||
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
const LineStyle | lineStyle = Style::defaultLineStyle() , |
||
const LineCap | cap = Style::defaultLineCap() , |
||
const LineJoin | join = Style::defaultLineJoin() |
||
) |
References LibBoard::Path::Closed.
Polyline LibBoard::triangle | ( | const Point & | p1, |
const Point & | p2, | ||
const Point & | p3, | ||
Color | penColor = Style::defaultPenColor() , |
||
Color | fillColor = Style::defaultFillColor() , |
||
double | lineWidth = Style::defaultLineWidth() , |
||
const LineStyle | lineStyle = Style::defaultLineStyle() , |
||
const LineCap | cap = Style::defaultLineCap() , |
||
const LineJoin | join = Style::defaultLineJoin() |
||
) |
References LibBoard::Path::Closed.
Referenced by divided(), LibBoard::Arrow::flushPostscript(), LibBoard::Arrow::flushSVG(), and main().
const char * LibBoard::PSFontNames |
Referenced by LibBoard::Text::flushPostscript(), and LibBoard::Text::flushSVG().
const char * LibBoard::xFigDashStylesPS |
Referenced by LibBoard::Style::postscriptProperties().
const char * LibBoard::xFigDashStylesSVG |
Referenced by LibBoard::Style::svgProperties().
const char * LibBoard::xFigDashStylesTikZ |
Referenced by LibBoard::Style::tikzProperties().
|
extern |