49 virtual void update(
bool force=
false);
53 virtual void paintGridLines(
const RVector& space,
const RBox& box,
bool meta);
54 virtual void paintGridPoints(
const RVector& space,
const RBox& box);
62 QList<RVector> getIdealSpacing(
int minPixelSpacing,
const RVector& minSpacing,
const RVector& minMetaSpacing);
70 void setIsometric(
bool on);
75 static QList<RVector> getIdealGridSpacing(
RGraphicsView& view,
int minPixelSpacing,
const RVector& minSpacing,
const RVector& minMetaSpacing);
79 static double inchAutoscale(
double value,
double idealSpacing,
RS::Unit unit);
Q_DECLARE_METATYPE(RMath *)
Represents a box e.g.
Definition RBox.h:46
Graphics view.
Definition RGraphicsView.h:67
Abstract base class for grid implementations.
Definition RGrid.h:41
virtual bool isIsometric() const
Definition RGrid.h:78
virtual void paintCursor(const RVector &pos)=0
virtual void paintMetaGrid()=0
This is called by the graphics view this grid is attached to whenever the meta grid should be painted...
virtual void clearCache()
Definition RGrid.cpp:31
virtual RVector snapToGrid(const RVector &positionUcs)=0
Snaps the given UCS position to the grid.
virtual QString getInfoText()=0
virtual void paint()=0
This is called by the graphics view this grid is attached to whenever the grid should be painted.
virtual RS::IsoProjectionType getProjection() const
Definition RGrid.h:81
virtual void paintRuler(RRuler &ruler, qreal devicePixelRatio=1.0)=0
Grid representation.
Definition ROrthoGrid.h:41
RVector autoSpacing
Definition ROrthoGrid.h:90
RVector minSpacing
Definition ROrthoGrid.h:92
int minPixelSpacing
Definition ROrthoGrid.h:98
RVector metaSpacing
Definition ROrthoGrid.h:94
RBox gridBox
Definition ROrthoGrid.h:83
int projection
Definition ROrthoGrid.h:103
RBox viewBox
Definition ROrthoGrid.h:82
RVector spacing
Definition ROrthoGrid.h:87
int isometric
Definition ROrthoGrid.h:102
RVector minMetaSpacing
Definition ROrthoGrid.h:96
RVector autoMetaSpacing
Definition ROrthoGrid.h:95
QString infoText
Definition ROrthoGrid.h:99
RBox metaGridBox
Definition ROrthoGrid.h:84
Abstract base class for widgets that display a ruler, usually shown at the top and left of a graphics...
Definition RRuler.h:37
IsoProjectionType
Projection type for isometric projections.
Definition RS.h:381
LinearFormat
Format for length values.
Definition RS.h:470
Unit
Enum of supported units (values correspond to DXF spec).
Definition RS.h:425
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADGRID_EXPORT
Definition grid_global.h:10
void update()
Keeps the user interface up to date during long operations.
Definition simple.js:51