Functor to calculate a suitable starting point for displaying the link arrow.
More...
#include <detray/plugins/svgtools/utils/surface_kernels.hpp>
|
| 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.
|
Functor to calculate a suitable starting point for displaying the link arrow.
◆ 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_t | Mask collection type. |
| idx_range_t | Range of mask indices. |
| transform3_t | Transform type. |
- Parameters
-
| mask_group | Collection containing the masks. |
| idx_range | Range containing the selected mask. |
| transform | Transform from local to global coordinates. |
| mask_idx | Offset 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_t | Mask collection type. |
| index_t | Selected mask index type. |
| transform3_t | Transform type. |
- Parameters
-
| mask_group | Collection containing the mask. |
| index | Index of the selected mask. |
| transform | Transform from local to global coordinates. |
- Returns
- Global point at which the link starts.