|
maliput_sparse
|
Builder class for maliput::api::Lanes.
#include <include/maliput_sparse/builder/builder.h>
Public Member Functions | |
| LaneBuilder (SegmentBuilder *parent) | |
| Construct a new Lane Builder object. More... | |
| LaneBuilder & | Id (const maliput::api::LaneId &lane_id) |
| Sets the maliput::api::LaneId of the maliput::api::Lane. More... | |
| LaneBuilder & | HeightBounds (const maliput::api::HBounds &hbounds) |
| Sets the maliput::api::maliput::api::HBounds of the maliput::api::Lane. More... | |
| LaneGeometryBuilder | StartLaneGeometry () |
| Starts the LaneGeometry builder for this Lane. More... | |
| LaneBuilder & | LeftBoundaryId (const maliput::api::LaneBoundary::Id &boundary_id) |
| Sets the boundary ID on the left side of this lane. More... | |
| LaneBuilder & | RightBoundaryId (const maliput::api::LaneBoundary::Id &boundary_id) |
| Sets the boundary ID on the right side of this lane. More... | |
| LaneBuilder & | LaneType (maliput::api::LaneType lane_type) |
| Sets the type of this lane (e.g., driving, shoulder, parking). More... | |
| LaneBuilder & | LeftBoundaryMarkings (const std::vector< parser::BoundaryMarkings > &markings) |
| Sets markings for the left boundary of this lane. More... | |
| LaneBuilder & | RightBoundaryMarkings (const std::vector< parser::BoundaryMarkings > &markings) |
| Sets markings for the right boundary of this lane. More... | |
| SegmentBuilder & | EndLane () |
| Finalizes the construction process of this Lane by inserting the Lane into the parent SegmentBuilder. More... | |
| void | SetLaneGeometry (maliput::common::Passkey< LaneGeometryBuilder >, std::unique_ptr< maliput_sparse::geometry::LaneGeometry > lane_geometry) |
| Sets a maliput_sparse::geometry::LaneGeometry into this builder to fill in the Lane. More... | |
Public Member Functions inherited from NestedBuilder< SegmentBuilder > | |
| virtual | ~NestedBuilder ()=default |
| NestedBuilder (SegmentBuilder *parent) | |
| Construct a new nested builder object. More... | |
| SegmentBuilder & | End () |
| SegmentBuilder * | Parent () |
|
explicit |
Construct a new Lane Builder object.
| parent | The parent SegmentBuilder. It must not be nullptr. |
| SegmentBuilder & EndLane | ( | ) |
Finalizes the construction process of this Lane by inserting the Lane into the parent SegmentBuilder.
| maliput::common::assertion_error | When there is no LaneGeometry to be set into the Lane. |
| LaneBuilder & HeightBounds | ( | const maliput::api::HBounds & | hbounds | ) |
Sets the maliput::api::maliput::api::HBounds of the maliput::api::Lane.
| hbounds | A maliput::api::HBounds to set to the Lane. |
| LaneBuilder & Id | ( | const maliput::api::LaneId & | lane_id | ) |
Sets the maliput::api::LaneId of the maliput::api::Lane.
| lane_id | The maliput::api::LaneId. |
| LaneBuilder & LaneType | ( | maliput::api::LaneType | lane_type | ) |
Sets the type of this lane (e.g., driving, shoulder, parking).
| lane_type | The maliput::api::LaneType to set. |
| LaneBuilder & LeftBoundaryId | ( | const maliput::api::LaneBoundary::Id & | boundary_id | ) |
Sets the boundary ID on the left side of this lane.
| boundary_id | The boundary ID to set. |
| LaneBuilder & LeftBoundaryMarkings | ( | const std::vector< parser::BoundaryMarkings > & | markings | ) |
Sets markings for the left boundary of this lane.
| markings | Boundary markings associated with the left boundary. |
| LaneBuilder & RightBoundaryId | ( | const maliput::api::LaneBoundary::Id & | boundary_id | ) |
Sets the boundary ID on the right side of this lane.
| boundary_id | The boundary ID to set. |
| LaneBuilder & RightBoundaryMarkings | ( | const std::vector< parser::BoundaryMarkings > & | markings | ) |
Sets markings for the right boundary of this lane.
| markings | Boundary markings associated with the right boundary. |
| void SetLaneGeometry | ( | maliput::common::Passkey< LaneGeometryBuilder > | , |
| std::unique_ptr< maliput_sparse::geometry::LaneGeometry > | lane_geometry | ||
| ) |
Sets a maliput_sparse::geometry::LaneGeometry into this builder to fill in the Lane.
This method is only intended to be called by LaneGeometryBuilder instances.
| lane_geometry | A maliput_sparse::geometry::LaneGeometry to be stored into the Lane. It must not be nullptr. |
| maliput::common::assertion_error | When lane_geometry is nullptr. |
| LaneGeometryBuilder StartLaneGeometry | ( | ) |
Starts the LaneGeometry builder for this Lane.