Public Member Functions | Public Attributes | List of all members
ObstacleSegment Class Reference

The ObstacleSegment class defines an edge of an obstacle polygon. More...

#include <Geom.h>

Public Member Functions

 ObstacleSegment ()=default
 Default constructor. More...
 
 ObstacleSegment (const ObstacleSegment &obj)
 Copy constructor. More...
 
 ObstacleSegment (int id, const Vertex &left, const Vertex &right)
 ObstacleSegment constructor. More...
 
ObstacleSegmentoperator= (const ObstacleSegment &obj)
 Assignment operator. More...
 
bool operator== (const ObstacleSegment &another) const
 operator == More...
 
 ~ObstacleSegment ()=default
 Default destructor. More...
 

Public Attributes

Vector dir
 Vector (right-left)/|right-left|. More...
 
int id
 Identifier of edge. More...
 
Vertex left
 Left vertex of edge (when viewed from the outside of an obstacle). More...
 
ObstacleSegmentnext
 Next edge in obstacle. More...
 
ObstacleSegmentprev
 Previous edge in obstacle. More...
 
Vertex right
 Right vertex of edge (when viewed from the outside of an obstacle). More...
 

Detailed Description

The ObstacleSegment class defines an edge of an obstacle polygon.

Definition at line 274 of file Geom.h.

Constructor & Destructor Documentation

ObstacleSegment::ObstacleSegment ( )
default

Default constructor.

ObstacleSegment::ObstacleSegment ( const ObstacleSegment obj)
inline

Copy constructor.

Parameters
objObject to copy.

Definition at line 286 of file Geom.h.

ObstacleSegment::ObstacleSegment ( int  id,
const Vertex left,
const Vertex right 
)
inline

ObstacleSegment constructor.

Parameters
idIdentifier of obstacle edge.
leftLeft vertex of edge (when viewed from the outside of an obstacle).
rightRight vertex of edge (when viewed from the outside of an obstacle).

Definition at line 295 of file Geom.h.

ObstacleSegment::~ObstacleSegment ( )
default

Default destructor.

Member Function Documentation

ObstacleSegment & ObstacleSegment::operator= ( const ObstacleSegment obj)
inline

Assignment operator.

Parameters
objObject to assign
Returns
Reference to object.

Definition at line 437 of file Geom.h.

bool ObstacleSegment::operator== ( const ObstacleSegment another) const
inline

operator ==

Parameters
anotherObject to comapare
Returns
(id == another.id)

Definition at line 432 of file Geom.h.

Member Data Documentation

Vector ObstacleSegment::dir

Vector (right-left)/|right-left|.

Definition at line 320 of file Geom.h.

int ObstacleSegment::id

Identifier of edge.

Definition at line 317 of file Geom.h.

Vertex ObstacleSegment::left

Left vertex of edge (when viewed from the outside of an obstacle).

Definition at line 318 of file Geom.h.

ObstacleSegment* ObstacleSegment::next

Next edge in obstacle.

Definition at line 321 of file Geom.h.

ObstacleSegment* ObstacleSegment::prev

Previous edge in obstacle.

Definition at line 322 of file Geom.h.

Vertex ObstacleSegment::right

Right vertex of edge (when viewed from the outside of an obstacle).

Definition at line 319 of file Geom.h.


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


ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14