![]() |
NDEVR
API Documentation
|
Defines the visual appearance of the chart background, including grid lines, axis labels, and title. More...
Public Member Functions | |
| void | setupMajorSpacing (const Vertex< 3, uint04 > &dash_count, bool make_pretty_numbers) |
| Configures major grid line spacing based on a desired number of divisions. | |
| void | setupScale (Ray< 3, fltp08 > desired_size) |
| Configures the axis scaling to fit a desired chart size. | |
Public Attributes | |
| Vector< 3, TranslatedString > | axis_names |
| The display names for each axis (X, Y, Z). | |
| Ray< 3, fltp08 > | axis_scale = Ray<3, fltp08>(1.0) |
| The scale factor applied to each axis for display. | |
| Bounds< 3, fltp08 > | bounds |
| The data bounds of the chart area. | |
| RGBColor | major_color = RGBColor(128, 128, 128) |
| The color of major grid lines. | |
| Font | major_font |
| The font used for major axis tick labels. | |
| Ray< 3, fltp08 > | major_spacing = Ray<3, fltp08>(5.0) |
| The spacing between major grid lines per axis. | |
| RGBColor | minor_color = RGBColor(128, 128, 128, 128) |
| The color of minor grid lines (semi-transparent by default). | |
| Font | minor_font |
| The font used for minor axis tick labels. | |
| Vertex< 3, uint04 > | minor_spacing = Vertex<3, uint04>(5U) |
| The number of minor grid subdivisions between major lines per axis. | |
| TranslatedString | title |
| The chart title displayed above the chart. | |
| Font | title_font |
| The font used for the chart title. | |
Defines the visual appearance of the chart background, including grid lines, axis labels, and title.
Definition at line 46 of file NDEVRChartModel.h.
| void NDEVRChartModel::BackgroundAppearance::setupMajorSpacing | ( | const Vertex< 3, uint04 > & | dash_count, |
| bool | make_pretty_numbers ) |
Configures major grid line spacing based on a desired number of divisions.
| [in] | dash_count | The number of major grid divisions per axis. |
| [in] | make_pretty_numbers | Whether to round spacing values to visually clean numbers. |
| void NDEVRChartModel::BackgroundAppearance::setupScale | ( | Ray< 3, fltp08 > | desired_size | ) |
Configures the axis scaling to fit a desired chart size.
| [in] | desired_size | The target size as a 3D ray defining scale per axis. |