From 3fea519d4713b15c64d356362b3a84a8099f0f6c Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Mon, 18 Nov 2024 17:07:31 +0100 Subject: [PATCH] blueprint: Blueprint inherits privately from BlueprintNode --- Core/include/Acts/Geometry/Blueprint.hpp | 9 ++++++++- Examples/Python/src/Blueprint.cpp | 3 +-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Core/include/Acts/Geometry/Blueprint.hpp b/Core/include/Acts/Geometry/Blueprint.hpp index 12ade558d50..0752f069fea 100644 --- a/Core/include/Acts/Geometry/Blueprint.hpp +++ b/Core/include/Acts/Geometry/Blueprint.hpp @@ -17,8 +17,15 @@ namespace Acts { class GeometryContext; -class Blueprint : public BlueprintNode { +class Blueprint : private BlueprintNode { public: + using BlueprintNode::addChild; + using BlueprintNode::addCylinderContainer; + using BlueprintNode::addLayer; + using BlueprintNode::addMaterial; + using BlueprintNode::graphViz; + using BlueprintNode::Options; + struct Config { ExtentEnvelope envelope = ExtentEnvelope::Zero(); GeometryIdentifierHook geometryIdentifierHook = {}; diff --git a/Examples/Python/src/Blueprint.cpp b/Examples/Python/src/Blueprint.cpp index 07b94c009dd..4bb29fb647a 100644 --- a/Examples/Python/src/Blueprint.cpp +++ b/Examples/Python/src/Blueprint.cpp @@ -284,8 +284,7 @@ void addBlueprint(Context& ctx) { }); { - auto n = py::class_>( - m, "Blueprint"); + auto n = py::class_>(m, "Blueprint"); n.def(py::init()) .def_property_readonly("name", &Blueprint::name)