#include <crossing.h>
|
| | Crossing (const std::vector< Eigen::Vector2d > &_segment_points) |
| | constructor More...
|
| |
| Eigen::Vector2d | getCenter () const |
| | returns the center of the crossing (average of all pts) More...
|
| |
| void | setSegmentReference (const std::shared_ptr< std::vector< Segment >> &segs) |
| | saves the reference to the vector containing all segments to have access to them to alter other segments from try Add segments More...
|
| |
| bool | tryAddSegment (Segment &_seg) |
| | tries to add the segment to the crossing and adds the given segment to each segments neighbors in the crossing More...
|
| |
Definition at line 38 of file crossing.h.
| tuw_graph::Crossing::Crossing |
( |
const std::vector< Eigen::Vector2d > & |
_segment_points | ) |
|
constructor
- Parameters
-
| _segment_points | the endpoint of each segment in the crossing, which is on the crossing side |
Definition at line 35 of file crossing.cpp.
| Eigen::Vector2d tuw_graph::Crossing::getCenter |
( |
| ) |
const |
returns the center of the crossing (average of all pts)
- Returns
- the center of the crossing
Definition at line 114 of file crossing.cpp.
| void tuw_graph::Crossing::setSegmentReference |
( |
const std::shared_ptr< std::vector< Segment >> & |
segs | ) |
|
saves the reference to the vector containing all segments to have access to them to alter other segments from try Add segments
Definition at line 119 of file crossing.cpp.
| bool tuw_graph::Crossing::tryAddSegment |
( |
Segment & |
_seg | ) |
|
tries to add the segment to the crossing and adds the given segment to each segments neighbors in the crossing
- Parameters
-
- Returns
- if the action succeeded
Definition at line 63 of file crossing.cpp.
| Eigen::Vector2d tuw_graph::Crossing::center_ |
|
private |
| std::shared_ptr<std::vector<Segment> > tuw_graph::Crossing::segmentReference_ |
|
private |
| std::vector<uint32_t> tuw_graph::Crossing::segments_end_ |
|
private |
| std::vector<uint32_t> tuw_graph::Crossing::segments_start_ |
|
private |
| std::vector<Eigen::Vector2d> tuw_graph::Crossing::surroundingPoints_ |
|
private |
The documentation for this class was generated from the following files: