Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart Abstraction Layer #29

Open
Biehrer opened this issue Oct 23, 2020 · 0 comments
Open

Chart Abstraction Layer #29

Biehrer opened this issue Oct 23, 2020 · 0 comments
Labels
refactoring something needs to be in another place or better structured

Comments

@Biehrer
Copy link
Owner

Biehrer commented Oct 23, 2020

Consider a different abstraction layer for future charts:

Sweep_Chart : extends XY_Chart
-ogl_sweep_chart_buffer

  • ...

XY_Chart : extends Base_Chart

  • min / max y-value
  • timerange_ms (min/max x-value)
  • major/minor tick values (x-/y-value)
  • ...

Base_Chart

  • Label information
  • Plot area
  • Plot geometry
  • ConvertToImage()
  • ConvertToFile()
  • ...

=> This makes it easier to implement other chart types as "Pie charts", "Histograms" => they only need to inherit from Base_Chart

@Biehrer Biehrer added the refactoring something needs to be in another place or better structured label Oct 23, 2020
@Biehrer Biehrer changed the title Abstraction Layer Chart Abstraction Layer Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring something needs to be in another place or better structured
Projects
None yet
Development

No branches or pull requests

1 participant