Skip to content
Snippets Groups Projects
Commit e7e7843e authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added a function to check if an object is a parking slot or not.

parent 89f76be9
No related branches found
No related tags found
1 merge request!1Development
......@@ -68,6 +68,7 @@ class COpendriveObject
bool is_box(void) const;
bool is_cylinder(void) const;
bool is_polygon(void) const;
bool is_parking_space(void) const;
TOpendriveBox get_box_data(void) const;
TOpendriveCylinder get_cylinder_data(void) const;
TOpendrivePolygon get_polygon_data(void) const;
......
......@@ -187,6 +187,14 @@ bool COpendriveObject::is_polygon(void) const
return false;
}
bool COpendriveObject::is_parking_space(void) const
{
if(this->type=="parkingSpace")
return true;
else
return false;
}
TOpendriveBox COpendriveObject::get_box_data(void) const
{
TOpendriveBox data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment