RADLib
RADical C++ application framework
RADUi::PlotViewport Struct Reference

Pixel viewport and axis rendering configuration. More...

#include <RADPlot.h>

Public Attributes

int width = 640
 Output image width in pixels. More...
 
int height = 320
 Output image height in pixels. More...
 
int leftMargin = 48
 Left margin reserved for labels. More...
 
int rightMargin = 16
 Right margin in pixels. More...
 
int topMargin = 16
 Top margin in pixels. More...
 
int bottomMargin = 32
 Bottom margin reserved for labels. More...
 
int xTickCount = 5
 Target number of X-axis ticks. More...
 
int yTickCount = 5
 Target number of Y-axis ticks. More...
 
bool drawXAxisLabels = false
 Draw X-axis text labels. More...
 
PlotAxisFormat xAxisFormat = PlotAxisFormat::Numeric
 X-axis label formatting. More...
 
PlotTickMode xTickMode = PlotTickMode::EvenlySpaced
 X-axis tick placement mode. More...
 
double xTickInterval = 1.0
 Fixed interval used when xTickMode is FixedInterval. More...
 
PlotAxisLabelMode xAxisLabelMode = PlotAxisLabelMode::WindowRelative
 X-axis label value mode. More...
 

Detailed Description

Pixel viewport and axis rendering configuration.

Member Data Documentation

◆ bottomMargin

int RADUi::PlotViewport::bottomMargin = 32

Bottom margin reserved for labels.

◆ drawXAxisLabels

bool RADUi::PlotViewport::drawXAxisLabels = false

Draw X-axis text labels.

◆ height

int RADUi::PlotViewport::height = 320

Output image height in pixels.

◆ leftMargin

int RADUi::PlotViewport::leftMargin = 48

Left margin reserved for labels.

◆ rightMargin

int RADUi::PlotViewport::rightMargin = 16

Right margin in pixels.

◆ topMargin

int RADUi::PlotViewport::topMargin = 16

Top margin in pixels.

◆ width

int RADUi::PlotViewport::width = 640

Output image width in pixels.

◆ xAxisFormat

PlotAxisFormat RADUi::PlotViewport::xAxisFormat = PlotAxisFormat::Numeric

X-axis label formatting.

◆ xAxisLabelMode

PlotAxisLabelMode RADUi::PlotViewport::xAxisLabelMode = PlotAxisLabelMode::WindowRelative

X-axis label value mode.

◆ xTickCount

int RADUi::PlotViewport::xTickCount = 5

Target number of X-axis ticks.

◆ xTickInterval

double RADUi::PlotViewport::xTickInterval = 1.0

Fixed interval used when xTickMode is FixedInterval.

◆ xTickMode

PlotTickMode RADUi::PlotViewport::xTickMode = PlotTickMode::EvenlySpaced

X-axis tick placement mode.

◆ yTickCount

int RADUi::PlotViewport::yTickCount = 5

Target number of Y-axis ticks.


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