Lane class. More...
#include <rndf.H>
Public Types | |
| enum | boundary_t { DOUBLE_YELLOW, SOLID_YELLOW, SOLID_WHITE, BROKEN_WHITE, UNKNOWN } |
Lane boundary marking type. | |
| enum | side_t { LEFT, RIGHT } |
Lane side. | |
| enum | direction_t { PRIMARY, SECONDARY, INVALID } |
Lane direction. | |
Public Member Functions | |
| lane_t (rndf_t const *rndf_, unsigned segment_id_, unsigned id_) | |
| unsigned | segment_id () const |
| Containing segment's ID. | |
| unsigned | id () const |
| Lane's ID. | |
| double | width () const |
| Width of lane (meters). | |
| bool | is_valid_width () const |
| boundary_t | boundary (side_t side_) const |
| Lane boundary marking. | |
| direction_t | direction () const |
| Lane direction. | |
| unsigned | num_checkpoints () const |
| Number of checkpoints in lane. | |
| waypoint_t const & | checkpoint (unsigned i_) const |
| Checkpoint waypoint. | |
| unsigned | num_entries () const |
| Number of entry waypoints in lane. | |
| waypoint_t const & | entry (unsigned i_) const |
| Entry waypoint. | |
| unsigned | num_exits () const |
| Number of exit waypoints in lane. | |
| waypoint_t const & | exit (unsigned i_) const |
| Exit waypoint. | |
| unsigned | num_stops () const |
| Number of stop waypoints in lane. | |
| waypoint_t const & | stop (unsigned i_) const |
| Stop waypoint. | |
| unsigned | num_waypoints () const |
| Number of waypoints in lane. | |
| waypoint_t const & | waypoint (unsigned id_) const |
| Waypoint. | |
Private Attributes | |
| rndf_t const * | m_rndf |
| Containing RNDF object. | |
| unsigned | m_segment_id |
| Containing segment's ID. | |
| unsigned | m_id |
| Lane ID. | |
| double | m_width |
| Width (meters). | |
| bool | m_valid_width |
| boundary_t | m_boundary [2] |
| Boundary markings. | |
| direction_t | m_direction |
| Direction. | |
| std::vector< unsigned > | m_checkpoint |
| Checkpoint waypoint IDs. | |
| std::vector< unsigned > | m_entry |
| Entry waypoint IDs. | |
| std::vector< unsigned > | m_exit |
| Exit waypoint IDs. | |
| std::vector< unsigned > | m_stop |
| Stop waypoint IDs. | |
Friends | |
| class | builder_t |
Lane class.
| boundary_t cajun::rndf_t::lane_t::boundary | ( | side_t | side_ | ) | const [inline] |
| waypoint_t const& cajun::rndf_t::lane_t::checkpoint | ( | unsigned | i_ | ) | const [inline] |
Checkpoint waypoint.
| i_ | Checkpoint index (0 to num_checkpoints() - 1) |
References m_checkpoint, m_id, m_rndf, m_segment_id, num_checkpoints(), and cajun::rndf_t::waypoint().
| waypoint_t const& cajun::rndf_t::lane_t::entry | ( | unsigned | i_ | ) | const [inline] |
Entry waypoint.
| i_ | Entry index (0 to num_entries() - 1) |
References m_entry, m_id, m_rndf, m_segment_id, num_entries(), and cajun::rndf_t::waypoint().
| waypoint_t const& cajun::rndf_t::lane_t::exit | ( | unsigned | i_ | ) | const [inline] |
Exit waypoint.
| i_ | Exit index (0 to num_exits() - 1) |
References m_exit, m_id, m_rndf, m_segment_id, num_exits(), and cajun::rndf_t::waypoint().
| waypoint_t const& cajun::rndf_t::lane_t::stop | ( | unsigned | i_ | ) | const [inline] |
Stop waypoint.
| i_ | Stop index (0 to num_stops() - 1) |
References m_id, m_rndf, m_segment_id, m_stop, num_stops(), and cajun::rndf_t::waypoint().
| waypoint_t const& cajun::rndf_t::lane_t::waypoint | ( | unsigned | id_ | ) | const [inline] |
Waypoint.
| id_ | Waypoint ID (1 to num_waypoints()) |
References m_id, m_rndf, m_segment_id, and cajun::rndf_t::waypoint().
bool cajun::rndf_t::lane_t::m_valid_width [private] |
True if specified in rndf False if default value
1.6.1