DGtal  0.9.2
DrawWithBoard3DTo2DModifier.h
1 
17 #pragma once
18 
30 #if defined(DrawWithBoard3DTo2DModifier_RECURSES)
31 #error Recursive header files inclusion detected in DrawWithBoard3DTo2DModifier.h
32 #else // defined(DrawWithBoard3DTo2DModifier_RECURSES)
33 
34 #define DrawWithBoard3DTo2DModifier_RECURSES
35 
36 #if !defined DrawWithBoard3DTo2DModifier_h
37 
38 #define DrawWithBoard3DTo2DModifier_h
39 
41 // Inclusions
42 #include <iostream>
43 #include "DGtal/base/Common.h"
44 #include "DGtal/base/Alias.h"
45 #include "DGtal/base/ConstAlias.h"
46 #include "DGtal/images/CConstImage.h"
47 #include "DGtal/base/CountedPtr.h"
48 #include "DGtal/topology/KhalimskySpaceND.h"
49 #include "DGtal/io/DrawWithDisplay3DModifier.h"
51 
52 namespace DGtal
53 {
54 
61  std::string className() const;
62 };
63 
64 
65 #ifndef DrawWithViewer3DModifier_h
66 
71 {
79  CameraPosition( const double x, const double y, const double z ):eyex(x), eyey(y), eyez(z)
80  {
81  }
82 
83  double eyex, eyey, eyez;
84 };
85 
86 
91 {
99  CameraDirection( const double x, const double y, const double z ): dirx(x), diry(y), dirz(z)
100  {
101  }
102 
103  double dirx, diry, dirz;
104 };
105 
106 
111 {
119  CameraUpVector( const double x, const double y, const double z ): upx(x), upy(y), upz(z)
120  {
121  upx=x; upy=y; upz=z;
122  }
123 
124  double upx, upy, upz;
125 };
126 
127 
128 
133 {
140  CameraZNearFar( const double near, const double far ): ZNear(near), ZFar(far)
141  {
142  }
143 
144  double ZNear, ZFar;
145 };
146 #endif
147 
148 
149 } // namespace DGtal
150 
151 
152 
153 
155 // Includes inline functions.
156 #include "DGtal/io/boards/DrawWithBoard3DTo2DModifier.ih"
157 
158 
159 // //
161 
162 #endif // !defined DrawWithBoard3DTo2DModifier_h
163 
164 #undef DrawWithBoard3DTo2DModifier_RECURSES
165 #endif // else defined(DrawWithBoard3DTo2DModifier_RECURSES)
CameraUpVector class to set camera up-vector.
CameraZNearFar class to set near and far distance.
CameraDirection(const double x, const double y, const double z)
CameraZNearFar(const double near, const double far)
std::string className() const
CameraDirection class to set camera direction.
Base class specifying the methods for classes which intend to modify a Viewer3D stream.
CameraUpVector(const double x, const double y, const double z)
CameraPosition class to set camera position.
DGtal is the top-level namespace which contains all DGtal functions and types.
CameraPosition(const double x, const double y, const double z)