4 #include <cgv/media/axis_aligned_box.h>
5 #include <cgv/render/render_types.h>
6 #include <cgv/media/color.h>
7 #include <cgv/gui/provider.h>
53 void update_tick_range();
55 float min_attribute_value_backup, max_attribute_value_backup;
75 void put_backup_attribute_range(
float& min_val,
float& max_val)
const;
83 void set_attribute_range(
float _min,
float _max);
85 void backup_attribute_range();
87 void restore_attribute_range();
89 void set_attribute_minimum(
float _min);
91 void set_attribute_maximum(
float _max);
93 void set_log_scale(
bool enabled);
95 void set_log_minimum(
float _min);
97 void set_log_config(
bool enabled,
float _min);
111 float tick_space_from_attribute_space(
float value)
const;
113 float window_space_from_tick_space(
float value)
const;
115 float tick_space_from_window_space(
float value)
const;
117 float attribute_space_from_tick_space(
float value)
const;
119 float plot_space_from_window_space(
float value)
const;
121 float window_space_from_plot_space(
float value)
const;
123 float plot_space_from_attribute_space(
float value)
const;
125 float attribute_space_from_plot_space(
float value)
const;
129 void adjust_tick_marks_to_range(
unsigned max_nr_secondary_ticks);
137 #include <cgv/config/lib_end.h>
float length
tick length relative to domain extent
Definition: axis_config.h:33
int precision
number of digits after decimal point, defaults to -1 which gives adaptive precision
Definition: axis_config.h:37
tickmark configuration of one tickmark type
Definition: axis_config.h:25
float extent
extent in world space
Definition: axis_config.h:99
tick_config secondary_ticks
configuration of secondary tickmarks
Definition: axis_config.h:107
float log_minimum
minimum of logarithmic value in case that 0 is included in attribute range
Definition: axis_config.h:64
float get_attribute_max() const
read access to attrbribute maximum value
Definition: axis_config.h:73
configuration information stored per domain axis
Definition: axis_config.h:46
bool get_log_scale() const
read access to log scale flag
Definition: axis_config.h:79
float line_width
line width
Definition: axis_config.h:31
derive from this class to provide a gui to the current viewer
Definition: provider.h:64
TickType type
type of tick
Definition: axis_config.h:27
float get_log_minimum() const
read access to minimum attribute value for robust log transformation
Definition: axis_config.h:81
rgb color
color of axis
Definition: axis_config.h:103
bool log_scale
whether axis is drawn with logarithmic scale
Definition: axis_config.h:62
float min_attribute_value
minimum attribute value
Definition: axis_config.h:58
bool label
whether to show text labels at tick
Definition: axis_config.h:35
float get_attribute_min() const
read access to attrbribute minimum value
Definition: axis_config.h:71
float max_attribute_value
maximum attribute value
Definition: axis_config.h:60
std::string name
name of axis
Definition: axis_config.h:69
float get_attribute_extent() const
compute the extent in attribute space
Definition: axis_config.h:77
float step
step width between two ticks along axis
Definition: axis_config.h:29
the cgv namespace
Definition: vr_calib.cxx:9
unsigned auto_adjust_max_snd_ticks
maximum number of secondary ticks for auto adjustment of ticks on changes to attribute range
Definition: axis_config.h:66
tick_config primary_ticks
configuration of primary tickmarks
Definition: axis_config.h:105
float line_width
line width
Definition: axis_config.h:101