Skip to content
Commit a3ced4f9 authored by Raphael Cojocaru's avatar Raphael Cojocaru
Browse files

AltvsTime tool implemented with QCustomPlot library. Here is a brief overview on my work:

- Set up the graph window
- Set up the axis labels, Date time format and tick step ( the time's unitsneed to be discrete like: 01:00, 02:00 )
- Set up the Top X Axis ( "Local Sidereal Time" )
- Set up the interaction set: Zoom/Pan are now ready for use
- Set up the margins, for a nice view ( e.g. in the right side, the graph windowwas not closed before)
- Set up the Zoom/Pan activated for the Top X Axis
- Because I need a kind of limitation regarding the Zoom/Pan for the currentcurve, I have used:
1. 2 variables for minimum and maximum altitude from the current graph ( forevery curve that we insert into our graph, the minAlt and maxAlt variables areupdated )
2. these variables are extremely useful to limit the Y axis to our graph most insignificantcurve regarding the minimum and maximum value
3. 2 new slots: onXRangeChanged and onYRangeChanged, to update and limit theaxis
- With all of these, I have connected the slots to the axis, with one remark:the xAxis and xAxis2 are connected through the same slot, to behave as same
- Rewrite the code for making existing curves with thin and red pencil
- A short algorithm for setting up the tick step for xAxis and xAxis2 dependingon the Zoom level ( like: a half an hour after some zoom level: 1:30, 2:00; a quarter hour after another zoom level and so on. this is necessary becausethere wouldn't be anything to see if the initial tick step would be maintainedwhile continuously zooming )
- Rewrite the method for removing all curves from the plot ( cleaning the graph)
parent bb6eafbf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment