#include <LaneSection.h>
Public Member Functions | |
bool | ContainsLane (LaneId id) const |
double | GetDistance () const |
SectionId | GetId () const |
Lane * | GetLane (const LaneId id) |
const Lane * | GetLane (const LaneId id) const |
std::map< LaneId, Lane > & | GetLanes () |
const std::map< LaneId, Lane > & | GetLanes () const |
std::vector< Lane * > | GetLanesOfType (Lane::LaneType type) |
double | GetLength () const |
Road * | GetRoad () const |
LaneSection (SectionId id, double s) | |
Private Attributes | |
const SectionId | _id = 0u |
geom::CubicPolynomial | _lane_offset |
std::map< LaneId, Lane > | _lanes |
Road * | _road = nullptr |
const double | _s = 0.0 |
friend | MapBuilder |
Additional Inherited Members | |
Private Member Functions inherited from carla::MovableNonCopyable | |
MovableNonCopyable ()=default | |
MovableNonCopyable (const MovableNonCopyable &)=delete | |
MovableNonCopyable (MovableNonCopyable &&)=default | |
MovableNonCopyable & | operator= (const MovableNonCopyable &)=delete |
MovableNonCopyable & | operator= (MovableNonCopyable &&)=default |
Definition at line 24 of file LaneSection.h.
|
inlineexplicit |
Definition at line 27 of file LaneSection.h.
References GetDistance(), GetLane(), GetLength(), and GetRoad().
|
inline |
Definition at line 39 of file LaneSection.h.
References _lanes, GetId(), GetLanes(), and GetLanesOfType().
Referenced by carla::road::IsLanePresent().
double carla::road::LaneSection::GetDistance | ( | ) | const |
Definition at line 13 of file LaneSection.cpp.
References _s.
Referenced by carla::geom::MeshFactory::GenerateLaneMarksForCenterLine(), carla::geom::MeshFactory::GenerateLaneMarksForNotCenterLine(), carla::geom::MeshFactory::GenerateOrderedWithMaxLen(), carla::geom::MeshFactory::GenerateWallsWithMaxLen(), carla::geom::MeshFactory::GenerateWithMaxLen(), carla::road::Lane::GetDistance(), carla::road::MapBuilder::GetLaneNext(), and LaneSection().
SectionId carla::road::LaneSection::GetId | ( | ) | const |
Definition at line 27 of file LaneSection.cpp.
References _id.
Referenced by ContainsLane(), carla::road::LaneSectionMap::Emplace(), carla::road::ForEachDrivableLaneImpl(), and carla::road::ForEachLaneImpl().
Definition at line 31 of file LaneSection.cpp.
References _lanes.
Referenced by get_total_road_marks(), carla::road::MapBuilder::GetEdgeLanePointer(), carla::road::MapBuilder::GetLaneNext(), and LaneSection().
Definition at line 39 of file LaneSection.cpp.
References _lanes.
Definition at line 47 of file LaneSection.cpp.
References _lanes.
Referenced by ContainsLane(), carla::road::ForEachDrivableLaneImpl(), carla::road::ForEachLaneImpl(), carla::geom::MeshFactory::Generate(), carla::geom::MeshFactory::GenerateLaneSectionOrdered(), carla::geom::MeshFactory::GenerateOrderedWithMaxLen(), carla::geom::MeshFactory::GenerateSidewalk(), carla::geom::MeshFactory::GenerateWalls(), carla::geom::MeshFactory::GenerateWallsWithMaxLen(), carla::geom::MeshFactory::GenerateWithMaxLen(), and carla::road::Road::GetLaneById().
Definition at line 51 of file LaneSection.cpp.
References _lanes.
std::vector< Lane * > carla::road::LaneSection::GetLanesOfType | ( | Lane::LaneType | type | ) |
Definition at line 55 of file LaneSection.cpp.
References _lanes.
Referenced by ContainsLane().
double carla::road::LaneSection::GetLength | ( | ) | const |
Definition at line 17 of file LaneSection.cpp.
References _s, DEBUG_ASSERT, and GetRoad().
Referenced by carla::geom::MeshFactory::GenerateLaneMarksForCenterLine(), carla::geom::MeshFactory::GenerateLaneMarksForNotCenterLine(), carla::geom::MeshFactory::GenerateOrderedWithMaxLen(), carla::geom::MeshFactory::GenerateWallsWithMaxLen(), carla::geom::MeshFactory::GenerateWithMaxLen(), and LaneSection().
Road * carla::road::LaneSection::GetRoad | ( | ) | const |
Definition at line 23 of file LaneSection.cpp.
References _road.
Referenced by GetLength(), carla::road::Lane::GetRoad(), and LaneSection().
|
private |
Definition at line 55 of file LaneSection.h.
Referenced by GetId().
|
private |
Definition at line 63 of file LaneSection.h.
Definition at line 61 of file LaneSection.h.
Referenced by carla::road::MapBuilder::AddRoadSectionLane(), ContainsLane(), GetLane(), GetLanes(), and GetLanesOfType().
|
private |
Definition at line 59 of file LaneSection.h.
Referenced by carla::road::MapBuilder::AddRoadSection(), and GetRoad().
|
private |
Definition at line 57 of file LaneSection.h.
Referenced by GetDistance(), and GetLength().
|
private |
Definition at line 53 of file LaneSection.h.