cgv
Loading...
Searching...
No Matches
cgv::plot::tick_config Struct Reference

tickmark configuration of one tickmark type More...

#include <axis_config.h>

Public Member Functions

bool operator== (const tick_config &tc) const
 implement equality check
 
 tick_config (bool primary)
 set tick config defaults
 

Public Attributes

TickType type
 type of tick
 
float step
 step width between two ticks along axis
 
float line_width
 line width
 
float length
 tick length relative to domain extent
 
bool label
 whether to show text labels at tick
 
int precision
 number of digits after decimal point, defaults to -1 which gives adaptive precision
 

Detailed Description

tickmark configuration of one tickmark type

Definition at line 23 of file axis_config.h.

Constructor & Destructor Documentation

◆ tick_config()

cgv::plot::tick_config::tick_config ( bool  primary)

set tick config defaults

Definition at line 13 of file axis_config.cxx.

References label, length, line_width, precision, step, and type.

Member Function Documentation

◆ operator==()

bool cgv::plot::tick_config::operator== ( const tick_config tc) const

implement equality check

Definition at line 7 of file axis_config.cxx.

References label, length, precision, step, and type.

Member Data Documentation

◆ label

bool cgv::plot::tick_config::label

whether to show text labels at tick

Definition at line 34 of file axis_config.h.

Referenced by operator==(), and tick_config().

◆ length

float cgv::plot::tick_config::length

tick length relative to domain extent

Definition at line 32 of file axis_config.h.

Referenced by operator==(), and tick_config().

◆ line_width

float cgv::plot::tick_config::line_width

line width

Definition at line 30 of file axis_config.h.

Referenced by tick_config().

◆ precision

int cgv::plot::tick_config::precision

number of digits after decimal point, defaults to -1 which gives adaptive precision

Definition at line 36 of file axis_config.h.

Referenced by operator==(), and tick_config().

◆ step

float cgv::plot::tick_config::step

step width between two ticks along axis

Definition at line 28 of file axis_config.h.

Referenced by cgv::plot::axis_config::adjust_tick_marks_to_range(), operator==(), and tick_config().

◆ type

TickType cgv::plot::tick_config::type

type of tick

Definition at line 26 of file axis_config.h.

Referenced by operator==(), and tick_config().


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