ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::svgtools::utils::link_start_getter Struct Reference

Functor to calculate a suitable starting point for displaying the link arrow. More...

#include <detray/plugins/svgtools/utils/surface_kernels.hpp>

Public Member Functions

template<typename mask_group_t, concepts::interval idx_range_t, concepts::transform3D transform3_t>
auto operator() (const mask_group_t &mask_group, const idx_range_t &idx_range, const transform3_t &transform, const std::size_t mask_idx) const
 Find the link origin for a mask selected from an index range.
template<typename mask_group_t, concepts::index index_t, concepts::transform3D transform3_t>
auto operator() (const mask_group_t &mask_group, const index_t &index, const transform3_t &transform, const std::size_t=0) const
 Find the link origin for one mask in a mask collection.

Detailed Description

Functor to calculate a suitable starting point for displaying the link arrow.

Member Function Documentation

◆ operator()() [1/2]

template<typename mask_group_t, concepts::interval idx_range_t, concepts::transform3D transform3_t>
auto detray::svgtools::utils::link_start_getter::operator() ( const mask_group_t & mask_group,
const idx_range_t & idx_range,
const transform3_t & transform,
const std::size_t mask_idx ) const

Find the link origin for a mask selected from an index range.

Template Parameters
mask_group_tMask collection type.
idx_range_tRange of mask indices.
transform3_tTransform type.
Parameters
mask_groupCollection containing the masks.
idx_rangeRange containing the selected mask.
transformTransform from local to global coordinates.
mask_idxOffset in the range.
Returns
Global point at which the link starts.

◆ operator()() [2/2]

template<typename mask_group_t, concepts::index index_t, concepts::transform3D transform3_t>
auto detray::svgtools::utils::link_start_getter::operator() ( const mask_group_t & mask_group,
const index_t & index,
const transform3_t & transform,
const std::size_t = 0 ) const

Find the link origin for one mask in a mask collection.

Template Parameters
mask_group_tMask collection type.
index_tSelected mask index type.
transform3_tTransform type.
Parameters
mask_groupCollection containing the mask.
indexIndex of the selected mask.
transformTransform from local to global coordinates.
Returns
Global point at which the link starts.