NDEVR
API Documentation
NDEVRChartModel::BackgroundAppearance

Defines the visual appearance of the chart background, including grid lines, axis labels, and title. More...

Collaboration diagram for NDEVRChartModel::BackgroundAppearance:
[legend]

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, TranslatedStringaxis_names
 The display names for each axis (X, Y, Z).
Ray< 3, fltp08axis_scale = Ray<3, fltp08>(1.0)
 The scale factor applied to each axis for display.
Bounds< 3, fltp08bounds
 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, fltp08major_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, uint04minor_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.

Detailed Description

Defines the visual appearance of the chart background, including grid lines, axis labels, and title.

Definition at line 46 of file NDEVRChartModel.h.

Member Function Documentation

◆ setupMajorSpacing()

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.

Parameters
[in]dash_countThe number of major grid divisions per axis.
[in]make_pretty_numbersWhether to round spacing values to visually clean numbers.

◆ setupScale()

void NDEVRChartModel::BackgroundAppearance::setupScale ( Ray< 3, fltp08 > desired_size)

Configures the axis scaling to fit a desired chart size.

Parameters
[in]desired_sizeThe target size as a 3D ray defining scale per axis.

The documentation for this struct was generated from the following file: