File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 2.0.0
DGtal::concepts::CDrawableWithBoard2D< T > Struct Template Reference

Aim: The concept CDrawableWithBoard2D specifies what are the classes that admit an export with Board2D. More...

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

Public Member Functions

 BOOST_CONCEPT_USAGE (CDrawableWithBoard2D)

Private Attributes

myT
DrawableWithBoard2DmyD
Board2D myB
std::string myS

Detailed Description

template<typename T>
struct DGtal::concepts::CDrawableWithBoard2D< T >

Aim: The concept CDrawableWithBoard2D specifies what are the classes that admit an export with Board2D.

Description of concept 'CDrawableWithBoard2D'

An object x satisfying this concept may then be used as:

Board2D board;
board << CustomStyle( x.className(), x.defaultStyle() )
<< x;
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Definition Board2D.h:71

Refinement of

Associated types

Notation

Definitions

Valid expressions and semantics

Name Expression Type requirements Return type Precondition Semantics Post condition Complexity
the default draw style x.defaultStyle( m ="" ) mode m: std::string DrawableWithBoard2D returns a dynamic allocation of the default style for the model X in mode m
the name of the model x.className() std::string returns a string telling the name of the model
the way the objet x is drawn x.setStyle(Board2D &board) draws the object x on the board stream

Invariants

Models

ArithmeticalDSSComputer, FreemanChain, HyperRectDomain, ImageContainerByHashTree, ImageContainerBySTLVector, PointVector, DigitalSetBySTLSet,DigitalSetBySTLVector, Object

Notes

Definition at line 104 of file CDrawableWithBoard2D.h.

Member Function Documentation

◆ BOOST_CONCEPT_USAGE()

template<typename T>
DGtal::concepts::CDrawableWithBoard2D< T >::BOOST_CONCEPT_USAGE ( CDrawableWithBoard2D< T > )
inline

Definition at line 108 of file CDrawableWithBoard2D.h.

109 {
110 //Drawable model should have a className() returning a string
112
113 //Drawable model should be associated to global functions draw and defaultStyle.
116 }
void sameType(const T &, const T &)
static void draw(DGtal::Board2D &board, const DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger > &calculus)
Aim: The concept CDrawableWithBoard2D specifies what are the classes that admit an export with Board2...

References DGtal::Display2DFactory::draw(), myB, myD, myS, myT, and DGtal::concepts::ConceptUtils::sameType().

Field Documentation

◆ myB

template<typename T>
Board2D DGtal::concepts::CDrawableWithBoard2D< T >::myB
private

Definition at line 122 of file CDrawableWithBoard2D.h.

Referenced by BOOST_CONCEPT_USAGE().

◆ myD

template<typename T>
DrawableWithBoard2D* DGtal::concepts::CDrawableWithBoard2D< T >::myD
private

Definition at line 121 of file CDrawableWithBoard2D.h.

Referenced by BOOST_CONCEPT_USAGE().

◆ myS

template<typename T>
std::string DGtal::concepts::CDrawableWithBoard2D< T >::myS
private

Definition at line 123 of file CDrawableWithBoard2D.h.

Referenced by BOOST_CONCEPT_USAGE().

◆ myT

template<typename T>
T DGtal::concepts::CDrawableWithBoard2D< T >::myT
private

Definition at line 120 of file CDrawableWithBoard2D.h.

Referenced by BOOST_CONCEPT_USAGE().


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