#include <Zoom.h>
Public Member Functions | |
| ZoomFactor (float x=0, float y=0, float zoom=1, int resX=1, int resY=1) | |
| void | setOrg (QCoords a) |
| QPoint | convert (float, float) |
| QCoords | invert (int, int) |
| QCoords | invert (QPoint) |
| void | setZoomFactor (double) |
| void | setRes (int resX, int resY) |
| double | getZoomFactor () |
| double | convertYLength (double) |
| double | convertXLength (double) |
| double | getEffectiveXZoomFactor () |
| double | getEffectiveYZoomFactor () |
| double | getZoom () |
| void | zoom (float, QCoords) |
| QString | toString () |
Public Attributes | |
| double | x |
| double | y |
|
||||||||||||||||||||||||
|
In this method I use a static value of 700/210 this is the ratio that i use for converting millimeter to pixel. But there should be a thinking of all the considerations of
|
|
||||||||||||
|
Convert a point in the system cooordinate to the view coordinate system * |
|
|
Convert an x length in the system cooordinate to the view coordinate system
|
|
|
Convert an y length in the system cooordinate to the view coordinate system
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Converts the size |
|
|
set the origin of a zoom factor * |
|
||||||||||||
|
sets the resolution
|
|
|
set the zoom factor
|
|
|
For debug purpose only
|
|
||||||||||||
|
|
1.3.6