Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Arak::Coloring::BoundaryEdge Class Reference

#include <coloring.hpp>

Inheritance diagram for Arak::Coloring::BoundaryEdge:

Inheritance graph
[legend]
Collaboration diagram for Arak::Coloring::BoundaryEdge:

Collaboration graph
[legend]
List of all members.

Detailed Description

An edge that lies in the boundary of the colored region; such edges do not represent color discontinuities.

Definition at line 755 of file coloring.hpp.

Public Member Functions

 BoundaryEdge ()
 Default constructor.

VertexHandle getPrevCornerVertex ()
 Returns a reference to the previous corner vertex preceding this boundary edge.

const VertexHandle getPrevCornerVertex () const
VertexHandle getNextCornerVertex ()
 Returns a reference to the next corner vertex following this boundary edge.

const VertexHandle getNextCornerVertex () const
Geometry::Point randomPoint (Arak::Util::Random &random=Arak::Util::default_random) const
 Returns a point sampled uniformly at random from the edge.


Protected Attributes

VertexHandle prevCorner
 The first corner vertex encountered by a backwards traversal from this boundary edge.

VertexHandle nextCorner
 The first corner vertex encountered by a forwards traversal from this boundary edge.


Friends

class Vertex
class Coloring


Constructor & Destructor Documentation

Arak::Coloring::BoundaryEdge::BoundaryEdge  )  [inline]
 

Default constructor.

Definition at line 779 of file coloring.hpp.

References nextCorner, and prevCorner.


Member Function Documentation

const VertexHandle Arak::Coloring::BoundaryEdge::getNextCornerVertex  )  const [inline]
 

Definition at line 792 of file coloring.hpp.

References nextCorner, and Arak::Coloring::VertexHandle.

VertexHandle Arak::Coloring::BoundaryEdge::getNextCornerVertex  )  [inline]
 

Returns a reference to the next corner vertex following this boundary edge.

Definition at line 791 of file coloring.hpp.

References nextCorner, and Arak::Coloring::VertexHandle.

Referenced by randomPoint().

const VertexHandle Arak::Coloring::BoundaryEdge::getPrevCornerVertex  )  const [inline]
 

Definition at line 786 of file coloring.hpp.

References prevCorner, and Arak::Coloring::VertexHandle.

VertexHandle Arak::Coloring::BoundaryEdge::getPrevCornerVertex  )  [inline]
 

Returns a reference to the previous corner vertex preceding this boundary edge.

Definition at line 785 of file coloring.hpp.

References prevCorner, and Arak::Coloring::VertexHandle.

Referenced by randomPoint().

Geometry::Point Coloring::BoundaryEdge::randomPoint Arak::Util::Random random = Arak::Util::default_random  )  const
 

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.

Parameters:
random a source of pseudorandomness
Returns:
a random point in the closure of the edge

Reimplemented from Arak::Coloring::Edge.

Definition at line 53 of file coloring.cpp.

References getNextCornerVertex(), getPrevCornerVertex(), Point, Arak::Geometry::Point, and Arak::Coloring::VertexHandle.


Friends And Related Function Documentation

friend class Coloring [friend]
 

Reimplemented from Arak::Coloring::Edge.

Definition at line 758 of file coloring.hpp.

friend class Vertex [friend]
 

Reimplemented from Arak::Coloring::Edge.

Definition at line 757 of file coloring.hpp.


Member Data Documentation

VertexHandle Arak::Coloring::BoundaryEdge::nextCorner [protected]
 

The first corner vertex encountered by a forwards traversal from this boundary edge.

This is cached for efficiency.

Definition at line 772 of file coloring.hpp.

Referenced by BoundaryEdge(), and getNextCornerVertex().

VertexHandle Arak::Coloring::BoundaryEdge::prevCorner [protected]
 

The first corner vertex encountered by a backwards traversal from this boundary edge.

This is cached for efficiency.

Definition at line 766 of file coloring.hpp.

Referenced by BoundaryEdge(), and getPrevCornerVertex().


The documentation for this class was generated from the following files:
Generated on Wed May 25 14:41:03 2005 for Arak by doxygen 1.3.6