QCAD
Open Source 2D CAD
|
Abstract base class for grid implementations. More...
#include <RGrid.h>
Public Member Functions | |
virtual void | clearCache () |
RDocument * | getDocument () const |
virtual QString | getInfoText ()=0 |
virtual RS::IsoProjectionType | getProjection () const |
int | getViewportNumber () const |
Copyright (c) 2011-2018 by Andrew Mustun. More... | |
virtual bool | isIsometric () const |
bool | isVisible () const |
virtual void | paint ()=0 |
This is called by the graphics view this grid is attached to whenever the grid should be painted. More... | |
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. More... | |
virtual void | paintRuler (RRuler &ruler, qreal devicePixelRatio=1.0)=0 |
RGrid (RGraphicsView &view) | |
void | setVisible (bool on) |
virtual RVector | snapToGrid (const RVector &positionUcs)=0 |
Snaps the given UCS position to the grid. More... | |
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 grid needs to be updated. More... | |
virtual | ~RGrid () |
Protected Attributes | |
RGraphicsView & | view |
int | visible |
Abstract base class for grid implementations.
A grid class can for example implement an orthogonal grid or a polar grid.
|
inline |
|
inlinevirtual |
|
virtual |
Reimplemented in ROrthoGrid.
RDocument * RGrid::getDocument | ( | ) | const |
|
pure virtual |
Implemented in ROrthoGrid.
|
inlinevirtual |
Reimplemented in ROrthoGrid.
int RGrid::getViewportNumber | ( | ) | const |
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
|
inlinevirtual |
Reimplemented in ROrthoGrid.
bool RGrid::isVisible | ( | ) | const |
|
pure virtual |
This is called by the graphics view this grid is attached to whenever the grid should be painted.
Implemented in ROrthoGrid.
|
pure virtual |
Implemented in ROrthoGrid.
|
pure virtual |
This is called by the graphics view this grid is attached to whenever the meta grid should be painted.
Implemented in ROrthoGrid.
|
pure virtual |
Implemented in ROrthoGrid.
void RGrid::setVisible | ( | bool | on | ) |
Snaps the given UCS position to the grid.
Implemented in ROrthoGrid.
|
pure virtual |
This is called by the graphics view this grid is attached to whenever the view port changes and the grid needs to be updated.
Implemented in ROrthoGrid.
|
protected |
|
mutableprotected |