31#if defined(Board2D_RECURSES)
32#error Recursive header files inclusion detected in Board2D.h
35#define Board2D_RECURSES
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 )
401 const Color & fillColor,
402 double lineWidth = 1.0,
428#include "DGtal/io/Display2DFactory.h"
429#include "DGtal/io/Style2DFactory.h"
430#include "DGtal/io/boards/Board2D.ih"
437#undef Board2D_RECURSES
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
std::map< std::string, CountedPtr< DrawableWithBoard2D > > StyleMapping
std::string getMode(const std::string &objectName) const
void selfDisplay(std::ostream &out) const
Board2D & operator<<(const TDrawableWithBoard2D &object)
std::map< std::string, std::string > ModeMapping
Board2D(const Color &aBackgroundColor=Color::None)
Board2D & operator=(const Board2D &other)
Structure representing an RGB triple with alpha component.
Aim: Smart pointer based on reference counts.
Class for EPS, FIG or SVG drawings.
Board & setPenColor(const DGtal::Color &color)
Board & setLineCap(Shape::LineCap cap)
Board & setLineJoin(Shape::LineJoin join)
Board & setFillColor(const DGtal::Color &color)
Board & setLineWidth(double width)
Board & setLineStyle(Shape::LineStyle style)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
virtual void setStyle(Board2D &aboard) const
CustomColors(const Color &penColor, const Color &fillColor)
Custom style class redefining the fill color. You may use Board2D::Color::None for transparent color.
virtual void setStyle(Board2D &aboard) const
CustomFillColor(const Color &fillColor)
Custom style class redefining the pen color. You may use Board2D::Color::None for transparent color.
CustomPenColor(const Color &penColor)
virtual void setStyle(Board2D &aboard) const
Custom style class redefining the pen attributes. You may use Board2D::Color::None for transparent co...
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)
Board2D::Shape::LineStyle myLineStyle
Board2D::Shape::LineJoin myLineJoin
virtual void setStyle(Board2D &aboard) const
Board2D::Shape::LineCap myLineCap
std::string className() const
CountedPtr< DrawableWithBoard2D > myStyle
CustomStyle(std::string classname, DrawableWithBoard2D *style)
std::string className() const
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....
SetMode(std::string classname, std::string mode)
Abstract structure for a 2D shape.