cgv
|
extend common plot configuration with parameters specific to 2d plot More...
#include <plot2d.h>
Public Member Functions | |
plot2d_config (const std::string &_name) | |
set default values | |
void | configure_chart (ChartType chart_type) |
configure the sub plot to a specific chart type | |
![]() | |
plot_base_config (const std::string &_name, unsigned dim) | |
set default values | |
virtual void | set_colors (const rgb &base_color) |
set all colors from reference color | |
virtual void | set_color_indices (int idx) |
virtual void | set_opacities (float _opa) |
set all opacities from reference opacity | |
virtual void | set_opacity_indices (int idx) |
virtual void | set_sizes (float _size) |
set all sizes from reference size | |
virtual void | set_size_indices (int idx) |
virtual | ~plot_base_config () |
virtual constructor in order to allow to extend the configuration for derived classes | |
Additional Inherited Members | |
![]() | |
std::string | name |
name of sub plot | |
size_t | begin_sample |
offset into samples defaults to 0, if larger than end_sample vector is split into two parts | |
size_t | end_sample |
defaults to -1 and effectively is always the end of the sample vector | |
bool | show_plot |
whether to show sub plot | |
SubPlotInfluence | sub_plot_influence |
store bit field to define which sub plots are influenced by reference values | |
mapped_rgb | ref_color |
reference color, when changed, all colors are adapted with set_colors() | |
mapped_opacity | ref_opacity |
reference opacity, when changed, all opcities are adapted with set_opacity() | |
mapped_size | ref_size |
reference size, when changed, all sizes are adapted with set_size() | |
bool | show_points |
whether to show data points | |
mapped_size | point_size |
point size in pixels | |
mapped_rgba | point_color |
point color | |
mapped_size | point_halo_width |
width of point halo in pixel | |
mapped_rgba | point_halo_color |
color of point halo | |
bool | show_lines |
whether to connect data points with lines | |
mapped_size | line_width |
line width | |
mapped_rgba | line_color |
line color | |
mapped_size | line_halo_width |
width of line halo in pixel | |
mapped_rgba | line_halo_color |
color of line halo | |
bool | show_sticks |
whether to show straight lines to the bottom of the plot, which are called sticks | |
int | stick_coordinate_index |
extended stick information | |
float | stick_base_window |
base window position of stick | |
mapped_size | stick_width |
line width of stick | |
mapped_rgba | stick_color |
color of the stick line | |
bool | show_bars |
whether to show bars | |
int | bar_coordinate_index |
extended bar information | |
float | bar_base_window |
mapped_size | bar_outline_width |
line width of bar outlines | |
mapped_size | bar_percentual_width |
percentual width of bar computed assuming a uniform y-sampling distance | |
mapped_rgba | bar_color |
bar fill color | |
mapped_rgba | bar_outline_color |
bar outline color | |
extend common plot configuration with parameters specific to 2d plot
cgv::plot::plot2d_config::plot2d_config | ( | const std::string & | _name | ) |
set default values
extend common plot configuration with parameters specific to 1d plot
Definition at line 11 of file plot2d.cxx.
References configure_chart().
|
virtual |
configure the sub plot to a specific chart type
Reimplemented from cgv::plot::plot_base_config.
Definition at line 17 of file plot2d.cxx.
References cgv::plot::plot_base_config::configure_chart(), and cgv::plot::plot_base_config::show_lines.
Referenced by plot2d_config().