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

#include <Board2D.h>

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

Public Member Functions

 SetMode (std::string classname, std::string mode)
- Public Member Functions inherited from DGtal::DrawWithBoardModifier
std::string className () const

Data Fields

std::string myClassname
std::string myMode

Detailed Description

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

Examples:
arithmetic/lower-integer-convex-hull.cpp, io/boards/dgtalBoard2D-2-sets.cpp, io/boards/dgtalBoard2D-4-colormaps.cpp, logoDGtal.cpp, topology/ctopo-1.cpp, and topology/khalimskySpaceScanner.cpp.

Definition at line 260 of file Board2D.h.


Constructor & Destructor Documentation

DGtal::SetMode::SetMode ( std::string  classname,
std::string  mode 
)
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 267 of file Board2D.h.

: myClassname( classname ), myMode( mode )
{}

Field Documentation

std::string DGtal::SetMode::myClassname

Definition at line 276 of file Board2D.h.

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

std::string DGtal::SetMode::myMode

Definition at line 277 of file Board2D.h.

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


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