|
| Dot (double x, double y, Color color, double lineWidth=Shape::defaultLineWidth(), int depth=-1) |
|
const std::string & | name () const override |
|
Point | center (LineWidthFlag flage=IgnoreLineWidth) const override |
|
Dot & | rotate (double angle, const Point ¢er) override |
|
Dot | rotated (double angle, const Point ¢er) const |
|
Dot & | rotate (double angle) override |
|
Dot | rotated (double angle) const |
|
Dot & | translate (double dx, double dy) override |
|
Dot | translated (double dx, double dy) const |
|
Dot & | scale (double sx, double sy) override |
|
Dot & | scale (double s) override |
|
Dot | scaled (double sx, double sy) const |
|
Dot | scaled (double s) const |
|
void | scaleAll (double s) override |
|
void | flushPostscript (std::ostream &stream, const TransformEPS &transform) const override |
|
void | flushFIG (std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const override |
|
void | flushSVG (std::ostream &stream, const TransformSVG &transform) const override |
|
void | flushTikZ (std::ostream &stream, const TransformTikZ &transform) const override |
|
Rect | boundingBox (LineWidthFlag) const override |
|
Dot * | clone () const override |
|
| Shape (Color penColor, 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) |
|
Shape & | moveCenter (double x, double y, LineWidthFlag lineWidthFlag=IgnoreLineWidth) |
|
Shape & | moveCenter (Point p, LineWidthFlag lineWidthFlag=IgnoreLineWidth) |
|
Shape & | scaleToWidth (double w, LineWidthFlag lineWidthFlag) |
|
Shape & | scaleToHeight (double h, LineWidthFlag lineWidthFlag) |
|
Rect | bbox (LineWidthFlag) const |
|
Shape & | operator-- () |
|
Shape & | operator++ () |
|
int | depth () const |
|
virtual void | depth (int) |
|
virtual void | shiftDepth (int shift) |
|
const Color & | penColor () const |
|
const Color & | fillColor () const |
|
virtual void | accept (ShapeVisitor &visitor) |
| Accepts a visitor object. More...
|
|
virtual void | accept (const ShapeVisitor &visitor) |
| Accepts a visitor object. 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
} |
|
static void | enableLineWidthScaling () |
|
static void | disableLineWidthScaling () |
|
static void | setLineWidthScaling (bool) |
|
static void | setDefaultLineWidth (double) |
|
static void | setDefaultPenColor (Color) |
|
static void | setDefaultFillColor (Color) |
|
static void | setDefaultLineStyle (Shape::LineStyle) |
|
static void | setDefaultLineCap (Shape::LineCap) |
|
static void | setDefaultLineJoin (Shape::LineJoin) |
|
static double | defaultLineWidth () |
| defaultLineWidth More...
|
|
static Color | defaultPenColor () |
| defaultPenColor More...
|
|
static Color | defaultFillColor () |
| defaultFillColor More...
|
|
static Shape::LineStyle | defaultLineStyle () |
| defaultLineStyle More...
|
|
static Shape::LineCap | defaultLineCap () |
| defaultLineCap More...
|
|
static Shape::LineJoin | defaultLineJoin () |
| defaultLineJoin More...
|
|
void | updateLineWidth (double s) |
|
std::string | svgProperties (const TransformSVG &transform) const |
|
std::string | postscriptProperties (const TransformEPS &transform) const |
|
std::string | tikzProperties (const TransformTikZ &transform) const |
|
static bool | _lineWidthScaling = true |
|
static double | _defaultLineWidth = 1.0 |
|
static Color | _defaultPenColor = Color::Black |
|
static Color | _defaultFillColor = Color::Null |
|
static Shape::LineStyle | _defaultLineStyle = Shape::SolidStyle |
|
static Shape::LineCap | _defaultLineCap = Shape::ButtCap |
|
static Shape::LineJoin | _defaultLineJoin = Shape::MiterJoin |
|
A line between two points.
The dot structure. This primitive ha been reported as "missing" by Manuel Peinado from Spain. Manuel also suggested that rendering a dot consists in drawing a line from a point to the same point with a roundcap style.
- Examples:
- examples/example4.cpp.