DGtal  1.0.beta
Public Member Functions | Data Fields
DGtal::CustomStyle Struct Reference

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

Inheritance diagram for DGtal::CustomStyle:
[legend]
Collaboration 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.

Examples:
arithmetic/lower-integer-convex-hull.cpp, dec/exampleDiscreteExteriorCalculusChladni.cpp, dec/exampleDiscreteExteriorCalculusSolve.cpp, dec/examplePropagation.cpp, geometry/curves/convex-and-concave-parts.cpp, geometry/curves/exampleAlphaThickSegment.cpp, geometry/curves/exampleAlphaThickSegmentNoisy.cpp, geometry/curves/exampleArithmeticalDSS.cpp, geometry/curves/greedy-dss-decomposition.cpp, geometry/curves/greedyAlphaThickDecomposition.cpp, geometry/surfaces/dvcm-2d-curvature.cpp, geometry/tools/exampleAlphaShape.cpp, geometry/tools/exampleConvexHull2D.cpp, geometry/volumes/distance/distancetransform2D.cpp, geometry/volumes/distance/exampleFMM2D.cpp, geometry/volumes/distance/toricdomainvolumetric.cpp, geometry/volumes/distance/voronoimap2D.cpp, geometry/volumes/dvcm-2d.cpp, graph/graphTraversal.cpp, io/boards/dgtalBoard2D-3-custom-classes.cpp, io/boards/dgtalBoard2D-3-custom-points.cpp, io/boards/dgtalBoard2D-4-colormaps.cpp, io/boards/logoDGtal.cpp, shapes/exampleEuclideanShapesDecorator.cpp, topology/ctopo-1.cpp, topology/ctopo-2.cpp, topology/ctopo-fillContours.cpp, topology/cubical-complex-illustrations.cpp, topology/digitalSetToCubicalComplexes2D.cpp, topology/generateSimplicityTables2D.cpp, and tutorial-examples/freemanChainFromImage.cpp.

Definition at line 217 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 224 of file Board2D.h.

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

Member Function Documentation

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

Definition at line 228 of file Board2D.h.

229  {
230  return "CustomStyle";
231  }

Field Documentation

std::string DGtal::CustomStyle::myClassname

Definition at line 238 of file Board2D.h.

CountedPtr<DrawableWithBoard2D> DGtal::CustomStyle::myStyle

Definition at line 239 of file Board2D.h.


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