|
ACTS
Experiment-independent tracking
|
Wraps a single child blueprint node and pads it into a larger volume whose dimensions are evaluated at construction time using the child's extent plus a configurable envelope. More...
#include <Acts/Geometry/PadBlueprintNode.hpp>
Public Member Functions | |
| PadBlueprintNode (const std::string &name, const ExtentEnvelope &envelope) | |
| Main constructor for the padding node. | |
| Volume & | build (const BlueprintOptions &options, const GeometryContext &gctx, const Logger &logger=Acts::getDummyLogger()) override |
| This method is called during the build phase of the blueprint tree construction. | |
| TrackingVolume * | trackingVolume () const |
| Get the tracking volume for this node. | |
| Public Member Functions inherited from Acts::Experimental::StaticBlueprintNode | |
| StaticBlueprintNode (std::unique_ptr< TrackingVolume > volume) | |
| Construct the static node from an existing volume. | |
| Volume & | build (const BlueprintOptions &options, const GeometryContext &gctx, const Logger &logger=Acts::getDummyLogger()) override |
| This method is called during the build phase of the blueprint tree construction. | |
| PortalShellBase & | connect (const BlueprintOptions &options, const GeometryContext &gctx, const Logger &logger=Acts::getDummyLogger()) override |
| This method is called during the connect phase. | |
| void | finalize (const BlueprintOptions &options, const GeometryContext &gctx, TrackingVolume &parent, const Logger &logger=Acts::getDummyLogger()) override |
| This method is called during the finalize phase. | |
| const std::string & | name () const override |
| Get the name of this node. | |
| const NavigationPolicyFactory * | navigationPolicyFactory () const |
| Get the navigation policy factory for this node. | |
| std::unique_ptr< TrackingVolume > | releaseVolume () |
| Release ownership of the wrapped tracking volume. | |
| virtual StaticBlueprintNode & | setNavigationPolicyFactory (std::shared_ptr< NavigationPolicyFactory > navigationPolicyFactory) |
| Set the navigation policy factory for this node. | |
| Public Member Functions inherited from Acts::Experimental::BlueprintNode | |
| virtual | ~BlueprintNode ()=default |
| Virtual destructor to ensure correct cleanup. | |
| BlueprintNode & | addChild (std::shared_ptr< BlueprintNode > child) |
Register a child to this node. | |
| MutableChildRange | children () |
| Return a MutableChildRange to the children of this node. | |
| ChildRange | children () const |
| Return a ChildRange to the children of this node. | |
| void | clearChildren () |
| Remove all children from this node. | |
| std::size_t | depth () const |
| Return the depth of this node in the blueprint tree. | |
| void | graphviz (std::ostream &os) const |
| Print the node tree starting from this node to graphviz format. | |
| StaticBlueprintNode & | addStaticVolume (std::unique_ptr< TrackingVolume > volume, const std::function< void(StaticBlueprintNode &cylinder)> &callback={}) |
This method creates a new Acts::Experimental::StaticBlueprintNode wrapping volume and adds it to this node as a child. | |
| StaticBlueprintNode & | addStaticVolume (const Transform3 &transform, std::shared_ptr< VolumeBounds > volumeBounds, const std::string &volumeName="undefined", const std::function< void(StaticBlueprintNode &cylinder)> &callback={}) |
| Alternative overload for creating a Acts::Experimental::StaticBlueprintNode. | |
| CylinderContainerBlueprintNode & | addCylinderContainer (const std::string &name, AxisDirection direction, const std::function< void(CylinderContainerBlueprintNode &cylinder)> &callback={}) |
| Convenience method for creating a cylinder specialization of Acts::Experimental::ContainerBlueprintNode. | |
| CuboidContainerBlueprintNode & | addCuboidContainer (const std::string &name, AxisDirection direction, const std::function< void(CuboidContainerBlueprintNode &cylinder)> &callback={}) |
| Convenience method for creating a cuboid specialization of Acts::Experimental::ContainerBlueprintNode. | |
| MaterialDesignatorBlueprintNode & | addMaterial (const std::string &name, const std::function< void(MaterialDesignatorBlueprintNode &material)> &callback={}) |
| Convenience method for creating a Acts::Experimental::MaterialDesignatorBlueprintNode. | |
| PortalDesignatorBlueprintNode & | addPortalDesignator (const std::string &name, const std::function< void(PortalDesignatorBlueprintNode &portals)> &callback={}) |
| Convenience method for creating a Acts::Experimental::PortalDesignatorBlueprintNode. | |
| LayerBlueprintNode & | addLayer (const std::string &name, const std::function< void(LayerBlueprintNode &layer)> &callback={}) |
| Convenience method for creating a Acts::Experimental::LayerBlueprintNode. | |
| GeometryIdentifierBlueprintNode & | withGeometryIdentifier (const std::function< void(GeometryIdentifierBlueprintNode &geometryIdentifier)> &callback={}) |
| Convenience method for creating a Acts::Experimental::GeometryIdentifierBlueprintNode. | |
Additional Inherited Members | |
| Public Types inherited from Acts::Experimental::BlueprintNode | |
| using | ChildRange |
| A range-like object that allows range based for loops and index access. | |
| using | MutableChildRange |
| A range-like object that allows range based for loops and index access. | |
| Protected Member Functions inherited from Acts::Experimental::StaticBlueprintNode | |
| void | addToGraphviz (std::ostream &os) const override |
| Method that writes a representatiohn of this node only to graphviz. | |
| Protected Member Functions inherited from Acts::Experimental::BlueprintNode | |
| std::span< std::shared_ptr< BlueprintNode > > | childPtr () |
| Return a span over the children's shared_ptrs. | |
| std::span< const std::shared_ptr< BlueprintNode > > | childPtr () const |
| Return a span over the children's shared_ptrs. | |
| std::string | indent () const |
| An indentation depending on the depth of this node. | |
| std::string | prefix () const |
| Printing helper returning a prefix including an indent depending on the depth. | |
| void | setDepth (std::size_t depth) |
Set the depth to depth and update children recursively. | |
| virtual void | toStream (std::ostream &os) const |
| Virtual method to determine stream representation. | |
| Protected Attributes inherited from Acts::Experimental::StaticBlueprintNode | |
| std::shared_ptr< NavigationPolicyFactory > | m_navigationPolicyFactory |
| Factory for creating navigation policies for this volume. | |
| std::unique_ptr< PortalShellBase > | m_shell |
| Portal shell representation for geometry connection. | |
| std::unique_ptr< TrackingVolume > | m_volume |
| The wrapped tracking volume managed by this blueprint node. | |
Wraps a single child blueprint node and pads it into a larger volume whose dimensions are evaluated at construction time using the child's extent plus a configurable envelope.
|
explicit |
Main constructor for the padding node.
| name | The name of the padded volume. |
| envelope | The envelope to apply to the child node's extent to create the padded volume. |
|
overridevirtual |
This method is called during the build phase of the blueprint tree construction.
It returns a single Acts::Volume which represents transform and bounds of the entire subtree. This does not have to correspond to the final Acts::TrackingVolume, some node types will produce temporary volume representations. Lifetime of the returned volume is managed by the source node! Nodes higher in the hierarchy will issue resizes down the tree hierarchy. This is not done through a direct hierarchy, but coordinated by the respective node type, by internally consulting its children.
| options | The global construction options |
| gctx | The geometry context for construction (usually nominal) |
| logger | The logger to use for output during construction |
Implements Acts::Experimental::BlueprintNode.
| TrackingVolume * Acts::Experimental::PadBlueprintNode::trackingVolume | ( | ) | const |
Get the tracking volume for this node.