DGtal
1.3.beta
src
DGtal
io
boards
CDrawableWithBoard3DTo2D.h
1
17
#pragma once
18
30
#if defined(CDrawableWithBoard3DTo2D_RECURSES)
31
#error Recursive header files inclusion detected in CDrawableWithBoard3DTo2D.h
32
#else // defined(CDrawableWithBoard3DTo2D_RECURSES)
33
34
#define CDrawableWithBoard3DTo2D_RECURSES
35
36
#if !defined CDrawableWithBoard3DTo2D_h
37
38
#define CDrawableWithBoard3DTo2D_h
39
41
// Inclusions
42
#include <iostream>
43
#include "boost/concept_check.hpp"
44
#include "DGtal/base/Common.h"
45
#include "DGtal/io/CDrawableWithDisplay3D.h"
47
48
namespace
DGtal
49
{
50
namespace
concepts
51
{
53
// class CDrawableWithBoard3DTo2D
98
template
<
class
S,
class
KS>
class
Board3DTo2D
;
99
100
template
<
typename
T,
typename
S,
typename
KS >
101
struct
CDrawableWithBoard3DTo2D
:
public
concepts::CDrawableWithDisplay3D
<T, S , KS>
102
{
103
104
BOOST_CONCEPT_USAGE
(
CDrawableWithBoard3DTo2D
)
105
{
106
//Drawable model should have a className() returning a string
107
concepts::ConceptUtils::sameType
(
myS
,
myT
.className() );
108
109
//Drawable model should be associated to global functions draw and defaultStyle.
110
//draw(myD3D, myT);
111
//concepts::ConceptUtils::sameType( myD, defaultStyle( myT) );
112
}
113
114
// ------------------------- Private Datas --------------------------------
115
private
:
116
117
T
myT
;
118
DrawableWithBoard3DTo2D
*
myD
;
119
120
DGtal::Board3DTo2D<S, KS>
myD3D
;
121
std::string
myS
;
122
123
// ------------------------- Internals ------------------------------------
124
private
:
125
126
};
// end of concept CDrawableWithBoard3DTo2D
127
}
// namespace concepts
128
}
// namespace DGtal
129
130
131
132
// //
134
135
#endif // !defined CDrawableWithBoard3DTo2D_h
136
137
#undef CDrawableWithBoard3DTo2D_RECURSES
138
#endif // else defined(CDrawableWithBoard3DTo2D_RECURSES)
DGtal::concepts::CDrawableWithBoard3DTo2D
Definition:
CDrawableWithBoard3DTo2D.h:101
DGtal::concepts::CDrawableWithBoard3DTo2D::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDrawableWithBoard3DTo2D)
Definition:
CDrawableWithBoard3DTo2D.h:104
DGtal::Board3DTo2D< S, KS >
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CDrawableWithBoard3DTo2D::myS
std::string myS
Definition:
CDrawableWithBoard3DTo2D.h:121
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition:
ConceptUtils.h:117
DGtal::DrawableWithBoard3DTo2D
Definition:
Common.h:175
DGtal::concepts::CDrawableWithBoard3DTo2D::myT
T myT
Definition:
CDrawableWithBoard3DTo2D.h:117
DGtal::concepts::Board3DTo2D
Aim: The concept CDrawableWithBoard3DTo2D specifies what are the classes that admit an export with Bo...
Definition:
CDrawableWithBoard3DTo2D.h:98
DGtal::concepts::CDrawableWithBoard3DTo2D::myD
DrawableWithBoard3DTo2D * myD
the drawable object
Definition:
CDrawableWithBoard3DTo2D.h:118
DGtal::concepts::CDrawableWithDisplay3D
Definition:
CDrawableWithDisplay3D.h:102
DGtal::concepts::CDrawableWithBoard3DTo2D::myD3D
DGtal::Board3DTo2D< S, KS > myD3D
Definition:
CDrawableWithBoard3DTo2D.h:120
Generated on Mon Jun 20 2022 18:23:23 for DGtal by
1.8.17