DGtal  1.5.beta
DGtal::CustomStyle Struct Reference

#include <DGtal/io/boards/Board2D.h>

Inheritance diagram for DGtal::CustomStyle:
[legend]

Public Member Functions

 CustomStyle (std::string classname, DrawableWithBoard2D *style)
 
std::string className () const
 
- Public Member Functions inherited from DGtal::DrawWithBoardModifier
std::string className () const
 

Data Fields

std::string myClassname
 
CountedPtr< DrawableWithBoard2DmyStyle
 

Detailed Description

Modifier class in a Board2D stream. Useful to choose your own style for a given class. Realizes the concept CDrawableWithBoard2D.

Definition at line 217 of file Board2D.h.

Constructor & Destructor Documentation

◆ CustomStyle()

DGtal::CustomStyle::CustomStyle ( std::string  classname,
DrawableWithBoard2D style 
)
inline
Parameters
classnamethe name of the class to which the style is associated.
stylea pointer on a dynamically allocated style, which is acquired by the class.

Definition at line 224 of file Board2D.h.

225  : myClassname( classname ), myStyle( style )
226  {}
std::string myClassname
Definition: Board2D.h:238
CountedPtr< DrawableWithBoard2D > myStyle
Definition: Board2D.h:239

Member Function Documentation

◆ className()

std::string DGtal::CustomStyle::className ( ) const
inline

Definition at line 228 of file Board2D.h.

229  {
230  return "CustomStyle";
231  }

Field Documentation

◆ myClassname

std::string DGtal::CustomStyle::myClassname

Definition at line 238 of file Board2D.h.

◆ myStyle

CountedPtr<DrawableWithBoard2D> DGtal::CustomStyle::myStyle

Definition at line 239 of file Board2D.h.


The documentation for this struct was generated from the following file: