CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
charts Namespace Reference

Classes

struct  axis_t
 
class  data_series_t
 
struct  grid_t
 
struct  plot
 
struct  view_map_t
 
struct  view_t
 

Functions

 charts::COMPONENT (PlotAxis, { la::vec< 2 > axis_direction{0, 0};la::vec< 2 > label_direction{0, 0};la::scalar label_offset{0};la::vec< 2 > label_orientation{0, 0};la::scalar min=DEFAULT_AXIS_MIN_VALUE, max=DEFAULT_AXIS_MAX_VALUE, step=DEFAULT_AXIS_STEP;bool major_ticks_show=false;bool minor_ticks_show=false;unsigned int minor_ticks_count=4;std::string title="";vg::text_anchor_e title_align{vg::text_anchor_e::MIDDLE};la::scalar title_offset{0};std::function< cydui::components::component_holder_t(la::scalar)> label_component;std::function< void(la::scalar)> move_callback;std::function< void()> reset_callback;})
 
 charts::COMPONENT (NumericAxisLabel, { la::scalar value=0;};static cydui::components::component_holder_t builder(const la::scalar value) { return NumericAxisLabel{{value}};})
 
 charts::COMPONENT (PiRatioAxisLabel, { la::scalar value=0;};static cydui::components::component_holder_t builder(const la::scalar value) { return PiRatioAxisLabel{{value}};})
 
template<class C>
 charts::axis_t (C &) -> axis_t< C >
 
 COMPONENT (PlotGrid, { la::scalar min_x=0, max_x=1, step_x=0.1;bool major_ticks_x_show=false;bool minor_ticks_x_show=false;unsigned int minor_ticks_x_count=4;la::scalar min_y=0, max_y=1, step_y=0.1;bool major_ticks_y_show=false;bool minor_ticks_y_show=false;unsigned int minor_ticks_y_count=4;})
 
template<class C>
 charts::grid_t (C &) -> grid_t< C >
 
bool charts::operator== (const data_series_t &lhs, const data_series_t &rhs)
 
 COMPONENT (PlotView, { const data_series_t *series;la::scalar min_x=0, max_x=1;la::scalar min_y=0, max_y=1;bool show_data_points=true;bool show_lines=true;std::function< void(vg::fragment_t &, int x, int y)> data_point_fragment=[](vg::fragment_t &, int, int) {};std::function< void(vg::fragment_t &, int x1, int y1, int x2, int y2)> line_fragment=[](vg::fragment_t &, int, int, int, int) {};})
 
template<class C>
 view_t (C &) -> view_t< C >
 
template<class C>
 charts::view_map_t (C &) -> view_map_t< C >
 

Variables

constexpr la::scalar DEFAULT_AXIS_MIN_VALUE = -1.0
 
constexpr la::scalar DEFAULT_AXIS_MAX_VALUE = +1.0
 
constexpr la::scalar DEFAULT_AXIS_STEP = 0.1
 

Function Documentation

◆ axis_t()

template<class C>
charts::axis_t ( C & ) -> axis_t< C >
export

◆ COMPONENT() [1/5]

charts::COMPONENT ( NumericAxisLabel ,
{ la::scalar value=0;};static cydui::components::component_holder_t builder(const la::scalar value) { return NumericAxisLabel{{value}};}  )
export

Definition at line 260 of file plot_axis.cppm.

◆ COMPONENT() [2/5]

charts::COMPONENT ( PiRatioAxisLabel ,
{ la::scalar value=0;};static cydui::components::component_holder_t builder(const la::scalar value) { return PiRatioAxisLabel{{value}};}  )
export

Definition at line 286 of file plot_axis.cppm.

◆ COMPONENT() [3/5]

charts::COMPONENT ( PlotAxis ,
{ la::vec< 2 > axis_direction{0, 0};la::vec< 2 > label_direction{0, 0};la::scalar label_offset{0};la::vec< 2 > label_orientation{0, 0};la::scalar min=DEFAULT_AXIS_MIN_VALUE, max=DEFAULT_AXIS_MAX_VALUE, step=DEFAULT_AXIS_STEP;bool major_ticks_show=false;bool minor_ticks_show=false;unsigned int minor_ticks_count=4;std::string title="";vg::text_anchor_e title_align{vg::text_anchor_e::MIDDLE};la::scalar title_offset{0};std::function< cydui::components::component_holder_t(la::scalar)> label_component;std::function< void(la::scalar)> move_callback;std::function< void()> reset_callback;}  )
export

Definition at line 27 of file plot_axis.cppm.

◆ COMPONENT() [4/5]

charts::COMPONENT ( PlotGrid ,
{ la::scalar min_x=0, max_x=1, step_x=0.1;bool major_ticks_x_show=false;bool minor_ticks_x_show=false;unsigned int minor_ticks_x_count=4;la::scalar min_y=0, max_y=1, step_y=0.1;bool major_ticks_y_show=false;bool minor_ticks_y_show=false;unsigned int minor_ticks_y_count=4;}  )

Definition at line 20 of file plot_grid.cppm.

◆ COMPONENT() [5/5]

charts::COMPONENT ( PlotView ,
{ const data_series_t *series;la::scalar min_x=0, max_x=1;la::scalar min_y=0, max_y=1;bool show_data_points=true;bool show_lines=true;std::function< void(vg::fragment_t &, int x, int y)> data_point_fragment=[](vg::fragment_t &, int, int) {};std::function< void(vg::fragment_t &, int x1, int y1, int x2, int y2)> line_fragment=[](vg::fragment_t &, int, int, int, int) {};}  )

Definition at line 22 of file plot_view.cppm.

◆ grid_t()

template<class C>
charts::grid_t ( C & ) -> grid_t< C >
export

◆ operator==()

bool charts::operator== ( const data_series_t & lhs,
const data_series_t & rhs )
export

Definition at line 41 of file plot_series.cppm.

◆ view_map_t()

template<class C>
charts::view_map_t ( C & ) -> view_map_t< C >
export

◆ view_t()

template<class C>
charts::view_t ( C & ) -> view_t< C >

Variable Documentation

◆ DEFAULT_AXIS_MAX_VALUE

la::scalar charts::DEFAULT_AXIS_MAX_VALUE = +1.0
constexpr

Definition at line 23 of file plot_axis.cppm.

◆ DEFAULT_AXIS_MIN_VALUE

la::scalar charts::DEFAULT_AXIS_MIN_VALUE = -1.0
constexpr

Definition at line 22 of file plot_axis.cppm.

◆ DEFAULT_AXIS_STEP

la::scalar charts::DEFAULT_AXIS_STEP = 0.1
constexpr

Definition at line 24 of file plot_axis.cppm.