File indexing completed on 2025-12-11 09:40:20
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Geometry/GeometryContext.hpp"
0012 #include "Acts/Geometry/GeometryHierarchyMap.hpp"
0013 #include "ActsPlugins/ActSVG/DetectorVolumeSvgConverter.hpp"
0014 #include "ActsPlugins/ActSVG/SvgUtils.hpp"
0015 #include <actsvg/core.hpp>
0016 #include <actsvg/meta.hpp>
0017
0018 namespace Acts::Experimental {
0019 class Detector;
0020 }
0021
0022 namespace ActsPlugins::Svg {
0023
0024 using ProtoDetector = actsvg::proto::detector<std::vector<Acts::Vector3>>;
0025
0026 namespace DetectorConverter {
0027
0028
0029 struct Options {
0030
0031 DetectorVolumeConverter::Options volumeOptions;
0032 };
0033
0034
0035
0036
0037
0038
0039
0040
0041 ProtoDetector convert(const Acts::GeometryContext& gctx,
0042 const Acts::Experimental::Detector& detector,
0043 const Options& detectorOptions);
0044
0045 }
0046
0047 namespace View {
0048
0049
0050
0051
0052
0053
0054
0055 static inline actsvg::svg::object xy(const ProtoDetector& detector,
0056 const std::string& identification) {
0057 actsvg::views::x_y xyView;
0058 return actsvg::display::detector(identification, detector, xyView);
0059 }
0060
0061
0062
0063
0064
0065
0066
0067 static inline actsvg::svg::object zr(const ProtoDetector& detector,
0068 const std::string& identification) {
0069 actsvg::views::z_r zrView;
0070 return actsvg::display::detector(identification, detector, zrView);
0071 }
0072
0073 }
0074
0075 }