CARLA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
carla::road::element::Geometry Class Referenceabstract

#include <Geometry.h>

+ Inheritance diagram for carla::road::element::Geometry:
+ Collaboration diagram for carla::road::element::Geometry:

Public Member Functions

virtual std::pair< float, float > DistanceTo (const geom::Location &p) const =0
 
double GetHeading () const
 
double GetLength () const
 
double GetStartOffset () const
 
const geom::LocationGetStartPosition ()
 
GeometryType GetType () const
 
virtual DirectedPoint PosFromDist (double dist) const =0
 
virtual ~Geometry ()=default
 

Protected Member Functions

 Geometry (GeometryType type, double start_offset, double length, double heading, const geom::Location &start_pos)
 

Protected Attributes

double _heading
 
double _length
 
geom::Location _start_position
 
double _start_position_offset
 
GeometryType _type
 

Detailed Description

Definition at line 49 of file Geometry.h.

Constructor & Destructor Documentation

◆ ~Geometry()

virtual carla::road::element::Geometry::~Geometry ( )
virtualdefault

◆ Geometry()

carla::road::element::Geometry::Geometry ( GeometryType  type,
double  start_offset,
double  length,
double  heading,
const geom::Location start_pos 
)
inlineprotected

Definition at line 77 of file Geometry.h.

Member Function Documentation

◆ DistanceTo()

virtual std::pair<float, float> carla::road::element::Geometry::DistanceTo ( const geom::Location p) const
pure virtual

◆ GetHeading()

double carla::road::element::Geometry::GetHeading ( ) const
inline

Definition at line 61 of file Geometry.h.

◆ GetLength()

double carla::road::element::Geometry::GetLength ( ) const
inline

Definition at line 55 of file Geometry.h.

◆ GetStartOffset()

double carla::road::element::Geometry::GetStartOffset ( ) const
inline

Definition at line 58 of file Geometry.h.

◆ GetStartPosition()

const geom::Location& carla::road::element::Geometry::GetStartPosition ( )
inline

Definition at line 65 of file Geometry.h.

◆ GetType()

GeometryType carla::road::element::Geometry::GetType ( ) const
inline

Definition at line 52 of file Geometry.h.

◆ PosFromDist()

virtual DirectedPoint carla::road::element::Geometry::PosFromDist ( double  dist) const
pure virtual

Member Data Documentation

◆ _heading

double carla::road::element::Geometry::_heading
protected

Definition at line 95 of file Geometry.h.

◆ _length

double carla::road::element::Geometry::_length
protected

Definition at line 92 of file Geometry.h.

◆ _start_position

geom::Location carla::road::element::Geometry::_start_position
protected

Definition at line 97 of file Geometry.h.

◆ _start_position_offset

double carla::road::element::Geometry::_start_position_offset
protected

Definition at line 94 of file Geometry.h.

◆ _type

GeometryType carla::road::element::Geometry::_type
protected

Definition at line 91 of file Geometry.h.


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