|
LuciadCPillar 2025.0.07
|
Describes a position relative to an anchor, with a rotation, alignment and offset. More...
#include <luciad/drawing/RelativePosition.h>
Public Member Functions | |
| RelativePosition (Angle rotation, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, double offsetX, double offsetY) | |
| Creates a new RelativePosition with the given values. More... | |
| RelativePosition (const RelativePosition &other)=default | |
| bool | operator!= (const RelativePosition &other) const |
| RelativePosition & | operator= (const RelativePosition &other)=default |
| bool | operator== (const RelativePosition &other) const |
Static Public Member Functions | |
| static RelativePosition | center () |
| Returns a RelativePosition located on the anchor point with no offset. More... | |
| static RelativePosition | east (double offset) |
| Returns a RelativePosition located to the east of the anchor point with the given offset. More... | |
| static RelativePosition | north (double offset) |
| Returns a RelativePosition located to the north of the anchor point with the given offset. More... | |
| static RelativePosition | northEast (double offsetNorth, double offsetEast) |
| Returns a RelativePosition located to the north-east of the anchor point with the given offsets. More... | |
| static RelativePosition | northWest (double offsetNorth, double offsetWest) |
| Returns a RelativePosition located to the north-west of the anchor point with the given offsets. More... | |
| static RelativePosition | south (double offset) |
| Returns a RelativePosition located to the south of the anchor point with the given offset. More... | |
| static RelativePosition | southEast (double offsetSouth, double offsetEast) |
| Returns a RelativePosition located to the south-east of the anchor point with the given offsets. More... | |
| static RelativePosition | southWest (double offsetSouth, double offsetWest) |
| Returns a RelativePosition located to the south-west of the anchor point with the given offsets. More... | |
| static RelativePosition | west (double offset) |
| Returns a RelativePosition located to the west of the anchor point with the given offset. More... | |
Public Attributes | |
| HorizontalAlignment | horizontalAlignment = HorizontalAlignment::Center |
| the horizontal alignment of this RelativePosition. More... | |
| double | offsetX = 0 |
| the horizontal offset, expressed in pixels and relative to the anchor point. More... | |
| double | offsetY = 0 |
| the vertical offset, expressed in pixels and relative to the anchor point. More... | |
| Angle | rotation = 0 |
| the rotation around the anchor point. More... | |
| VerticalAlignment | verticalAlignment = VerticalAlignment::Center |
| the vertical alignment of this RelativePosition. More... | |
Describes a position relative to an anchor, with a rotation, alignment and offset.
|
default |
| luciad::RelativePosition::RelativePosition | ( | Angle | rotation, |
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| double | offsetX, | ||
| double | offsetY | ||
| ) |
Creates a new RelativePosition with the given values.
| rotation | the rotation around the anchor point. |
| horizontalAlignment | the horizontal alignment of this RelativePosition. |
| verticalAlignment | the vertical alignment of this RelativePosition. |
| offsetX | the horizontal offset, expressed in pixels and relative to the anchor point. |
| offsetY | the vertical offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located on the anchor point with no offset.
|
static |
Returns a RelativePosition located to the east of the anchor point with the given offset.
| offset | : the horizontal offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located to the north of the anchor point with the given offset.
| offset | : the vertical offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located to the north-east of the anchor point with the given offsets.
| offsetNorth | : the vertical offset, expressed in pixels and relative to the anchor point. |
| offsetEast | : the horizontal offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located to the north-west of the anchor point with the given offsets.
| offsetNorth | : the vertical offset, expressed in pixels and relative to the anchor point. |
| offsetWest | : the horizontal offset, expressed in pixels and relative to the anchor point. |
|
inline |
|
default |
|
inline |
|
static |
Returns a RelativePosition located to the south of the anchor point with the given offset.
| offset | : the vertical offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located to the south-east of the anchor point with the given offsets.
| offsetSouth | : the vertical offset, expressed in pixels and relative to the anchor point. |
| offsetEast | : the horizontal offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located to the south-west of the anchor point with the given offsets.
| offsetSouth | : the vertical offset, expressed in pixels and relative to the anchor point. |
| offsetWest | : the horizontal offset, expressed in pixels and relative to the anchor point. |
|
static |
Returns a RelativePosition located to the west of the anchor point with the given offset.
| offset | : the horizontal offset, expressed in pixels and relative to the anchor point. |
| HorizontalAlignment luciad::RelativePosition::horizontalAlignment = HorizontalAlignment::Center |
the horizontal alignment of this RelativePosition.
| double luciad::RelativePosition::offsetX = 0 |
the horizontal offset, expressed in pixels and relative to the anchor point.
| double luciad::RelativePosition::offsetY = 0 |
the vertical offset, expressed in pixels and relative to the anchor point.
| Angle luciad::RelativePosition::rotation = 0 |
the rotation around the anchor point.
| VerticalAlignment luciad::RelativePosition::verticalAlignment = VerticalAlignment::Center |
the vertical alignment of this RelativePosition.