|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
44 virtual void clearCache();
56 virtual void update(
bool force=
false) = 0;
83 int getViewportNumber()
const;
87 void setVisible(
bool on);
88 bool isVisible()
const;
virtual RVector snapToGrid(const RVector &positionUcs)=0
Snaps the given UCS position to the grid.
virtual void paintCursor(const RVector &pos)=0
void getDocument()
Returns the current RDocument or undefined.
Definition: simple.js:59
virtual void paint()=0
This is called by the graphics view this grid is attached to whenever the grid should be painted.
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
virtual RS::IsoProjectionType getProjection() const
Definition: RGrid.h:79
virtual void update(bool force=false)=0
This is called by the graphics view this grid is attached to whenever the view port changes and the g...
virtual bool isIsometric() const
Definition: RGrid.h:76
RGraphicsView & view
Definition: RGrid.h:91
Graphics view.
Definition: RGraphicsView.h:58
virtual ~RGrid()
Definition: RGrid.h:42
Q_DECLARE_METATYPE(RMath *)
Abstract base class for widgets that display a ruler, usually shown at the top and left of a graphics...
Definition: RRuler.h:37
RGrid(RGraphicsView &view)
Definition: RGrid.h:41
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 paintRuler(RRuler &ruler, qreal devicePixelRatio=1.0)=0
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
Abstract base class for grid implementations.
Definition: RGrid.h:39
virtual QString getInfoText()=0
@ NoProjection
No projection (2d x/y)
Definition: RS.h:274
IsoProjectionType
Projection type for isometric projections.
Definition: RS.h:273
int visible
Definition: RGrid.h:94
#define QCADCORE_EXPORT
Definition: core_global.h:10