ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::svgtools::conversion::surface_converter Struct Reference

A functor to set the proto surfaces type and bounds to be equivalent to the mask. More...

#include <detray/plugins/svgtools/conversion/surface.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
 Convert a mask selected from an indexed range into its proto surface.
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=0u) const
 Convert one mask entry into its proto surface.

Detailed Description

A functor to set the proto surfaces type and bounds to be equivalent to the mask.

Member Function Documentation

◆ operator()() [1/2]

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

Convert a mask selected from an indexed range into its proto surface.

Template Parameters
mask_group_tGroup storing masks.
idx_range_tRange of mask indices.
transform3_tSurface transform type.
Parameters
mask_groupMask collection.
idx_rangeRange containing the selected mask.
transformTransform applied to the mask.
mask_idxOffset within the range.
Returns
Proto representation of the selected mask.

◆ operator()() [2/2]

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

Convert one mask entry into its proto surface.

Template Parameters
mask_group_tGroup storing masks.
index_tMask index type.
transform3_tSurface transform type.
Parameters
mask_groupMask collection.
indexSelected mask index.
transformTransform applied to the mask.
Returns
Proto representation of the selected mask.