Spot class. More...
#include <rndf.H>
Public Member Functions | |
| spot_t (rndf_t const *rndf_, unsigned zone_id_, unsigned id_) | |
| unsigned | zone_id () const |
| Containing zone's ID. | |
| unsigned | id () const |
| Spot's ID. | |
| double | width () const |
| Width of spot (meters). | |
| bool | is_valid_width () const |
| unsigned | num_checkpoints () const |
| Number of checkpoints in spot. | |
| waypoint_t const & | checkpoint (unsigned i_) const |
| Checkpoint waypoint. | |
| unsigned | num_waypoints () const |
| Number of waypoint in spot. | |
| waypoint_t const & | waypoint (unsigned id_) const |
| Waypoint. | |
Private Attributes | |
| rndf_t const * | m_rndf |
| Containing RNDF object. | |
| unsigned | m_zone_id |
| Containing zone's ID. | |
| unsigned | m_id |
| Spot ID. | |
| double | m_width |
| Width (meters). | |
| bool | m_valid_width |
| std::vector< unsigned > | m_checkpoint |
| Checkpoint waypoint IDs. | |
Friends | |
| class | builder_t |
Spot class.
| waypoint_t const& cajun::rndf_t::spot_t::checkpoint | ( | unsigned | i_ | ) | const [inline] |
Checkpoint waypoint.
| i_ | Checkpoint index (0 to num_checkpoints() - 1) |
References m_checkpoint, m_id, m_rndf, m_zone_id, num_checkpoints(), and cajun::rndf_t::waypoint().
| waypoint_t const& cajun::rndf_t::spot_t::waypoint | ( | unsigned | id_ | ) | const [inline] |
Waypoint.
| id_ | Waypoint ID (1 to num_waypoints()) |
References m_id, m_rndf, m_zone_id, and cajun::rndf_t::waypoint().
bool cajun::rndf_t::spot_t::m_valid_width [private] |
true-specified in rndf false - default width
1.6.1