24 #include <pybind11/pybind11.h>
25 #include <pybind11/stl.h>
27 namespace py = pybind11;
28 using namespace pybind11::literals;
31 using namespace ActsExamples;
33 namespace Acts::Python {
35 auto [
m, mex] = ctx.
get(
"main",
"examples");
38 auto c = py::class_<Svg::Style>(
m,
"SvgStyle").def(py::init<>());
51 auto c = py::class_<Svg::SurfaceConverter::Options>(
m,
"SvgSurfaceOptions")
60 using DefinedStyle = std::pair<GeometryIdentifier, Svg::Style>;
61 using DefinedStyleSet = std::vector<DefinedStyle>;
63 auto sm = py::class_<GeometryHierarchyMap<Svg::Style>>(
m,
"SvgStyleMap")
64 .def(py::init<DefinedStyleSet>(), py::arg(
"elements"));
66 auto c = py::class_<Svg::LayerConverter::Options>(
m,
"SvgLayerOptions")
82 using DefinedLayerOptions =
83 std::pair<GeometryIdentifier, Svg::LayerConverter::Options>;
84 using DefinedLayerOptionsSet = std::vector<DefinedLayerOptions>;
87 py::class_<GeometryHierarchyMap<Svg::LayerConverter::Options>>(
88 m,
"SvgLayerOptionMap")
89 .def(py::init<DefinedLayerOptionsSet>(), py::arg(
"elements"));
91 auto c = py::class_<Svg::TrackingGeometryConverter::Options>(
92 m,
"SvgTrackingGeometryOptions")
102 auto w = py::class_<Writer, std::shared_ptr<Writer>>(
103 mex,
"SvgTrackingGeometryWriter")
104 .def(py::init<const Writer::Config&, Acts::Logging::Level>(),
105 py::arg(
"config"), py::arg(
"level"))
110 auto c = py::class_<Writer::Config>(w,
"Config").def(py::init<>());
119 py::class_<Writer, ActsExamples::IWriter, std::shared_ptr<Writer>>(
120 mex,
"SvgSimSpacePointWriter")
121 .def(py::init<const Writer::Config&, Acts::Logging::Level>(),
122 py::arg(
"config"), py::arg(
"level"))
126 auto c = py::class_<Writer::Config>(w,
"Config").def(py::init<>());
140 py::class_<Writer, ActsExamples::IWriter, std::shared_ptr<Writer>>(
141 mex,
"SvgSimHitWriter")
142 .def(py::init<const Writer::Config&, Acts::Logging::Level>(),
143 py::arg(
"config"), py::arg(
"level"))
147 auto c = py::class_<Writer::Config>(w,
"Config").def(py::init<>());