Public Member Functions |
| | 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 |
| | 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 & | translate (double dx, double dy) |
| Shape & | scale (double sx, double sy) |
| Shape & | scale (double s) |
| void | scaleAll (double s) |
| 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 | flushTikZ (std::ostream &stream, const TransformTikZ &transform) const |
| Rect | boundingBox () const |
| | 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 |
A triangle. Basically a Polyline with a convenient constructor.
The Triangle structure.