#include <coloring.hpp>
Collaboration diagram for Arak::Coloring::Vertex:
Definition at line 338 of file coloring.hpp.
Public Types | |
enum | Type { INTERIOR, BOUNDARY, CORNER, INVALID } |
The type of the vertex (INTERIOR, BOUNDARY, or CORNER). More... | |
Public Member Functions | |
Vertex () | |
Default constructor. | |
Type | type () const |
Returns the type of this vertex. | |
const Geometry::Point & | point () const |
Returns a point representation of the vertex. | |
bool | hasPrevIntEdge () const |
Returns true if this vertex has a previous interior edge. | |
IntEdgeHandle | getPrevIntEdge () |
Returns a reference to the previous edge incident to this vertex (for some ordering of the path's vertices). | |
const IntEdgeHandle | getPrevIntEdge () const |
bool | hasNextIntEdge () const |
Returns true if this vertex has a next interior edge. | |
IntEdgeHandle | getNextIntEdge () |
Returns a reference to the next interior edge incident to this vertex (for some ordering of the path's vertices). | |
const IntEdgeHandle | getNextIntEdge () const |
BdEdgeHandle | getPrevBdEdge () |
Returns a reference to the previous boundary edge incident to this vertex (for some ordering of the boundary vertices). | |
const BdEdgeHandle | getPrevBdEdge () const |
BdEdgeHandle | getNextBdEdge () |
Returns a reference to the next boundary edge incident to this vertex (for some ordering of the boundary vertices). | |
const BdEdgeHandle | getNextBdEdge () const |
VertexHandle | getPrevVertex () |
Returns a reference to the vertex before this vertex in the ordering of the polygon's vertices. | |
const VertexHandle | getPrevVertex () const |
VertexHandle | getNextVertex () |
Returns a reference to the vertex after this vertex in the ordering of the polygon's vertices. | |
const VertexHandle | getNextVertex () const |
VertexHandle | getPrevCornerVertex () |
Returns a reference to the previous corner vertex preceding this boundary vertex. | |
const VertexHandle | getPrevCornerVertex () const |
VertexHandle | getNextCornerVertex () |
Returns a reference to the next corner vertex following this boundary vertex. | |
const VertexHandle | getNextCornerVertex () const |
double | logSine () |
If this vertex is an interior vertex, this computes the log of the sine of the smaller angle between the two incident edges; if this vertex is a boundary vertex, this computes the log of the sine of the smaller angle between the true incident edge and the boundary tangent. | |
Protected Attributes | |
Type | t |
The type of this vertex. | |
IntEdgeHandle | prevIntEdge |
A handle on the previous interior edge incident to this vertex (for some ordering of the path's vertices). | |
IntEdgeHandle | nextIntEdge |
A pointer to the next interior edge incident to this vertex (for some ordering of the path's vertices). | |
BdEdgeHandle | prevBdEdge |
If this vertex is of type BOUNDARY, then this points to the previous boundary edge incident to this vertex (for some ordering of the boundary edges). | |
BdEdgeHandle | nextBdEdge |
If this vertex is of type BOUNDARY, then this points to the next boundary edge incident to this vertex (for some ordering of the boundary edges). | |
int | index |
The index of this vertex in the random access vectors. | |
Friends | |
class | InteriorEdge |
class | BoundaryEdge |
class | Coloring |
|
The type of the vertex (INTERIOR, BOUNDARY, or CORNER).
Definition at line 349 of file coloring.hpp. Referenced by type(). |
|
Default constructor.
Definition at line 418 of file coloring.hpp. |
|
Definition at line 508 of file coloring.hpp. References Arak::Coloring::BdEdgeHandle, BOUNDARY, CORNER, nextBdEdge, and type(). |
|
Returns a reference to the next boundary edge incident to this vertex (for some ordering of the boundary vertices). This vertex must be of type BOUNDARY or CORNER. Definition at line 504 of file coloring.hpp. References Arak::Coloring::BdEdgeHandle, BOUNDARY, CORNER, nextBdEdge, and type(). Referenced by getNextCornerVertex(), and logSine(). |
|
Definition at line 555 of file coloring.hpp. References getNextBdEdge(), and Arak::Coloring::VertexHandle. |
|
Returns a reference to the next corner vertex following this boundary vertex. This method signals an error if this vertex is not a boundary vertex. Definition at line 552 of file coloring.hpp. References getNextBdEdge(), and Arak::Coloring::VertexHandle. |
|
Definition at line 480 of file coloring.hpp. References CORNER, Arak::Coloring::IntEdgeHandle, nextIntEdge, and type(). |
|
Returns a reference to the next interior edge incident to this vertex (for some ordering of the path's vertices). This vertex must not be of type CORNER, and it must have a next interior edge. Definition at line 476 of file coloring.hpp. References CORNER, Arak::Coloring::IntEdgeHandle, nextIntEdge, and type(). Referenced by getNextVertex(). |
|
Definition at line 531 of file coloring.hpp. References getNextIntEdge(), and Arak::Coloring::VertexHandle. |
|
Returns a reference to the vertex after this vertex in the ordering of the polygon's vertices.
Definition at line 528 of file coloring.hpp. References getNextIntEdge(), and Arak::Coloring::VertexHandle. Referenced by logSine(). |
|
Definition at line 494 of file coloring.hpp. References Arak::Coloring::BdEdgeHandle, BOUNDARY, CORNER, prevBdEdge, and type(). |
|
Returns a reference to the previous boundary edge incident to this vertex (for some ordering of the boundary vertices). This vertex must be of type BOUNDARY or CORNER. Definition at line 490 of file coloring.hpp. References Arak::Coloring::BdEdgeHandle, BOUNDARY, CORNER, prevBdEdge, and type(). Referenced by getPrevCornerVertex(), and logSine(). |
|
Definition at line 543 of file coloring.hpp. References getPrevBdEdge(), and Arak::Coloring::VertexHandle. |
|
Returns a reference to the previous corner vertex preceding this boundary vertex. This method signals an error if this vertex is not a boundary vertex. Definition at line 540 of file coloring.hpp. References getPrevBdEdge(), and Arak::Coloring::VertexHandle. |
|
Definition at line 455 of file coloring.hpp. References CORNER, Arak::Coloring::IntEdgeHandle, prevIntEdge, and type(). |
|
Returns a reference to the previous edge incident to this vertex (for some ordering of the path's vertices). This vertex must not be of type CORNER, and it must have a previous interior edge. Definition at line 451 of file coloring.hpp. References CORNER, Arak::Coloring::IntEdgeHandle, prevIntEdge, and type(). Referenced by getPrevVertex(). |
|
Definition at line 520 of file coloring.hpp. References getPrevIntEdge(), and Arak::Coloring::VertexHandle. |
|
Returns a reference to the vertex before this vertex in the ordering of the polygon's vertices.
Definition at line 517 of file coloring.hpp. References getPrevIntEdge(), and Arak::Coloring::VertexHandle. Referenced by logSine(). |
|
Returns true if this vertex has a next interior edge. If it does not, then it is a boundary vertex at the end of a path and calling getNextIntEdge() will yield an error. Definition at line 465 of file coloring.hpp. References CORNER, nextIntEdge, type(), and PointerHandle< T >::valid(). |
|
Returns true if this vertex has a previous interior edge. If it does not, then it is a boundary vertex at the start of a path and calling getPrevIntEdge() will yield an error. Definition at line 440 of file coloring.hpp. References CORNER, prevIntEdge, type(), and PointerHandle< T >::valid(). Referenced by logSine(). |
|
If this vertex is an interior vertex, this computes the log of the sine of the smaller angle between the two incident edges; if this vertex is a boundary vertex, this computes the log of the sine of the smaller angle between the true incident edge and the boundary tangent. It is an error to invoke this method on a vertex that is not of type BOUNDARY or INTERIOR.
Definition at line 26 of file coloring.cpp. References BOUNDARY, getNextBdEdge(), getNextVertex(), getPrevBdEdge(), getPrevVertex(), hasPrevIntEdge(), INTERIOR, Arak::Geometry::logSineB(), point(), Arak::Geometry::Point, and type(). |
|
Returns a point representation of the vertex.
Definition at line 433 of file coloring.hpp. References Arak::Geometry::Point. Referenced by logSine(). |
|
Returns the type of this vertex.
Definition at line 428 of file coloring.hpp. Referenced by getNextBdEdge(), getNextIntEdge(), getPrevBdEdge(), getPrevIntEdge(), hasNextIntEdge(), hasPrevIntEdge(), and logSine(). |
|
Definition at line 341 of file coloring.hpp. |
|
Definition at line 342 of file coloring.hpp. |
|
Definition at line 340 of file coloring.hpp. |
|
The index of this vertex in the random access vectors. If this vertex is of type INTERIOR, then this its index in interiorVertices; if this vertex is of type BOUNDARY, then this is its index in boundaryVertices; and if this vertex is of type CORNER, then this is its index in cornerVertices. If this vertex is unused (of type INVALID), then this is -1. Definition at line 411 of file coloring.hpp. Referenced by Vertex(). |
|
If this vertex is of type BOUNDARY, then this points to the next boundary edge incident to this vertex (for some ordering of the boundary edges). Otherwise, this is NULL. Definition at line 401 of file coloring.hpp. Referenced by getNextBdEdge(). |
|
A pointer to the next interior edge incident to this vertex (for some ordering of the path's vertices). If this is a CORNER vertex, then this pointer is NULL. Definition at line 387 of file coloring.hpp. Referenced by getNextIntEdge(), and hasNextIntEdge(). |
|
If this vertex is of type BOUNDARY, then this points to the previous boundary edge incident to this vertex (for some ordering of the boundary edges). Otherwise, this is NULL. Definition at line 394 of file coloring.hpp. Referenced by getPrevBdEdge(). |
|
A handle on the previous interior edge incident to this vertex (for some ordering of the path's vertices). If this is a CORNER vertex, then this pointer is NULL. Definition at line 380 of file coloring.hpp. Referenced by getPrevIntEdge(), and hasPrevIntEdge(). |
|
The type of this vertex. Note that a vertex of type Coloring::Vertex::CORNER is not a true vertex of the coloring. Definition at line 373 of file coloring.hpp. |