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. More... | |
| ~DScaler () | |
| const DRect & | from () const |
| Returns the rectangle in the source coordinate system. More... | |
| double | scaleHeight (double height) |
| Scales a vertical length from source to target coordinate system. More... | |
| double | scaleToX (double x) |
| Transforms x-coordinates from source to target coordinate system. More... | |
| double | scaleToY (double y) |
| Transforms y-coordinates from source to target coordinate system. More... | |
| double | scaleWidth (double width) |
| Scales a horizontal length from source to target coordinate system. More... | |
| const DRect & | to () const |
| Returns the rectangle in the target coordinate system. More... | |
Private Attributes | |
| double | m_factorX |
| The scaling factor for the x-coordinates. More... | |
| double | m_factorY |
| The scaling factor for the y-coordinates. More... | |
| const DRect * | m_from |
| Rectangluar area in source coordinate system. More... | |
| double | m_offsetX |
| The offset for the x-coordinates. More... | |
| double | m_offsetY |
| The offset for the y-coordinates. More... | |
| const DRect * | m_to |
| Rectangluar area in target coordinate system. More... | |
Scaling between coordinate systems.
Definition at line 727 of file geometry.h.
Creates a scaler for scaling from area from to area to.
Definition at line 741 of file geometry.h.
|
inline |
Definition at line 749 of file geometry.h.
|
inline |
Returns the rectangle in the source coordinate system.
Definition at line 752 of file geometry.h.
|
inline |
Scales a vertical length from source to target coordinate system.
Definition at line 767 of file geometry.h.
|
inline |
Transforms x-coordinates from source to target coordinate system.
Definition at line 758 of file geometry.h.
|
inline |
Transforms y-coordinates from source to target coordinate system.
Definition at line 761 of file geometry.h.
|
inline |
Scales a horizontal length from source to target coordinate system.
Definition at line 764 of file geometry.h.
|
inline |
Returns the rectangle in the target coordinate system.
Definition at line 755 of file geometry.h.
|
private |
The scaling factor for the x-coordinates.
Definition at line 734 of file geometry.h.
|
private |
The scaling factor for the y-coordinates.
Definition at line 735 of file geometry.h.
|
private |
Rectangluar area in source coordinate system.
Definition at line 731 of file geometry.h.
|
private |
The offset for the x-coordinates.
Definition at line 736 of file geometry.h.
|
private |
The offset for the y-coordinates.
Definition at line 737 of file geometry.h.
|
private |
Rectangluar area in target coordinate system.
Definition at line 732 of file geometry.h.