comparison Applications/Samples/SingleFrameApplication.h @ 376:70256a53ff21

fix compatibility with Visual Studio 2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 13:25:03 +0100
parents 885f0a5eaa49
children 8eb4fe74000f
comparison
equal deleted inserted replaced
373:d6136a7e914d 376:70256a53ff21
26 #include "../../Framework/Layers/OrthancFrameLayerSource.h" 26 #include "../../Framework/Layers/OrthancFrameLayerSource.h"
27 #include "../../Framework/Widgets/LayerWidget.h" 27 #include "../../Framework/Widgets/LayerWidget.h"
28 28
29 #include <Core/Logging.h> 29 #include <Core/Logging.h>
30 30
31 #include <boost/math/constants/constants.hpp>
32
33
31 namespace OrthancStone 34 namespace OrthancStone
32 { 35 {
33 namespace Samples 36 namespace Samples
34 { 37 {
35 class SingleFrameApplication : 38 class SingleFrameApplication :
159 162
160 #if 1 163 #if 1
161 GetMainWidget().SetSlice(source_->GetSlice(slice_).GetGeometry()); 164 GetMainWidget().SetSlice(source_->GetSlice(slice_).GetGeometry());
162 #else 165 #else
163 // TEST for scene extents - Rotate the axes 166 // TEST for scene extents - Rotate the axes
164 double a = 15.0 / 180.0 * M_PI; 167 double a = 15.0 / 180.0 * boost::math::constants::pi<double>();
165 168
166 #if 1 169 #if 1
167 Vector x; GeometryToolbox::AssignVector(x, cos(a), sin(a), 0); 170 Vector x; GeometryToolbox::AssignVector(x, cos(a), sin(a), 0);
168 Vector y; GeometryToolbox::AssignVector(y, -sin(a), cos(a), 0); 171 Vector y; GeometryToolbox::AssignVector(y, -sin(a), cos(a), 0);
169 #else 172 #else