DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Data Fields
DGtal::CustomStyle Struct Reference

#include <Board2D.h>

Inheritance diagram for DGtal::CustomStyle:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CustomStyle:
Collaboration graph
[legend]

Public Member Functions

 CustomStyle (std::string classname, DrawableWithBoard2D *style)
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.

Examples:
arithmetic/lower-integer-convex-hull.cpp, io/boards/dgtalBoard2D-3-custom-classes.cpp, io/boards/dgtalBoard2D-3-custom-points.cpp, io/boards/dgtalBoard2D-4-colormaps.cpp, logoDGtal.cpp, topology/ctopo-1.cpp, and topology/ctopo-2.cpp.

Definition at line 230 of file Board2D.h.


Constructor & Destructor Documentation

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 237 of file Board2D.h.

: myClassname( classname ), myStyle( style )
{}

Member Function Documentation

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

Reimplemented from DGtal::DrawWithBoardModifier.

Definition at line 241 of file Board2D.h.

{
return "CustomStyle";
}

Field Documentation

std::string DGtal::CustomStyle::myClassname

Definition at line 251 of file Board2D.h.

Referenced by DGtal::Display2DFactory::draw().

CountedPtr<DrawableWithBoard2D> DGtal::CustomStyle::myStyle

Definition at line 252 of file Board2D.h.

Referenced by DGtal::Display2DFactory::draw().


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