|
CARLA
|
Data stored in a road map pixel. See URoadMap. More...
#include <RoadMap.h>
Public Member Functions | |
| FColor | EncodeAsColor () const |
| FRoadMapPixelData (uint16 inValue) | |
| FVector | GetDirection () const |
| Get the road direction at this pixel. | |
| float | GetDirectionAzimuthalAngle () const |
| Get the azimuth angle [-PI, PI] of the road direction (in spherical coordinates) at this pixel. | |
| bool | HasDirection () const |
| Whether this pixel has a direction defined (e.g. | |
| bool | IsRoad () const |
| Whether this pixel lies in-road. | |
Static Public Attributes | |
| static constexpr uint16 | AngleMask = (0xFFFF >> 2) |
| static constexpr int | HasDirectionRow = 14 |
| static constexpr int | IsRoadRow = 15 |
| static constexpr uint16 | MaximumEncodedAngle = (1 << 14) - 1 |
Static Private Member Functions | |
| static uint16 | Encode (bool IsRoad, bool HasDirection, const FVector &Direction) |
Private Attributes | |
| uint16 | Value |
Friends | |
| class | URoadMap |
|
inlineexplicit |
Definition at line 47 of file RoadMap.h.
References Value.
Referenced by URoadMap::GetDataAt(), and URoadMap::SaveAsPNG().
|
staticprivate |
Definition at line 44 of file RoadMap.cpp.
References GetRotatedAzimuthAngle(), HasDirection(), HasDirectionRow, IsRoad(), IsRoadRow, and MaximumEncodedAngle.
Referenced by URoadMap::SetPixelAt().
| FColor FRoadMapPixelData::EncodeAsColor | ( | ) | const |
Definition at line 52 of file RoadMap.cpp.
References GetDirectionAzimuthalAngle(), HasDirection(), and IsRoad().
|
inline |
Get the road direction at this pixel.
Undefined if !HasDirection().
Definition at line 76 of file RoadMap.h.
References GetDirectionAzimuthalAngle().
|
inline |
Get the azimuth angle [-PI, PI] of the road direction (in spherical coordinates) at this pixel.
Undefined if !HasDirection().
Definition at line 66 of file RoadMap.h.
References AngleMask, MaximumEncodedAngle, and Value.
Referenced by EncodeAsColor(), and GetDirection().
|
inline |
Whether this pixel has a direction defined (e.g.
road intersections are not off-road but neither have defined direction).
Definition at line 57 of file RoadMap.h.
References HasDirectionRow, and Value.
Referenced by Encode(), and EncodeAsColor().
|
inline |
|
friend |
|
staticconstexpr |
Definition at line 43 of file RoadMap.h.
Referenced by GetDirectionAzimuthalAngle().
|
staticconstexpr |
Definition at line 39 of file RoadMap.h.
Referenced by Encode(), and HasDirection().
|
staticconstexpr |
|
staticconstexpr |
Definition at line 41 of file RoadMap.h.
Referenced by Encode(), and GetDirectionAzimuthalAngle().
|
private |
Definition at line 88 of file RoadMap.h.
Referenced by FRoadMapPixelData(), GetDirectionAzimuthalAngle(), HasDirection(), IsRoad(), and URoadMap::URoadMap().