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

A functor to fill the material proto grid with proto material slabs. More...

#include <detray/plugins/svgtools/conversion/surface_material.hpp>

Public Member Functions

template<typename mat_coll_t, typename index_t, concepts::transform3D transform3_t>
auto operator() (const mat_coll_t &mat_coll, const index_t &index, const transform3_t &) const
 Convert one material-map entry to the proto material grid matrix.

Detailed Description

A functor to fill the material proto grid with proto material slabs.

Member Function Documentation

◆ operator()()

template<typename mat_coll_t, typename index_t, concepts::transform3D transform3_t>
auto detray::svgtools::conversion::material_converter::operator() ( const mat_coll_t & mat_coll,
const index_t & index,
const transform3_t &  ) const

Convert one material-map entry to the proto material grid matrix.

Template Parameters
mat_coll_tMaterial collection type.
index_tEntry index type.
transform3_tTransform type used by the visitor interface.
Parameters
mat_collCollection containing material maps.
indexSelected material entry.
Returns
Material slab matrix for SVG rendering.