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... | |
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. |
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.