31 #ifndef GLVIEWER_COORDSYSTEM_H
32 #define GLVIEWER_COORDSYSTEM_H
37 #pragma warning( disable:4251 )
68 double XUnit = 1.0,
double YUnit = 1.0,
double Rotation = 0.0 );
71 void getOrigin(
double& x,
double& y )
const;
73 void setOrigin(
double x,
double y );
76 void getUnits(
double& x,
double& y )
const;
78 void setUnits(
double x,
double y );
81 double getRotation()
const;
83 void setRotation(
double rotation );
88 void setType(
CSType type );
100 virtual void toReference(
double& x,
double& y );
102 virtual void fromReference(
double& x,
double& y );
106 #pragma warning ( default:4251 )
#define GLVIEWER_API
Macro for exports.
Definition: GLViewer.h:37
Class implementing mathematical model of 2D coordinate system.
Definition: GLViewer_CoordSystem.h:45
CSType
A type of coordinate system.
Definition: GLViewer_CoordSystem.h:49
@ Cartesian
Definition: GLViewer_CoordSystem.h:50
double myX0
The coordinates of origin in the reference CS.
Definition: GLViewer_CoordSystem.h:56
double myXUnit
The lengths of axis units in the reference unit.
Definition: GLViewer_CoordSystem.h:58
double myRotation
The rotation in radians relative to reference CS.
Definition: GLViewer_CoordSystem.h:60
CSType myType
In the polar CS myYUnit is ignored, but myXUnit is the unit of polar radius
Definition: GLViewer_CoordSystem.h:63