API Documentation
|
A polyline which stores vertex information for many points along a given path. More...
#include <PolyLine.hpp>
Public Member Functions | |
Polyline (uint04 size=0) | |
Polyline (Buffer< t_vertex > &vertices) | |
Polyline (const Polyline &polygon) noexcept | |
Polyline (Polyline &&polygon) noexcept | |
Bounds< t_dims, t_type, t_vertex > | bounds () const |
decltype(auto) | begin () |
decltype(auto) | begin () const |
decltype(auto) | begin (uint04 index) const |
decltype(auto) | begin (uint04 index) |
decltype(auto) | end () |
decltype(auto) | end () const |
const t_vertex & | vertex (uint04 index) const |
LineSegment< t_dims, t_type, t_vertex > | segment (uint04 index) const |
const Buffer< t_vertex > & | vertices () const |
uint04 | vertexCount () const |
uint04 | segmentCount () const |
void | setVertices (const Buffer< t_vertex > &vertices) |
void | add (const t_vertex &vertex) |
void | addAndSimplify (const t_vertex &vertex) |
void | add (uint04 index, const t_vertex &vertex) |
void | addAndSimplify (uint04 index, const t_vertex &vertex) |
void | replace (uint04 index, const t_vertex &vertex) |
void | remove (uint04 index) |
const t_vertex & | lastVertex () const |
void | removeLastVertex () |
void | simplify () |
void | clear () |
template<uint01 t_new_dims, class t_new_type , class t_new_vertex_type = Vertex<t_new_dims, t_new_type>> | |
Polyline< t_dims, t_new_type, t_new_vertex_type > | as () const |
template<class t_precision > | |
t_precision | length () const |
template<class t_inter_type > | |
constexpr t_vertex | pointAt (t_inter_type value) const |
constexpr t_vertex | pointAtLength (fltp08 value) const |
bool | operator== (const Polyline &polygon) const |
Polyline & | operator= (const Polyline &polygon) |
Polyline & | operator= (Polyline &&polygon) noexcept |
Polyline< t_dims, t_type > | breakIntoSegmentsByLength (t_type length) const |
Polyline< t_dims, t_type > | breakIntoSegmentsByDistance (t_type d) const |
Buffer< Polyline< t_dims, t_type >, uint04, ObjectAllocator< false > > | breakIntoPolylinesByLength (t_type max_distance) const |
Polyline< t_dims, t_type > | clipPolyline (const Bounds< t_vertex::NumberOfDimensions(), t_type > &bounds) const |
A polyline which stores vertex information for many points along a given path.
Class: Polyline
Author: Tyler Parke
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Fn: void Polyline::add(const t_vertex& vertex)
Adds vertex.
Author: Tyler Parke
Date: 2017-11-19
Parameters:
|
inline |
Fn: void Polyline::add(uint04 index, const t_vertex& vertex)
Adds index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
|
inline |
|
inline |
|
inline |
Fn: Polyline<t_new_type, t_new_vertex_type> Polyline::as() const
Gets as.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
|
inline |
|
inline |
|
inline |
Fn: Bounds<t_dims, t_type, t_vertex> Polyline::bounds() const
Gets the bounds.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
|
inline |
|
inline |
|
inline |
Fn: void Polyline::clear()
Clears this object to its blank/initial state.
Author: Tyler Parke
|
inline |
|
inline |
|
inline |
|
inline |
Fn: void Polyline::lastVertex()
The last vertex in the polyline
Author: Tyler Parke
Date: 2019-01-12
|
inline |
Fn: t_type Polyline::length() const
Gets the length.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
|
inlinenoexcept |
|
inline |
Fn: bool Polyline::operator==(const Polyline& polygon) const
Equality operator.
Author: Tyler Parke
Date: 2017-11-19
Parameters: polygon - The polygon.
|
inlineconstexpr |
Fn: constexpr inline t_vertex Polyline::pointAt(t_inter_type value) const
Point at.
Author: Tyler Parke
Date: 2017-11-19
Parameters: value - The value.
|
inlineconstexpr |
|
inline |
Fn: void Polyline::removeLastVertex()
Removes the last vertex from the polyline.
Author: Tyler Parke
Date: 2019-01-12
|
inline |
Fn: void Polyline::replace(uint04 index, const t_vertex& vector)
Replaces.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
|
inline |
Fn: LineSegment<t_dims, t_type, t_vertex> Polyline::segment(uint04 index) const
Segments the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
Fn: inline uint04 Polyline::segmentCount() const
Segment count.
Author: Tyler Parke
Date: 2018-10-29
|
inline |
Fn: inline void Polyline::setVertices(const Buffer<t_vertex>& vertices)
Sets the vertices.
Author: Tyler Parke
Date: 2017-11-19
Parameters:
|
inline |
Fn: void Polyline::simplify()
Removes all duplicate adjacent vertices.
Author: Tyler Parke
|
inline |
Fn: const t_vertex& Polyline::vertex(uint04 index) const
Vertices the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
Fn: inline uint04 Polyline::visibleVertexCount() const
Vertex count.
Author: Tyler Parke
Date: 2017-11-19
|
inline |
Fn: inline const Buffer<t_vertex>& Polyline::vertices() const
Gets the vertices.
Author: Tyler Parke
Date: 2017-11-19