4#include <cgv/media/axis_aligned_box.h>
5#include <cgv/media/color.h>
6#include <cgv/gui/provider.h>
52 void update_tick_range();
54 float min_attribute_value_backup, max_attribute_value_backup;
74 void put_backup_attribute_range(
float& min_val,
float& max_val)
const;
82 void set_attribute_range(
float _min,
float _max);
84 void backup_attribute_range();
86 void restore_attribute_range();
88 void set_attribute_minimum(
float _min);
90 void set_attribute_maximum(
float _max);
92 void set_log_scale(
bool enabled);
94 void set_log_minimum(
float _min);
96 void set_log_config(
bool enabled,
float _min);
116 float tick_space_from_attribute_space(
float value)
const;
118 float window_space_from_tick_space(
float value)
const;
120 float tick_space_from_window_space(
float value)
const;
122 float attribute_space_from_tick_space(
float value)
const;
124 float plot_space_from_window_space(
float value)
const;
126 float window_space_from_plot_space(
float value)
const;
128 float plot_space_from_attribute_space(
float value)
const;
130 float attribute_space_from_plot_space(
float value)
const;
134 void adjust_tick_marks_to_range(
unsigned max_nr_secondary_ticks);
142#include <cgv/config/lib_end.h>
base class for all classes that can be registered with support for dynamic properties (see also secti...
derive from this class to provide a gui to the current viewer
configuration information stored per domain axis
unsigned auto_adjust_max_snd_ticks
maximum number of secondary ticks for auto adjustment of ticks on changes to attribute range
tick_config primary_ticks
configuration of primary tickmarks
float extent
extent in world space
float log_minimum
minimum of logarithmic value in case that 0 is included in attribute range
bool get_log_scale() const
read access to log scale flag
float extent_scaling
potential constraint for scaling of plot extent in world space
float get_log_minimum() const
read access to minimum attribute value for robust log transformation
bool log_scale
whether axis is drawn with logarithmic scale
float line_width
line width
float max_attribute_value
maximum attribute value
std::string name
name of axis
float get_attribute_max() const
read access to attrbribute maximum value
float min_attribute_value
minimum attribute value
tick_config secondary_ticks
configuration of secondary tickmarks
float get_attribute_min() const
read access to attrbribute minimum value
float get_attribute_extent() const
compute the extent in attribute space
bool multi_axis_ticks
whether to show tick marks on both axes boundaries
tickmark configuration of one tickmark type
float line_width
line width
bool label
whether to show text labels at tick
int precision
number of digits after decimal point, defaults to -1 which gives adaptive precision
float step
step width between two ticks along axis
float length
tick length relative to domain extent
TickType type
type of tick