16template <
int dim,
typename NodeData,
typename SegmentData>
65 std::vector<w_point_type> internal_points_;
74template <
int dim,
typename NodeData,
typename SegmentData>
77 bitrl::consts::INVALID_ID),
78 internal_points_(), data_(), is_active_(
false)
82template <
int dim,
typename NodeData,
typename SegmentData>
87 :
bitrl::utils::geom::GenericLine<
dim>(
v1,
v2, id), internal_points_(), data_(data),
92template <
int dim,
typename NodeData,
typename SegmentData>
class GenericLine. Represents a generic line with vertex VertexType The equation of a linein l=Ax + B...
Definition generic_line.h:25
uint_t get_id() const noexcept
Returns the id of the line.
Definition generic_line.h:64
const vertex_type & get_vertex(uint_t v) const
Returns the v-th vertex of the segment.
Definition generic_line.h:116
void set_id(uint_t id) noexcept
Set the id of the line.
Definition generic_line.h:69
bool has_valid_id() const noexcept
Returns true iff id_ != rlenvscpp::consts::INVALID_ID.
Definition generic_line.h:59
real_t length() const
Calculate the length of the line.
Definition generic_line.h:90
class LineSegmentLink. Represents a straight line link between two waypoints.
Definition line_segment_link.h:18
LineSegmentLink(const w_point_type &v1, const w_point_type &v2, uint_t id, const segment_data_type &data)
Constructor.
static const int dimension
Definition line_segment_link.h:20
void make_active()
Activate the segment.
Definition line_segment_link.h:60
SegmentData segment_data_type
Definition line_segment_link.h:22
bool is_active() const
Returns true if the segment is active.
Definition line_segment_link.h:50
NodeData node_data_type
Definition line_segment_link.h:21
WayPoint< dim, NodeData > w_point_type
Definition line_segment_link.h:23
void deactivate()
deactive the segment
Definition line_segment_link.h:55
LineSegmentLink(const w_point_type &v1, const w_point_type &v2, uint_t id)
Constructor.
LineSegmentLink()
Default ctor.
Definition line_segment_link.h:75
Helper class to represent a waypoint.
Definition waypoint.h:20
OutT resolve(const std::string &name, const std::map< std::string, std::any > &input)
Definition std_map_utils.h:25
Definition bitrl_consts.h:14
std::size_t uint_t
uint_t
Definition bitrl_types.h:43