|
DGtal 2.0.0
|
A quadratic Bezier curve having 3 control points. NB. It is also a parabola arc. More...
#include <Board/Shapes.h>
Public Member Functions | |
| QuadraticBezierCurve (double x1, double y1, double x2, double y2, double x3, double y3, DGtal::Color pen, DGtal::Color fill, double lineWidth, const LineStyle style=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depthValue=-1) | |
| void | flushPostscript (std::ostream &stream, const TransformEPS &transform) const |
| void | flushFIG (std::ostream &stream, const TransformFIG &transform, std::map< DGtal::Color, int > &colormap) const |
| void | flushSVG (std::ostream &stream, const TransformSVG &transform) const |
| void | flushCairo (cairo_t *cr, const TransformCairo &transform) const |
| void | flushTikZ (std::ostream &stream, const TransformTikZ &transform) const |
| const std::string & | name () const |
| Public Member Functions inherited from LibBoard::Triangle | |
| Triangle (const Point &p1, const Point &p2, const Point &p3, DGtal::Color pen, DGtal::Color fill, double lineWidth, const LineStyle style=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depthValue=-1) | |
| Triangle (const double x1, const double y1, const double x2, const double y2, const double x3, const double y3, DGtal::Color pen, DGtal::Color fill, double lineWidth, const LineStyle style=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depthValue=-1) | |
| const std::string & | name () const |
| Triangle | rotated (double angle) const |
| Triangle | translated (double dx, double dy) const |
| Triangle | scaled (double sx, double sy) const |
| Triangle | scaled (double s) const |
| Triangle * | clone () const |
| Public Member Functions inherited from LibBoard::Polyline | |
| Polyline (const std::vector< Point > &points, bool closed, DGtal::Color penColor, DGtal::Color fillColor, double lineWidth, const LineStyle lineStyle=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depth=-1) | |
| Polyline (const Path &path, DGtal::Color penColor, DGtal::Color fillColor, double lineWidth, const LineStyle lineStyle=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depth=-1) | |
| Polyline (bool closed, DGtal::Color penColor, DGtal::Color fillColor, double lineWidth, const LineStyle lineStyle=SolidStyle, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depth=-1) | |
| Point | center () const |
| Polyline & | operator<< (const Point &p) |
| Point & | operator[] (const unsigned int n) |
| Polyline & | rotate (double angle, const Point ¢er) |
| Polyline | rotated (double angle, const Point ¢er) const |
| Polyline & | rotate (double angle) |
| Polyline | rotated (double angle) const |
| Polyline & | translate (double dx, double dy) |
| Polyline | translated (double dx, double dy) const |
| Shape & | scale (double sx, double sy) |
| Shape & | scale (double s) |
| Polyline | scaled (double sx, double sy) const |
| Polyline | scaled (double s) const |
| void | scaleAll (double s) |
| Rect | boundingBox () const |
| Public Member Functions inherited from LibBoard::Shape | |
| Shape (DGtal::Color penColor, DGtal::Color fillColor, double lineWidth, LineStyle style, const LineCap cap, const LineJoin join, int depth) | |
| virtual | ~Shape () |
| bool | filled () const |
| Shape & | rotateDeg (double angle, const Point ¢er) |
| Shape & | rotateDeg (double angle) |
| Rect | bbox () |
| Shape & | operator-- () |
| Shape & | operator++ () |
| int | depth () const |
| virtual void | depth (int) |
| virtual void | shiftDepth (int shift) |
| const DGtal::Color & | penColor () const |
| const DGtal::Color & | fillColor () const |
Static Private Attributes | |
| static const std::string | _name |
Additional Inherited Members | |
| Public Types inherited from LibBoard::Shape | |
| enum | LineCap { ButtCap = 0 , RoundCap , SquareCap } |
| enum | LineJoin { MiterJoin = 0 , RoundJoin , BevelJoin } |
| enum | LineStyle { SolidStyle = 0 , DashStyle , DotStyle , DashDotStyle , DashDotDotStyle , DashDotDotDotStyle } |
| Protected Member Functions inherited from LibBoard::Shape | |
| std::string | svgProperties (const TransformSVG &transform) const |
| std::string | postscriptProperties () const |
| void | setCairoDashStyle (cairo_t *cr, LineStyle type) const |
| std::string | tikzProperties (const TransformTikZ &transform) const |
| Protected Attributes inherited from LibBoard::Polyline | |
| Path | _path |
| Protected Attributes inherited from LibBoard::Shape | |
| int | _depth |
| DGtal::Color | _penColor |
| DGtal::Color | _fillColor |
| double | _lineWidth |
| LineStyle | _lineStyle |
| LineCap | _lineCap |
| LineJoin | _lineJoin |
A quadratic Bezier curve having 3 control points. NB. It is also a parabola arc.
Definition at line 1160 of file Board/Shapes.h.
|
inline |
Constructs a curve.
| x1 | First coordinate of the start point. |
| y1 | Second coordinate of the start point. |
| x2 | First coordinate of the middle point. |
| y2 | Second coordinate of the middle point. |
| x3 | First coordinate of the end point. |
| y3 | Second coordinate of the end point. |
| pen | Color of the curve. |
| fill | Color of the interior. |
| lineWidth | The line thickness. |
| style | Curve style |
| cap | Curve cap |
| join | Curve join |
| depthValue | The depth of the line. |
Definition at line 1179 of file Board/Shapes.h.
References LibBoard::Shape::ButtCap, LibBoard::Shape::MiterJoin, LibBoard::Shape::SolidStyle, and LibBoard::Triangle::Triangle().
|
virtual |
Writes the cairo code of the shape in a cairo drawing context according to a transform.
| cr | The cairo drawing context. |
| transform | A 2D transform to be applied. |
Reimplemented from LibBoard::Polyline.
Definition at line 2448 of file Shapes.cpp.
References LibBoard::Shape::_fillColor, LibBoard::Shape::_lineCap, LibBoard::Shape::_lineJoin, LibBoard::Shape::_lineStyle, LibBoard::Shape::_lineWidth, LibBoard::Polyline::_path, LibBoard::Shape::_penColor, LibBoard::Shape::filled(), DGtal::Color::None, and LibBoard::Shape::setCairoDashStyle().
|
virtual |
Writes the FIG code of the shape in a stream according to a transform.
Reimplemented from LibBoard::Polyline.
Definition at line 2416 of file Shapes.cpp.
|
virtual |
Writes the EPS code of the shape in a stream according to a transform.
| stream | The output stream. |
| transform | A 2D transform to be applied. |
Reimplemented from LibBoard::Polyline.
Definition at line 2366 of file Shapes.cpp.
References LibBoard::Shape::_fillColor, LibBoard::Polyline::_path, LibBoard::Shape::_penColor, DGtal::Color::None, and LibBoard::Shape::postscriptProperties().
|
virtual |
Writes the SVG code of the shape in a stream according to a transform.
| stream | The output stream. |
| transform | A 2D transform to be applied. |
Reimplemented from LibBoard::Polyline.
Definition at line 2425 of file Shapes.cpp.
References LibBoard::Polyline::_path, and LibBoard::Shape::svgProperties().
|
virtual |
Writes the TikZ code of the shape in a stream according to a transform.
| stream | The output stream. |
| transform | A 2D transform to be applied. |
Reimplemented from LibBoard::Polyline.
Definition at line 2496 of file Shapes.cpp.
References LibBoard::Polyline::_path, and LibBoard::Shape::tikzProperties().
|
virtual |
Returns the name of the shape (QuadraticBezierCurve)
Reimplemented from LibBoard::Polyline.
Definition at line 2360 of file Shapes.cpp.
References _name.
|
staticprivate |