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

Public Member Functions

 domain_config (unsigned dim, unsigned nr_attrs)
 set default values based on plot dimension and nr additional attribute axes
 

Public Attributes

bool show_domain
 whether to show the coordinate axes including tickmarks and labels
 
bool fill
 whether to fill the domain
 
std::string title
 plot title
 
bool show_title
 whether to show the plot title
 
bool show_sub_plot_names
 whether to show the sub plot names
 
vecn title_pos
 position of title
 
rgb color
 color of the domain fill
 
rgba title_color
 color of the title
 
float reference_size
 store size of virtual pixel based measurement
 
float blend_width_in_pixel
 store blend width in screen pixels used for antialiasing
 
std::vector< axis_configaxis_configs
 store a vector of axis configurations (2/3 for plot2/3d plus several attribute axes)
 
unsigned label_font_index
 store index of selected label font
 
float label_font_size
 store selected label font size
 
cgv::media::font::FontFaceAttributes label_ffa
 store selected label font face attributes
 
unsigned title_font_index
 store index of selected title font
 
float title_font_size
 store selected title font size
 
cgv::media::font::FontFaceAttributes title_ffa
 store selected title font face attributes
 

Detailed Description

Definition at line 33 of file plot_base.h.

Constructor & Destructor Documentation

◆ domain_config()

cgv::plot::domain_config::domain_config ( unsigned  dim,
unsigned  nr_attrs 
)

set default values based on plot dimension and nr additional attribute axes

Definition at line 29 of file plot_base.cxx.

References blend_width_in_pixel, fill, label_ffa, label_font_index, label_font_size, reference_size, show_domain, show_sub_plot_names, show_title, title_color, title_ffa, title_font_index, title_font_size, title_pos, and cgv::math::vec< T >::zeros().

Member Data Documentation

◆ axis_configs

◆ blend_width_in_pixel

float cgv::plot::domain_config::blend_width_in_pixel

store blend width in screen pixels used for antialiasing

Definition at line 54 of file plot_base.h.

Referenced by domain_config(), and cgv::plot::plot3d::plot3d().

◆ color

rgb cgv::plot::domain_config::color

color of the domain fill

Definition at line 48 of file plot_base.h.

◆ fill

bool cgv::plot::domain_config::fill

whether to fill the domain

Definition at line 38 of file plot_base.h.

Referenced by domain_config().

◆ label_ffa

cgv::media::font::FontFaceAttributes cgv::plot::domain_config::label_ffa

store selected label font face attributes

Definition at line 62 of file plot_base.h.

Referenced by domain_config(), and cgv::plot::plot_base::set_label_font().

◆ label_font_index

unsigned cgv::plot::domain_config::label_font_index

store index of selected label font

Definition at line 58 of file plot_base.h.

Referenced by domain_config(), cgv::plot::plot_base::ensure_font_names(), and cgv::plot::plot_base::set_label_font().

◆ label_font_size

float cgv::plot::domain_config::label_font_size

store selected label font size

Definition at line 60 of file plot_base.h.

Referenced by domain_config(), and cgv::plot::plot_base::set_label_font().

◆ reference_size

float cgv::plot::domain_config::reference_size

store size of virtual pixel based measurement

Definition at line 52 of file plot_base.h.

Referenced by domain_config().

◆ show_domain

bool cgv::plot::domain_config::show_domain

whether to show the coordinate axes including tickmarks and labels

Definition at line 36 of file plot_base.h.

Referenced by domain_config().

◆ show_sub_plot_names

bool cgv::plot::domain_config::show_sub_plot_names

whether to show the sub plot names

Definition at line 44 of file plot_base.h.

Referenced by cgv::plot::plot_base::create_plot_gui(), and domain_config().

◆ show_title

bool cgv::plot::domain_config::show_title

whether to show the plot title

Definition at line 42 of file plot_base.h.

Referenced by cgv::plot::plot_base::create_plot_gui(), and domain_config().

◆ title

std::string cgv::plot::domain_config::title

plot title

Definition at line 40 of file plot_base.h.

Referenced by cgv::plot::plot_base::create_plot_gui(), and cgv::plot::plot2d::plot2d().

◆ title_color

rgba cgv::plot::domain_config::title_color

color of the title

Definition at line 50 of file plot_base.h.

Referenced by domain_config().

◆ title_ffa

cgv::media::font::FontFaceAttributes cgv::plot::domain_config::title_ffa

store selected title font face attributes

Definition at line 68 of file plot_base.h.

Referenced by domain_config().

◆ title_font_index

unsigned cgv::plot::domain_config::title_font_index

store index of selected title font

Definition at line 64 of file plot_base.h.

Referenced by cgv::plot::plot_base::create_plot_gui(), domain_config(), and cgv::plot::plot_base::ensure_font_names().

◆ title_font_size

float cgv::plot::domain_config::title_font_size

store selected title font size

Definition at line 66 of file plot_base.h.

Referenced by cgv::plot::plot_base::create_plot_gui(), and domain_config().

◆ title_pos

vecn cgv::plot::domain_config::title_pos

position of title

Definition at line 46 of file plot_base.h.

Referenced by cgv::plot::plot_base::create_plot_gui(), and domain_config().


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