Graduations on a BaseGrid Axis (H or V). More...
Public Member Functions | |
void | addGraduation (DbU::Unit) |
void | sort () |
unsigned int | getSize () const |
unsigned int | getGraduationNumber (DbU::Unit pos, bool &onGraduation) const |
const DbU::Unit & | operator[] (unsigned int i) const |
Graduations on a BaseGrid Axis (H or V).
Describe the list of graduations on either X or Y axis of a BaseGrid. Graduations correspond to cut lines and may not be evenly spaced.
Graduations are internally stored into a vector that needs to be sorted whenever new graduations are added (BaseGrid::Axis::sort()).
|
inline |
Adds a new graduation. After adding new graduations, do not forget to perform a sort.
Referenced by GCellGrid::_postCreate().
void sort | ( | ) |
Re-order the graduations after an addition.
Referenced by GCellGrid::_postCreate().
|
inline |
Returns: The number of graduations on the axis.
Referenced by GCellGrid::_postCreate().
Returns: The index of the graduation which is immediatly inferior or equal to pos
. In case of strict equality, onGraduation
is set to true.
|
inline |
Returns: The graduation at index
.
Generated by doxygen 1.8.14 on Sun Nov 21 2021 | Return to top of page |
Katabatic - Routing Toolbox | Copyright © 2008-2020 Sorbonne Universite. All rights reserved |