DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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
49  myDefaultColor=aColor;
50  return *this;
51 }
52 
53 
54 
55 
63 inline
66  switch (key){
68  updateList();
69  break;
70 
72  createNewVoxelList();
73  break;
74 
76  myCurrentfShiftVisuKSSurfels+=0.3;
77  break;
78 
79  }
80 
81  return *this;
82 }
83 
84 
85 template <typename TDrawableWithDisplay3D>
86 inline
88 DGtal::Viewer3D::operator<<( const TDrawableWithDisplay3D & object )
89 {
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