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

Functor to calculate a suitable end 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::detector detector_t, concepts::point3D point3_t, concepts::vector3D vector3_t, concepts::scalar scalar_t>
vector3_t operator() (const mask_group_t &mask_group, const idx_range_t &idx_range, const detector_t &detector, const detray::tracking_volume< detector_t > &volume, const point3_t &surface_point, const vector3_t &surface_normal, const scalar_t &link_length, const std::size_t mask_idx) const
 Find the endpoint for a link from a mask selected within an index range.
template<typename mask_group_t, concepts::index index_t, concepts::detector detector_t, concepts::point3D point3_t, concepts::vector3D vector3_t, concepts::scalar scalar_t>
vector3_t operator() (const mask_group_t &mask_group, const index_t &index, const detector_t &detector, const detray::tracking_volume< detector_t > &volume, const point3_t &surface_point, const vector3_t &surface_normal, const scalar_t &link_length, const std::size_t=0) const
 Find the endpoint for a link drawn from one mask.

Detailed Description

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

Member Function Documentation

◆ operator()() [1/2]

template<typename mask_group_t, concepts::interval idx_range_t, concepts::detector detector_t, concepts::point3D point3_t, concepts::vector3D vector3_t, concepts::scalar scalar_t>
vector3_t detray::svgtools::utils::link_end_getter::operator() ( const mask_group_t & mask_group,
const idx_range_t & idx_range,
const detector_t & detector,
const detray::tracking_volume< detector_t > & volume,
const point3_t & surface_point,
const vector3_t & surface_normal,
const scalar_t & link_length,
const std::size_t mask_idx ) const

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

Template Parameters
mask_group_tMask collection type.
idx_range_tMask index range type.
detector_tDetector type.
point3_tPoint type.
vector3_tVector type.
scalar_tLink length type.
Parameters
mask_groupCollection containing the masks.
idx_rangeRange containing the selected mask.
detectorDetector used to resolve neighboring surfaces.
volumeVolume containing the surface.
surface_pointGlobal link origin.
surface_normalNormal at the link origin.
link_lengthLength of the displayed link.
mask_idxOffset in the range.
Returns
Global endpoint of the displayed link.

◆ operator()() [2/2]

template<typename mask_group_t, concepts::index index_t, concepts::detector detector_t, concepts::point3D point3_t, concepts::vector3D vector3_t, concepts::scalar scalar_t>
vector3_t detray::svgtools::utils::link_end_getter::operator() ( const mask_group_t & mask_group,
const index_t & index,
const detector_t & detector,
const detray::tracking_volume< detector_t > & volume,
const point3_t & surface_point,
const vector3_t & surface_normal,
const scalar_t & link_length,
const std::size_t = 0 ) const

Find the endpoint for a link drawn from one mask.

Template Parameters
mask_group_tMask collection type.
index_tMask index type.
detector_tDetector type.
point3_tPoint type.
vector3_tVector type.
scalar_tLink length type.
Parameters
mask_groupCollection containing the mask.
indexSelected mask index.
detectorDetector used to resolve neighboring surfaces.
volumeVolume containing the surface.
surface_pointGlobal link origin.
surface_normalNormal at the link origin.
link_lengthLength of the displayed link.
Returns
Global endpoint of the displayed link.