Polylines with integer coordinates. More...
#include <ogdf/basic/geometry.h>
Inheritance diagram for ogdf::IPolyline:Public Member Functions | |
| IPolyline () | |
| Creates an empty integer polyline. More... | |
| IPolyline (const IPolyline &ipl) | |
| Copy constructor. More... | |
| double | length () const |
| Returns the euclidean length of the polyline. More... | |
| IPolyline & | operator= (const IPolyline &ipl) |
| Assignment operator. More... | |
Public Member Functions inherited from ogdf::List< IPoint > | |
| List () | |
| Constructs an empty doubly linked list. More... | |
| List (std::initializer_list< IPoint > init) | |
Constructs a doubly linked list containing the elements in init. More... | |
| List (const List< IPoint > &L) | |
Constructs a doubly linked list that is a copy of L. More... | |
| List (List< IPoint > &&L) | |
Constructs a doubly linked list containing the elements of L (move semantics). More... | |
| int | size () const |
| Returns the number of elements in the list. More... | |
| const ListPure< IPoint > & | getListPure () const |
| Conversion to const ListPure. More... | |
| List< IPoint > & | operator= (const List< IPoint > &L) |
| Assignment operator. More... | |
| List< IPoint > & | operator= (List< IPoint > &&L) |
| Assignment operator (move semantics). More... | |
| bool | operator== (const List< IPoint > &L) const |
| bool | operator!= (const List< IPoint > &L) const |
| iterator | pushFront (const IPoint &x) |
| iterator | emplaceFront (Args &&... args) |
| iterator | pushBack (const IPoint &x) |
| iterator | emplaceBack (Args &&... args) |
| iterator | insert (const IPoint &x, iterator it, Direction dir=Direction::after) |
| iterator | insertBefore (const IPoint &x, iterator it) |
| iterator | insertAfter (const IPoint &x, iterator it) |
| void | popFront () |
| IPoint | popFrontRet () |
| void | popBack () |
| IPoint | popBackRet () |
| void | del (iterator it) |
| bool | removeFirst (const IPoint &x) |
| void | clear () |
| void | moveToFront (iterator it, List< IPoint > &L2) |
| void | moveToBack (iterator it, List< IPoint > &L2) |
| void | moveToSucc (iterator it, List< IPoint > &L2, iterator itBefore) |
| void | moveToPrec (iterator it, List< IPoint > &L2, iterator itAfter) |
| void | conc (List< IPoint > &L2) |
| void | concFront (List< IPoint > &L2) |
| void | swap (List< IPoint > &other) |
| void | split (iterator it, List< IPoint > &L1, List< IPoint > &L2, Direction dir=Direction::before) |
Polylines with integer coordinates.
This class represents integer polylines by a list of integer points. Such polylines are, e.g., used in layouts for representing bend point lists. Note that in this case, only the bend points are in the list and neither the start nor the end point.
Definition at line 194 of file geometry.h.
|
inline |
Creates an empty integer polyline.
Definition at line 197 of file geometry.h.
|
inline |
Copy constructor.
Definition at line 200 of file geometry.h.
| double ogdf::IPolyline::length | ( | ) | const |
Returns the euclidean length of the polyline.
Assignment operator.
Definition at line 203 of file geometry.h.