Rework AxisActor2D Ticks positions
Rework the vtkAxisActor2D core algorithm. This class generates:
- a polydata, containing one main line (the Axis) and smaller orthogonal lines (
Ticks) - a list of displayed values (
Labels) contained inRange, forwarded to TextActors/TextMappers
Labels are associated to Major Ticks. There can be intermediate, minor ticks between them.
This MR contains:
- A refactor, to split the main algo into methods for each step of the work
- Adjust the given
RangeandNumberOfTicksdepending on configuration (RulerMode,AdjustTicks) - Build a list of Ticks value and position
- Generate polydata
- Update TextActors
- Update Title
- Adjust the given
- Some improvements: there were different cases were labels were badly associated to ticks
- wrong number of displayed labels
- wrong number of computed labels
- displayed labels not matching actual ticks position (incorrect for RulerMode)
Edited by Nicolas Vuaille