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
64#include <boost/version.hpp>
65#include <boost/concept_check.hpp>
66#include <boost/static_assert.hpp>
67#include <boost/concept/assert.hpp>
68#include <boost/concept/requires.hpp>
69#include <boost/iterator/iterator_concepts.hpp>
70#include <boost/concept_archetype.hpp>
71#include <boost/static_assert.hpp>
89#pragma warning(disable : 4290)
91#pragma warning(disable : 4800)
96#define _USE_MATH_DEFINES
105#define M_PI (3.14159265358979323846)
108#define M_PI_2 (1.57079632679489661923)
113#define secured_sprintf sprintf_s
116#define secured_sprintf snprintf
119#include "DGtal/base/Config.h"
120#include "DGtal/base/Trace.h"
121#include "DGtal/base/TraceWriterTerm.h"
122#include "DGtal/base/TraceWriterFile.h"
123#include "DGtal/base/Assert.h"
124#include "DGtal/base/ConceptUtils.h"
125#include "DGtal/base/BasicTypes.h"
126#include "DGtal/base/BasicFunctors.h"
127#include "DGtal/base/BasicArchetypes.h"
128#include "DGtal/base/Exceptions.h"
158 template <
class Space,
class KSpace>
class Display3D;
161#if defined( WITH_CAIRO )
162 template <
class Space,
class KSpace>
class Board3DTo2D;
164#if defined( WITH_VISU3D_QGLVIEWER )
165 template <
class Space,
class KSpace>
class Viewer3D;
169#if defined( WITH_CAIRO )
179 template <
typename S,
typename KS>
186#if defined( WITH_VISU3D_QGLVIEWER )
192 struct DrawableWithViewer3D {
196 template <
typename S,
typename KS>
197 void setStyle( Viewer3D< S, KS> & )
const {}
198 virtual ~DrawableWithViewer3D() {}
211 template <
typename Sp,
typename KSp>
238#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()