Functor to calculate a suitable end 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::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.
|
Functor to calculate a suitable end point for displaying the link arrow.
◆ 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_t | Mask collection type. |
| idx_range_t | Mask index range type. |
| detector_t | Detector type. |
| point3_t | Point type. |
| vector3_t | Vector type. |
| scalar_t | Link length type. |
- Parameters
-
| mask_group | Collection containing the masks. |
| idx_range | Range containing the selected mask. |
| detector | Detector used to resolve neighboring surfaces. |
| volume | Volume containing the surface. |
| surface_point | Global link origin. |
| surface_normal | Normal at the link origin. |
| link_length | Length of the displayed link. |
| mask_idx | Offset 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_t | Mask collection type. |
| index_t | Mask index type. |
| detector_t | Detector type. |
| point3_t | Point type. |
| vector3_t | Vector type. |
| scalar_t | Link length type. |
- Parameters
-
| mask_group | Collection containing the mask. |
| index | Selected mask index. |
| detector | Detector used to resolve neighboring surfaces. |
| volume | Volume containing the surface. |
| surface_point | Global link origin. |
| surface_normal | Normal at the link origin. |
| link_length | Length of the displayed link. |
- Returns
- Global endpoint of the displayed link.