Skip to content

Commit

Permalink
blueprint: Blueprint inherits privately from BlueprintNode
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Nov 18, 2024
1 parent 666a1b6 commit 33aabb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Core/include/Acts/Geometry/Blueprint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down
3 changes: 1 addition & 2 deletions Examples/Python/src/Blueprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ void addBlueprint(Context& ctx) {
});

{
auto n = py::class_<Blueprint, BlueprintNode, std::shared_ptr<Blueprint>>(
m, "Blueprint");
auto n = py::class_<Blueprint, std::shared_ptr<Blueprint>>(m, "Blueprint");

n.def(py::init<const Blueprint::Config&>())
.def_property_readonly("name", &Blueprint::name)
Expand Down

0 comments on commit 33aabb4

Please sign in to comment.