Scaling between coordinate systems. More...
#include <ogdf/basic/geometry.h>
Public Member Functions | |
| DScaler (const DRect &from, const DRect &to) | |
| Creates a scaler for scaling from area from to area to. | |
| ~DScaler () | |
| const DRect & | from () const |
| Returns the rectangle in the source coordinate system. | |
| double | scaleHeight (double height) |
| Scales a vertical length from source to target coordinate system. | |
| double | scaleToX (double x) |
| Transforms x-coordinates from source to target coordinate system. | |
| double | scaleToY (double y) |
| Transforms y-coordinates from source to target coordinate system. | |
| double | scaleWidth (double width) |
| Scales a horizontal length from source to target coordinate system. | |
| const DRect & | to () const |
| Returns the rectangle in the target coordinate system. | |
Private Attributes | |
| double | m_factorX |
| The scaling factor for the x-coordinates. | |
| double | m_factorY |
| The scaling factor for the y-coordinates. | |
| const DRect * | m_from |
| Rectangluar area in source coordinate system. | |
| double | m_offsetX |
| The offset for the x-coordinates. | |
| double | m_offsetY |
| The offset for the y-coordinates. | |
| const DRect * | m_to |
| Rectangluar area in target coordinate system. | |
Scaling between coordinate systems.
Definition at line 615 of file geometry.h.
Creates a scaler for scaling from area from to area to.
Definition at line 629 of file geometry.h.
|
inline |
Definition at line 637 of file geometry.h.
|
inline |
Returns the rectangle in the source coordinate system.
Definition at line 640 of file geometry.h.
|
inline |
Scales a vertical length from source to target coordinate system.
Definition at line 655 of file geometry.h.
|
inline |
Transforms x-coordinates from source to target coordinate system.
Definition at line 646 of file geometry.h.
|
inline |
Transforms y-coordinates from source to target coordinate system.
Definition at line 649 of file geometry.h.
|
inline |
Scales a horizontal length from source to target coordinate system.
Definition at line 652 of file geometry.h.
|
inline |
Returns the rectangle in the target coordinate system.
Definition at line 643 of file geometry.h.
|
private |
The scaling factor for the x-coordinates.
Definition at line 622 of file geometry.h.
|
private |
The scaling factor for the y-coordinates.
Definition at line 623 of file geometry.h.
|
private |
Rectangluar area in source coordinate system.
Definition at line 619 of file geometry.h.
|
private |
The offset for the x-coordinates.
Definition at line 624 of file geometry.h.
|
private |
The offset for the y-coordinates.
Definition at line 625 of file geometry.h.
|
private |
Rectangluar area in target coordinate system.
Definition at line 620 of file geometry.h.