QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RGrid Class Reference

Abstract base class for grid implementations. More...

#include <RGrid.h>

Inheritance diagram for RGrid:
ROrthoGrid

List of all members.

Public Member Functions

virtual QString getInfoText ()=0
virtual void paint (RGraphicsView &view)=0
 This is called by the graphics view this grid is attached to whenever the grid should be painted.
virtual void paintMetaGrid (RGraphicsView &view)=0
 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)=0
 RGrid ()
virtual RVector snapToGrid (RGraphicsView &view, const RVector &positionUcs)=0
 Snaps the given UCS position to the grid.
virtual void update (RGraphicsView &view, 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.
virtual ~RGrid ()

Detailed Description

Abstract base class for grid implementations.

A grid class can for example implement an orthogonal grid or a polar grid.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RGrid::RGrid ( )
inline
virtual RGrid::~RGrid ( )
inlinevirtual

Member Function Documentation

virtual QString RGrid::getInfoText ( )
pure virtual

Implemented in ROrthoGrid.

virtual void RGrid::paint ( RGraphicsView view)
pure virtual

This is called by the graphics view this grid is attached to whenever the grid should be painted.

Implemented in ROrthoGrid.

virtual void RGrid::paintMetaGrid ( RGraphicsView view)
pure virtual

This is called by the graphics view this grid is attached to whenever the meta grid should be painted.

Implemented in ROrthoGrid.

virtual void RGrid::paintRuler ( RGraphicsView view,
RRuler ruler 
)
pure virtual

Implemented in ROrthoGrid.

virtual RVector RGrid::snapToGrid ( RGraphicsView view,
const RVector positionUcs 
)
pure virtual

Snaps the given UCS position to the grid.

Implemented in ROrthoGrid.

virtual void RGrid::update ( RGraphicsView view,
bool  force = false 
)
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.


The documentation for this class was generated from the following file: