33 #if defined(Common_RECURSES)
34 #error Recursive header files inclusion detected in Common.h
37 #define Common_RECURSES
45 #ifdef WITH_VISU3D_QGLVIEWER
48 #define GL_SILENCE_DEPRECATION
50 #pragma GCC diagnostic push
51 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
52 #pragma clang diagnostic push
53 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
54 #include <QGLViewer/qglviewer.h>
57 #pragma clang diagnostic pop
58 #pragma GCC diagnostic pop
63 #include <boost/version.hpp>
64 #include <boost/concept_check.hpp>
65 #include <boost/static_assert.hpp>
66 #include <boost/concept/assert.hpp>
67 #include <boost/concept/requires.hpp>
68 #include <boost/iterator/iterator_concepts.hpp>
69 #include <boost/concept_archetype.hpp>
70 #include <boost/static_assert.hpp>
88 #pragma warning(disable : 4290)
90 #pragma warning(disable : 4800)
95 #define _USE_MATH_DEFINES
104 #define M_PI (3.14159265358979323846)
107 #define M_PI_2 (1.57079632679489661923)
112 #define secured_sprintf sprintf_s
115 #define secured_sprintf snprintf
118 #include "DGtal/base/Config.h"
119 #include "DGtal/base/Trace.h"
120 #include "DGtal/base/TraceWriterTerm.h"
121 #include "DGtal/base/TraceWriterFile.h"
122 #include "DGtal/base/Assert.h"
123 #include "DGtal/base/ConceptUtils.h"
124 #include "DGtal/base/BasicTypes.h"
125 #include "DGtal/base/BasicFunctors.h"
126 #include "DGtal/base/BasicArchetypes.h"
127 #include "DGtal/base/Exceptions.h"
157 template <
class Space,
class KSpace>
class Display3D;
160 #if defined( WITH_CAIRO )
161 template <
class Space,
class KSpace>
class Board3DTo2D;
163 #if defined( WITH_VISU3D_QGLVIEWER )
164 template <
class Space,
class KSpace>
class Viewer3D;
168 #if defined( WITH_CAIRO )
178 template <
typename S,
typename KS>
185 #if defined( WITH_VISU3D_QGLVIEWER )
191 struct DrawableWithViewer3D {
195 template <
typename S,
typename KS>
196 void setStyle( Viewer3D< S, KS> & )
const {}
197 virtual ~DrawableWithViewer3D() {}
210 template <
typename Sp,
typename KSp>
237 #undef Common_RECURSES
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Class for PDF, PNG, PS, EPS, SVG export drawings with Cairo with 3D->2D projection.
Aim: This semi abstract class defines the stream mechanism to display 3d primitive (like BallVector,...
Implements trace prefix for color terminals.
implementation of basic methods to trace out messages with indentation levels.
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::uint32_t uint32_t
unsigned 32-bit integer.
DGtal::uint32_t Dimension
TraceWriterTerm traceWriterTerm(std::cerr)
virtual void setStyle(Board2D &) const
virtual ~DrawableWithBoard2D()
void setStyle(Board3DTo2D< S, KS > &) const
virtual ~DrawableWithBoard3DTo2D()
void setStyle(Display3D< Sp, KSp > &) const
virtual ~DrawableWithDisplay3D()