31 #if defined(Board2D_RECURSES)
32 #error Recursive header files inclusion detected in Board2D.h
33 #else // defined(Board2D_RECURSES)
35 #define Board2D_RECURSES
37 #if !defined Board2D_h
44 #include "Board/Board.h"
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/CountedPtr.h"
47 #include "DGtal/io/Color.h"
78 typedef std::map< std::string,CountedPtr<DrawableWithBoard2D> >
StyleMapping;
124 std::string
getMode(
const std::string & objectName )
const;
134 template <
typename TDrawableWithBoard2D>
199 return "DrawWithBoardModifier";
230 return "CustomStyle";
254 SetMode( std::string classname, std::string mode )
290 const Color & fillColor )
291 : myPenColor( penColor ), myFillColor( fillColor )
322 : myPenColor( penColor )
352 : myFillColor( fillColor )
401 const Color & fillColor,
402 double lineWidth = 1.0,
406 : myPenColor( penColor ), myFillColor( fillColor ),
407 myLineWidth( lineWidth ),
408 myLineStyle( lineStyle ), myLineCap ( lineCap ), myLineJoin( lineJoin )
428 #include "DGtal/io/Display2DFactory.h"
429 #include "DGtal/io/Style2DFactory.h"
430 #include "DGtal/io/boards/Board2D.ih"
435 #endif // !defined Board2D_h
437 #undef Board2D_RECURSES
438 #endif // else defined(Board2D_RECURSES)
Abstract structure for a 2D shape.
std::map< std::string, std::string > ModeMapping
Board & setLineWidth(double width)
void selfDisplay(std::ostream &out) const
Custom style class redefining the pen attributes. You may use Board2D::Color::None for transparent co...
CustomPenColor(const Color &penColor)
std::string className() const
Class for EPS, FIG or SVG drawings.
Custom style class redefining the fill color. You may use Board2D::Color::None for transparent color...
Board & setLineJoin(Shape::LineJoin join)
Board2D(const Color &aBackgroundColor=Color::None)
CustomFillColor(const Color &fillColor)
virtual void setStyle(Board2D &aboard) const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
virtual void setStyle(Board2D &aboard) const
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
CountedPtr< DrawableWithBoard2D > myStyle
CustomPen(const Color &penColor, const Color &fillColor, double lineWidth=1.0, Board2D::Shape::LineStyle lineStyle=Board2D::Shape::SolidStyle, Board2D::Shape::LineCap lineCap=Board2D::Shape::ButtCap, Board2D::Shape::LineJoin lineJoin=Board2D::Shape::MiterJoin)
CustomStyle(std::string classname, DrawableWithBoard2D *style)
std::string getMode(const std::string &objectName) const
Board & setLineStyle(Shape::LineStyle style)
virtual void setStyle(Board2D &aboard) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Board2D & operator<<(const TDrawableWithBoard2D &object)
Board & setFillColor(const DGtal::Color &color)
Board2D::Shape::LineCap myLineCap
std::string className() const
Board2D::Shape::LineStyle myLineStyle
CustomColors(const Color &penColor, const Color &fillColor)
std::map< std::string, CountedPtr< DrawableWithBoard2D > > StyleMapping
virtual void setStyle(Board2D &aboard) const
Modifier class in a Board2D stream. Useful to choose your own mode for a given class. Realizes the concept CDrawableWithBoard2D.
Board2D::Shape::LineJoin myLineJoin
Structure representing an RGB triple with alpha component.
Board & setPenColor(const DGtal::Color &color)
Board & setLineCap(Shape::LineCap cap)
SetMode(std::string classname, std::string mode)
Custom style class redefining the pen color. You may use Board2D::Color::None for transparent color...
Board2D & operator=(const Board2D &other)
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)...