ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::svgtools::styling::surface_style Struct Reference

Style applied to an actsvg proto surface. More...

#include <detray/plugins/svgtools/styling/styling.hpp>

Collaboration diagram for detray::svgtools::styling::surface_style:
[legend]

Public Member Functions

 surface_style (const actsvg::style::color &fill_color=colors::tableau_colorblind10::red_tones(0.4f).front(), actsvg::scalar stroke_width=0.4f, surface_material_style mat_style={})
 Construct a surface style with fill, stroke width, and material settings.

Public Attributes

actsvg::style::color _fill_color {}
 Fill color.
unsigned int _font_size {22u}
 Font size used for surface labels.
std::array< int, 3 > _highlight_rgb {colors::macaroni_and_cheese}
 Highlights.
std::array< int, 3 > _highlight_stroke_rgb {}
 RGB color used to highlight the surface outline.
actsvg::scalar _highlight_stroke_width {}
 Width of the highlighted surface outline.
std::vector< std::string > _highlights {}
 Names of surface features that should be highlighted.
surface_material_style _material_style {}
 Material annotation and gradient style for the surface.
unsigned int _n_segments {72u}
 Granularity of vertex approximation of arcs.
actsvg::style::color _stroke_color {}
 Color of the surface outline.
actsvg::scalar _stroke_width {10.f}
 Width of the surface outline.

Detailed Description

Style applied to an actsvg proto surface.

Constructor & Destructor Documentation

◆ surface_style()

detray::svgtools::styling::surface_style::surface_style ( const actsvg::style::color & fill_color = colors::tableau_colorblind10::red_tones(0.4f).front(),
actsvg::scalar stroke_width = 0.4f,
surface_material_style mat_style = {} )
explicit

Construct a surface style with fill, stroke width, and material settings.

Parameters
fill_colorFill color for the surface and its outline.
stroke_widthWidth of the surface outline.
mat_styleMaterial annotation and gradient settings.