Public Member Functions | Private Attributes

DGtal::CustomStyle Struct Reference

#include <DGtalBoard.h>

Inheritance diagram for DGtal::CustomStyle:
Inheritance graph
Collaboration diagram for DGtal::CustomStyle:
Collaboration graph

Public Member Functions

 CustomStyle (std::string classname, DrawableWithDGtalBoard *style)
std::string styleName () const
void selfDraw (DGtalBoard &board) const

Private Attributes

std::string myClassname
< DrawableWithDGtalBoard

Detailed Description

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


dgtalboard-3-custom-classes.cpp, dgtalboard-3-custom-points.cpp, dgtalboard-4-colormaps.cpp, and dgtalboard-5-greedy-dss.cpp.

Constructor & Destructor Documentation

DGtal::CustomStyle::CustomStyle ( std::string  classname,
DrawableWithDGtalBoard style 
) [inline]
classname the name of the class to which the style is associated.
style a pointer on a dynamically allocated style, which is acquired by the class.

Member Function Documentation

void DGtal::CustomStyle::selfDraw ( DGtalBoard board  )  const [inline, virtual]
std::string DGtal::CustomStyle::styleName (  )  const [inline]

Reimplemented from DGtal::DrawWithBoardModifier.

Field Documentation

std::string DGtal::CustomStyle::myClassname [private]

Referenced by selfDraw().

Referenced by selfDraw().

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