9 #include <boost/test/unit_test.hpp>
26 using namespace Acts::Svg;
27 using namespace Acts::Test;
28 using namespace Acts::Experimental;
29 using namespace Acts::Experimental::detail;
39 sensitiveStyle.
fillColor = {51, 153, 255};
42 sensitiveStyle.
highlights = {
"onmouseover",
"onmouseout"};
61 gridOptions.
style = gridStyle;
69 BOOST_AUTO_TEST_SUITE(ActSvg)
83 auto indexedRing = irSurfaces(
tContext, aGenerator, rGenerator);
87 auto pIndexRingView =
View::xy(pIndexedRing,
"RingDisc1D");
88 toFile({pIndexRingView}, pIndexRingView._id +
".svg");
97 auto rBounds = std::make_shared<RadialBounds>(20., 20.);
98 auto dSurface = Surface::makeShared<DiscSurface>(Transform3::Identity(),
100 rSurfaces.push_back(dSurface.get());
103 rSurfaces, {rSurfaces.size() - 1
u}, {
binPhi}};
108 auto indexedRing = irSurfaces(
tContext, aGenerator, rGenerator);
112 auto pIndexRingView =
View::xy(pIndexedRing,
"RingDisc1DWithSupport");
113 toFile({pIndexRingView}, pIndexRingView._id +
".svg");
125 decltype(rSurfacesR0) rSurfaces = rSurfacesR0;
126 rSurfaces.insert(rSurfaces.end(), rSurfacesR1.begin(), rSurfacesR1.end());
132 {24., 74., 110.}, {-M_PI, M_PI}, 44
u};
135 auto indexedRing = irSurfaces(
tContext, aGenerator, rGenerator);
139 auto pIndexRingView =
View::xy(pIndexedRing,
"RingDisc2D");
141 toFile({pIndexRingView}, pIndexRingView._id +
".svg");
156 decltype(rSurfacesR0) rSurfaces = rSurfacesR0;
157 rSurfaces.insert(rSurfaces.end(), rSurfacesR1.begin(), rSurfacesR1.end());
158 rSurfaces.insert(rSurfaces.end(), rSurfacesR2.begin(), rSurfacesR2.end());
164 {24., 152}, 8
u, {-M_PI, M_PI}, 88
u};
167 auto indexedRing = irSurfaces(
tContext, aGenerator, rGenerator);
171 auto pIndexRingView =
View::xy(pIndexedRing,
"RingDisc2DFine");
173 toFile({pIndexRingView}, pIndexRingView._id +
".svg");
188 decltype(rSurfacesR0) rSurfaces = rSurfacesR0;
189 rSurfaces.insert(rSurfaces.end(), rSurfacesR1.begin(), rSurfacesR1.end());
190 rSurfaces.insert(rSurfaces.end(), rSurfacesR2.begin(), rSurfacesR2.end());
196 {24., 152}, 8
u, {-M_PI, M_PI}, 88
u};
199 auto indexedRing = irSurfaces(
tContext, aGenerator, rGenerator);
203 auto pIndexRingView =
View::xy(pIndexedRing,
"RingDisc2DFineExpanded");
205 toFile({pIndexRingView}, pIndexRingView._id +
".svg");
211 116., 3., 2., {52, 14});
217 {-500., 500}, 28, {-M_PI, M_PI}, 52
u};
220 auto indexedCylinder = icSurfaces(
tContext, aGenerator, rGenerator);
224 auto pIndexCylinderView =
View::zphi(pIndexeCylinder,
"Cylinder");
226 toFile({pIndexCylinderView}, pIndexCylinderView._id +
".svg");
229 BOOST_AUTO_TEST_SUITE_END()