CARLA
Public Member Functions | Private Attributes | List of all members
MapGen::RoadSegmentDescription Class Reference

#include <RoadSegmentDescription.h>

+ Inheritance diagram for MapGen::RoadSegmentDescription:
+ Collaboration diagram for MapGen::RoadSegmentDescription:

Public Member Functions

void Add (const GraphHalfEdge &Edge)
 
const float * GetAngle () const
 
bool IsStraight () const
 
const GraphHalfEdgeoperator[] (size_t i) const
 
size_t Size () const
 

Private Attributes

std::vector< const GraphHalfEdge * > _vect
 
TUniquePtr< float > Angle = nullptr
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Definition at line 16 of file RoadSegmentDescription.h.

Member Function Documentation

◆ Add()

void MapGen::RoadSegmentDescription::Add ( const GraphHalfEdge Edge)
inline
Todo:
Use a scale.

Definition at line 20 of file RoadSegmentDescription.h.

References _vect, and Angle.

◆ GetAngle()

const float* MapGen::RoadSegmentDescription::GetAngle ( ) const
inline
Returns
nullptr if the road segment is not straight.

Definition at line 42 of file RoadSegmentDescription.h.

References Angle.

◆ IsStraight()

bool MapGen::RoadSegmentDescription::IsStraight ( ) const
inline

Definition at line 37 of file RoadSegmentDescription.h.

References Angle.

◆ operator[]()

const GraphHalfEdge& MapGen::RoadSegmentDescription::operator[] ( size_t  i) const
inline

Definition at line 29 of file RoadSegmentDescription.h.

References _vect.

◆ Size()

size_t MapGen::RoadSegmentDescription::Size ( ) const
inline

Definition at line 33 of file RoadSegmentDescription.h.

References _vect.

Member Data Documentation

◆ _vect

std::vector<const GraphHalfEdge *> MapGen::RoadSegmentDescription::_vect
private

Definition at line 50 of file RoadSegmentDescription.h.

Referenced by Add(), operator[](), and Size().

◆ Angle

TUniquePtr<float> MapGen::RoadSegmentDescription::Angle = nullptr
private

Definition at line 48 of file RoadSegmentDescription.h.

Referenced by Add(), GetAngle(), and IsStraight().


The documentation for this class was generated from the following file: