maliput_sparse
|
Builder class for maliput::api::Junctions.
#include <include/maliput_sparse/builder/builder.h>
Public Member Functions | |
JunctionBuilder (RoadGeometryBuilder *parent) | |
Construct a new Junction Builder object. More... | |
JunctionBuilder & | Id (const maliput::api::JunctionId &junction_id) |
Sets the maliput::api::JunctionId of the maliput::api::Junction. More... | |
SegmentBuilder | StartSegment () |
Starts the Segment builder for this Junction. More... | |
RoadGeometryBuilder & | EndJunction () |
Finalizes the construction process of this Junction by inserting the Junction into the parent RoadGeometryBuilder. More... | |
void | SetSegment (maliput::common::Passkey< SegmentBuilder >, std::unique_ptr< maliput::geometry_base::Segment > segment) |
Sets a maliput::geometry_base::Segment into this builder to fill in the Junction. More... | |
Public Member Functions inherited from NestedBuilder< RoadGeometryBuilder > | |
virtual | ~NestedBuilder ()=default |
NestedBuilder (RoadGeometryBuilder *parent) | |
Construct a new nested builder object. More... | |
RoadGeometryBuilder & | End () |
RoadGeometryBuilder * | Parent () |
|
explicit |
Construct a new Junction Builder object.
parent | The parent RoadGeometryBuilder. It must not be nullptr. |
RoadGeometryBuilder & EndJunction | ( | ) |
Finalizes the construction process of this Junction by inserting the Junction into the parent RoadGeometryBuilder.
maliput::common::assertion_error | When there is no segment to be set into the Junction. |
JunctionBuilder & Id | ( | const maliput::api::JunctionId & | junction_id | ) |
Sets the maliput::api::JunctionId of the maliput::api::Junction.
junction_id | The maliput::api::JunctionId. |
void SetSegment | ( | maliput::common::Passkey< SegmentBuilder > | , |
std::unique_ptr< maliput::geometry_base::Segment > | segment | ||
) |
Sets a maliput::geometry_base::Segment into this builder to fill in the Junction.
This method is only intended to be called by SegmentBuilder instances.
segment | A segment to be stored into the Junction. It must not be nullptr. |
maliput::common::assertion_error | When segment is nullptr. |
SegmentBuilder StartSegment | ( | ) |
Starts the Segment builder for this Junction.