Board
0.6.devel
|
#include <Shapes.h>
Public Member Functions | |
Arc (double x, double y, double radius, double angle1, double angle2, bool negative, DGtal::Color pen, DGtal::Color fill, double lineWidth, const LineStyle style=SolidStyle, int depthValue=-1) | |
const std::string & | name () const |
void | flushPostscript (std::ostream &stream, const TransformEPS &transform) const |
void | flushSVG (std::ostream &stream, const TransformSVG &transform) const |
void | flushTikZ (std::ostream &stream, const TransformTikZ &transform) const |
![]() | |
Circle (double x, double y, double radius, DGtal::Color pen, DGtal::Color fill, double lineWidth, const LineStyle style=SolidStyle, int depthValue=-1) | |
Point | center () const |
Circle & | rotate (double angle, const Point ¢er) |
Circle | rotated (double angle, const Point ¢er) const |
Circle & | rotate (double angle) |
Circle | rotated (double angle) const |
Circle & | translate (double dx, double dy) |
Circle | translated (double dx, double dy) const |
Shape & | scale (double sx, double sy) |
Shape & | scale (double s) |
Circle | scaled (double sx, double sy) const |
Circle | scaled (double s) const |
void | scaleAll (double s) |
Circle * | clone () const |
![]() | |
Ellipse (double x, double y, double xRadius, double yRadius, DGtal::Color pen, DGtal::Color fill, double lineWidth, const LineStyle lineStyle=SolidStyle, int depthValue=-1) | |
void | flushFIG (std::ostream &stream, const TransformFIG &transform, std::map< DGtal::Color, int > &colormap) 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 |
Protected Attributes | |
double | _angle1 |
double | _angle2 |
bool | _negative |
Static Private Attributes | |
static const std::string | _name |
An arc.
The arc structure.
|
inline |
|
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::Ellipse.
References _angle1, _angle2, LibBoard::Ellipse::_center, LibBoard::Shape::_fillColor, _negative, LibBoard::Shape::_penColor, LibBoard::Ellipse::_xRadius, LibBoard::Shape::filled(), M_PI, LibBoard::Transform::mapX(), LibBoard::TransformEPS::mapY(), LibBoard::Transform::scale(), LibBoard::Point::x, and LibBoard::Point::y.
|
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::Circle.
References _angle2, LibBoard::Ellipse::_center, _negative, LibBoard::Ellipse::_xRadius, LibBoard::Transform::mapX(), LibBoard::TransformSVG::mapY(), LibBoard::Transform::scale(), LibBoard::Shape::svgProperties(), LibBoard::Point::x, and LibBoard::Point::y.
|
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::Circle.
References _angle2, LibBoard::Ellipse::_center, _negative, LibBoard::Ellipse::_xRadius, M_PI, LibBoard::Transform::mapX(), LibBoard::TransformSVG::mapY(), LibBoard::Transform::scale(), LibBoard::Shape::tikzProperties(), LibBoard::Point::x, and LibBoard::Point::y.
|
virtual |
Returns the generic name of the shape (e.g., Circle, Rectangle, etc.)
Reimplemented from LibBoard::Circle.
References _name.
|
protected |
Referenced by Arc(), and flushPostscript().
|
protected |
Referenced by Arc(), flushPostscript(), flushSVG(), and flushTikZ().
|
staticprivate |
|
protected |
Referenced by Arc(), flushPostscript(), flushSVG(), and flushTikZ().