#include <coloring.hpp>
Inheritance diagram for Arak::Coloring::Edge:
If the edge does not lie on the boundary of the colored region, then it is "interior", and its associated line segment represents a color discontinuity; if it lies on the boundary, then it does not. Two interior edges may not "cross", in that if they intersect, they must intersect at a point that is a vertex of both segments.
Definition at line 582 of file coloring.hpp.
Public Member Functions | |
Edge () | |
Default constructor. | |
const Geometry::Segment & | segment () const |
Returns a segment representation of the edge. | |
VertexHandle | getPrevVertex () |
Returns a reference to the previous vertex incident to this edge (for some ordering of the path's vertices). | |
const VertexHandle | getPrevVertex () const |
VertexHandle | getNextVertex () |
Returns a reference to the next vertex incident to this edge (for some ordering of the path's vertices). | |
const VertexHandle | getNextVertex () const |
Geometry::Point | randomPoint (Arak::Util::Random &random=Arak::Util::default_random) const |
Returns a point sampled uniformly at random from the edge. | |
double | length () const |
Returns the length of this edge. | |
bool | operator== (const Edge &other) const |
Two edges are equal if they are identically the same object. | |
bool | operator!= (const Edge &other) const |
Two edges are unequal if they are not identically the same object. | |
Protected Attributes | |
VertexHandle | prevVertex |
A pointer to the previous vertex incident to this edge (for some ordering of the path's vertices). | |
VertexHandle | nextVertex |
A pointer to the next vertex incident to this edge (for some ordering of the path's vertices). | |
int | index |
The index of this edge in the random access vectors. | |
Friends | |
class | Vertex |
class | Coloring |
|
Default constructor.
Definition at line 615 of file coloring.hpp. |
|
Definition at line 636 of file coloring.hpp. References Arak::Coloring::VertexHandle. |
|
Returns a reference to the next vertex incident to this edge (for some ordering of the path's vertices).
Definition at line 635 of file coloring.hpp. References Arak::Coloring::VertexHandle. |
|
Definition at line 629 of file coloring.hpp. References Arak::Coloring::VertexHandle. |
|
Returns a reference to the previous vertex incident to this edge (for some ordering of the path's vertices).
Definition at line 628 of file coloring.hpp. References Arak::Coloring::VertexHandle. |
|
Returns the length of this edge.
Definition at line 655 of file coloring.hpp. |
|
Two edges are unequal if they are not identically the same object.
Definition at line 671 of file coloring.hpp. |
|
Two edges are equal if they are identically the same object.
Definition at line 663 of file coloring.hpp. |
|
Returns a point sampled uniformly at random from the edge. If exact geometric constructions are not supported, then this point may not lie exactly on this segment. Note that for short edges, it is possible that one of the endpoints is returned.
Reimplemented in Arak::Coloring::BoundaryEdge. Definition at line 48 of file coloring.cpp. References Arak::Geometry::Point, and Arak::Util::Random::uniform(). |
|
Returns a segment representation of the edge.
Definition at line 622 of file coloring.hpp. References Arak::Geometry::Segment. |
|
Reimplemented in Arak::Coloring::InteriorEdge, and Arak::Coloring::BoundaryEdge. Definition at line 585 of file coloring.hpp. |
|
Reimplemented in Arak::Coloring::InteriorEdge, and Arak::Coloring::BoundaryEdge. Definition at line 584 of file coloring.hpp. |
|
The index of this edge in the random access vectors. If this edge is of type INTERIOR, then this its index in interiorEdges; if this edge is of type BOUNDARY, then this is its index in boundaryEdges. If this vertex is of type INVALID then this is -1. Definition at line 608 of file coloring.hpp. |
|
A pointer to the next vertex incident to this edge (for some ordering of the path's vertices).
Definition at line 599 of file coloring.hpp. |
|
A pointer to the previous vertex incident to this edge (for some ordering of the path's vertices).
Definition at line 593 of file coloring.hpp. |