|
Engauge Digitizer
2
|
Limit the number of grid lines so a bad combination of start/step/stop value will not lead to extremely long delays when the step size is much too small for the start/stop values. More...
#include <GridLineLimiter.h>

Public Member Functions | |
| GridLineLimiter () | |
| Single constructor. More... | |
| void | limitForXTheta (const Document &document, const Transformation &transformation, const DocumentModelCoords &modelCoords, const MainWindowModel &modelMainWindow, const DocumentModelGridDisplay &modelGrid, double &startX, double &stepX, double &stopX) const |
| Limit step value for x/theta coordinate. This is a noop if the maximum grid line limit in MainWindowModel is not exceeded. More... | |
| void | limitForYRadius (const Document &document, const Transformation &transformation, const DocumentModelCoords &modelCoords, const MainWindowModel &modelMainWindow, const DocumentModelGridDisplay &modelGrid, double &startY, double &stepY, double &stopY) const |
| Limit step value for y/range coordinate. This is a noop if the maximum grid line limit in MainWindowModel is not exceeded. More... | |
Limit the number of grid lines so a bad combination of start/step/stop value will not lead to extremely long delays when the step size is much too small for the start/stop values.
Definition at line 23 of file GridLineLimiter.h.
| GridLineLimiter::GridLineLimiter | ( | ) |
| void GridLineLimiter::limitForXTheta | ( | const Document & | document, |
| const Transformation & | transformation, | ||
| const DocumentModelCoords & | modelCoords, | ||
| const MainWindowModel & | modelMainWindow, | ||
| const DocumentModelGridDisplay & | modelGrid, | ||
| double & | startX, | ||
| double & | stepX, | ||
| double & | stopX | ||
| ) | const |
Limit step value for x/theta coordinate. This is a noop if the maximum grid line limit in MainWindowModel is not exceeded.
Definition at line 42 of file GridLineLimiter.cpp.
| void GridLineLimiter::limitForYRadius | ( | const Document & | document, |
| const Transformation & | transformation, | ||
| const DocumentModelCoords & | modelCoords, | ||
| const MainWindowModel & | modelMainWindow, | ||
| const DocumentModelGridDisplay & | modelGrid, | ||
| double & | startY, | ||
| double & | stepY, | ||
| double & | stopY | ||
| ) | const |
Limit step value for y/range coordinate. This is a noop if the maximum grid line limit in MainWindowModel is not exceeded.
Definition at line 107 of file GridLineLimiter.cpp.
1.8.14