DGtal
1.1.0
src
DGtal
io
viewers
CDrawableWithViewer3D.h
1
17
#pragma once
18
30
#if defined(CDrawableWithViewer3D_RECURSES)
31
#error Recursive header files inclusion detected in CDrawableWithViewer3D.h
32
#else // defined(CDrawableWithViewer3D_RECURSES)
33
34
#define CDrawableWithViewer3D_RECURSES
35
36
#if !defined CDrawableWithViewer3D_h
37
38
#define CDrawableWithViewer3D_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 CDrawableWithViewer3D
99
template
<
typename
T,
typename
S,
typename
KS>
100
struct
CDrawableWithViewer3D
:
public
concepts::CDrawableWithDisplay3D
<T, S, KS>
101
{
102
103
BOOST_CONCEPT_USAGE
(
CDrawableWithViewer3D
)
104
{
105
//Drawable model should have a className() returning a string
106
concepts::ConceptUtils::sameType
(
myS
,
myT
.className() );
107
108
}
109
110
// ------------------------- Private Datas --------------------------------
111
private
:
112
113
T
myT
;
114
DrawableWithViewer3D *
myD
;
115
116
std::string
myS
;
117
118
// ------------------------- Internals ------------------------------------
119
120
};
// end of concept CDrawableWithViewer3D
121
}
// namespace concepts
122
}
// namespace DGtal
123
124
125
126
// //
128
129
#endif // !defined CDrawableWithViewer3D_h
130
131
#undef CDrawableWithViewer3D_RECURSES
132
#endif // else defined(CDrawableWithViewer3D_RECURSES)
DGtal::concepts::CDrawableWithViewer3D::myS
std::string myS
Definition:
CDrawableWithViewer3D.h:116
DGtal::concepts::CDrawableWithViewer3D::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDrawableWithViewer3D)
Definition:
CDrawableWithViewer3D.h:103
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition:
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CDrawableWithViewer3D::myT
T myT
Definition:
CDrawableWithViewer3D.h:113
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition:
ConceptUtils.h:117
DGtal::concepts::CDrawableWithViewer3D
Aim: The concept CDrawableWithViewer3D specifies what are the classes that admit an export with Viewe...
Definition:
CDrawableWithViewer3D.h:101
DGtal::concepts::CDrawableWithDisplay3D
Definition:
CDrawableWithDisplay3D.h:103
DGtal::concepts::CDrawableWithViewer3D::myD
DrawableWithViewer3D * myD
the drawable class
Definition:
CDrawableWithViewer3D.h:114
Generated on Fri Oct 9 2020 08:57:46 for DGtal by
1.8.20