DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
io
viewers
Viewer3D.ih
1
29
30
// IMPLEMENTATION of inline methods.
32
34
#include <cstdlib>
35
#include "DGtal/io/CDrawableWithDisplay3D.h"
37
38
39
41
// Implementation of inline methods //
42
43
44
45
46
inline
47
DGtal::Viewer3D
&
48
DGtal::Viewer3D::operator<<
(
const
DGtal::Color
& aColor){
49
myDefaultColor
=aColor;
50
return
*
this
;
51
}
52
53
54
55
63
inline
64
DGtal::Viewer3D
&
65
DGtal::Viewer3D::operator<<
(
const
Display3D::StreamKey
& key){
66
switch
(key){
67
case
Display3D::updateDisplay
:
68
updateList();
69
break
;
70
71
case
Display3D::addNewList
:
72
createNewVoxelList();
73
break
;
74
75
case
Display3D::shiftSurfelVisu
:
76
myCurrentfShiftVisuKSSurfels+=0.3;
77
break
;
78
79
}
80
81
return
*
this
;
82
}
83
84
85
template
<
typename
TDrawableWithDisplay3D>
86
inline
87
DGtal::Viewer3D
&
88
DGtal::Viewer3D::operator<<
(
const
TDrawableWithDisplay3D &
object
)
89
{
90
BOOST_CONCEPT_ASSERT((
CDrawableWithDisplay3D< TDrawableWithDisplay3D >
));
91
92
DGtal::Display3DFactory::draw
(*
this
,
object
);
93
return
*
this
;
94
}
95
96
97
98
99
100
101
102
103
104
105
106
107
109
// Implementation of inline functions and external operators //
110
117
inline
118
std::ostream&
119
DGtal::operator<<
( std::ostream & out,
120
const
Viewer3D
&
object
)
121
{
122
object
.selfDisplay ( out );
123
return
out;
124
}
125
126
// //
128
129
Generated on Wed Dec 19 2012 19:10:43 for DGtal by
1.8.1.1