diff --git a/Core/include/Acts/Visualization/GeometryView3D.hpp b/Core/include/Acts/Visualization/GeometryView3D.hpp index 22071d3e1c2..3dc9f7256ae 100644 --- a/Core/include/Acts/Visualization/GeometryView3D.hpp +++ b/Core/include/Acts/Visualization/GeometryView3D.hpp @@ -31,11 +31,11 @@ class DetectorVolume; class Portal; } // namespace Experimental -static ViewConfig s_viewSensitive = ViewConfig({0, 180, 240}); -static ViewConfig s_viewPassive = ViewConfig({240, 280, 0}); -static ViewConfig s_viewVolume = ViewConfig({220, 220, 0}); -static ViewConfig s_viewGrid = ViewConfig({220, 0, 0}); -static ViewConfig s_viewLine = ViewConfig({0, 0, 220}); +static const ViewConfig s_viewSensitive; +static const ViewConfig s_viewPassive; +static const ViewConfig s_viewVolume; +static const ViewConfig s_viewGrid; +static const ViewConfig s_viewLine; struct GeometryView3D { /// Helper method to draw Polyhedron objects diff --git a/Core/src/Visualization/GeometryView3D.cpp b/Core/src/Visualization/GeometryView3D.cpp index 92ba990f8ba..78a9260cda6 100644 --- a/Core/src/Visualization/GeometryView3D.cpp +++ b/Core/src/Visualization/GeometryView3D.cpp @@ -64,6 +64,16 @@ std::string getWorkingDirectory() { } // namespace +namespace Acts { +namespace Experimental { +ViewConfig s_viewSensitive = ViewConfig({0, 180, 240}); +ViewConfig s_viewPassive = ViewConfig({240, 280, 0}); +ViewConfig s_viewVolume = ViewConfig({220, 220, 0}); +ViewConfig s_viewGrid = ViewConfig({220, 0, 0}); +ViewConfig s_viewLine = ViewConfig({0, 0, 220}); +} // namespace Experimental +} // namespace Acts + void Acts::GeometryView3D::drawPolyhedron(IVisualization3D& helper, const Polyhedron& polyhedron, const ViewConfig& viewConfig) {