|
QCAD Application Framework
CAD Application Development and Automation.
|
Grid representation. More...
#include <ROrthoGrid.h>
Public Member Functions | |
| virtual QString | getInfoText () |
| virtual void | paint (RGraphicsView &view) |
| This is called by the graphics view this grid is attached to whenever the grid should be painted. | |
| virtual void | paintMetaGrid (RGraphicsView &view) |
| This is called by the graphics view this grid is attached to whenever the meta grid should be painted. | |
| virtual void | paintRuler (RGraphicsView &view, RRuler &ruler) |
| ROrthoGrid () | |
| RVector | snapToGrid (RGraphicsView &view, const RVector &positionUcs) |
| Maps the given model position to the grid. | |
| virtual void | update (RGraphicsView &view, bool force=false) |
| Updates the grid information, in particular the grid spacing and grid region to the current view port. | |
| virtual | ~ROrthoGrid () |
Public Member Functions inherited from RGrid | |
| RGrid () | |
| virtual | ~RGrid () |
Static Public Member Functions | |
| static QList< RVector > | getIdealSpacing (const RGraphicsView &view, int minPixelSpacing, const RVector &minSpacing) |
| static bool | isFractionalFormat (RS::LinearFormat linearFormat) |
Static Private Member Functions | |
| static double | inchAutoscale (double value, double idealSpacing, RS::Unit unit) |
Private Attributes | |
| RVector | autoMetaSpacing |
| RVector | autoSpacing |
| RBox | gridBox |
| QString | infoText |
| RBox | metaGridBox |
| RVector | metaSpacing |
| int | minPixelSpacing |
| RVector | minSpacing |
| bool | scaleGrid |
| RVector | spacing |
| RBox | viewBox |
Grid representation.
This class is responsible for updating the grid and snapping to the grid.
| ROrthoGrid::ROrthoGrid | ( | ) |
|
virtual |
|
static |
|
virtual |
Implements RGrid.
|
staticprivate |
|
static |
|
virtual |
This is called by the graphics view this grid is attached to whenever the grid should be painted.
Implements RGrid.
|
virtual |
This is called by the graphics view this grid is attached to whenever the meta grid should be painted.
Implements RGrid.
|
virtual |
Implements RGrid.
|
virtual |
Maps the given model position to the grid.
Implements RGrid.
|
virtual |
Updates the grid information, in particular the grid spacing and grid region to the current view port.
Implements RGrid.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |