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

Arak::CN94Proposal::MoveBdVertexPastCorner Class Reference

#include <cn94.hpp>

Inheritance diagram for Arak::CN94Proposal::MoveBdVertexPastCorner:

Inheritance graph
[legend]
Collaboration diagram for Arak::CN94Proposal::MoveBdVertexPastCorner:

Collaboration graph
[legend]
List of all members.

Detailed Description

Moves a boundary vertex past a corner to an adjacent face of the boundary.

Definition at line 348 of file cn94.hpp.

Public Member Functions

 MoveBdVertexPastCorner ()
void reset (Coloring::BdEdgeHandle edge, const Point &point)
 Resets this move with the supplied parameters.

virtual void execute (Coloring &c)
 Updates the supplied coloring according to this move.

virtual void undo (Coloring &c)
 Updates the supplied Coloring so that the effects of performing this move are undone.


Protected Attributes

Coloring::BdEdgeHandle edge
 An edge that joins a corner vertex to a boundary vertex.

Point oldLoc
 The old location of the boundary vertex incident to edge.

Point newLoc
 The new location for the boundary vertex incident to edge.


Friends

class CN94Proposal


Constructor & Destructor Documentation

Arak::CN94Proposal::MoveBdVertexPastCorner::MoveBdVertexPastCorner  )  [inline]
 

Definition at line 374 of file cn94.hpp.


Member Function Documentation

void CN94Proposal::MoveBdVertexPastCorner::execute Coloring c  )  [virtual]
 

Updates the supplied coloring according to this move.

It is an error to call this method if the move is not valid for the supplied coloring.

Parameters:
c a coloring to be updated

Implements Arak::ColoringMove.

Definition at line 122 of file cn94.cpp.

References edge, and Arak::Coloring::moveBdVertexPastCorner().

void CN94Proposal::MoveBdVertexPastCorner::reset Coloring::BdEdgeHandle  edge,
const Point point
 

Resets this move with the supplied parameters.

Parameters:
edge an edge that joins a corner vertex to a boundary vertex (or another corner vertex, in which case the move is invalid)
point the new location for the boundary vertex incident to the edge. This point lies on the other boundary edge incident to the corner.

Definition at line 114 of file cn94.cpp.

References Arak::Coloring::BdEdgeHandle, and Arak::Geometry::Point.

Referenced by Arak::CN94Proposal::sampleMoveBdVertexPastCorner().

void CN94Proposal::MoveBdVertexPastCorner::undo Coloring c  )  [virtual]
 

Updates the supplied Coloring so that the effects of performing this move are undone.

The semantics of this method ensure that applying execute(Coloring&) and then undo(Coloring&) to the same coloring leaves the coloring invariant. It is an error to call this method if this undo is not valid for the supplied coloring.

Parameters:
c a coloring to be updated

Implements Arak::ColoringMove.

Definition at line 126 of file cn94.cpp.

References edge, Arak::Coloring::moveBdVertexPastCorner(), and PointerHandle< T >::valid().


Friends And Related Function Documentation

friend class CN94Proposal [friend]
 

Definition at line 350 of file cn94.hpp.


Member Data Documentation

Coloring::BdEdgeHandle Arak::CN94Proposal::MoveBdVertexPastCorner::edge [protected]
 

An edge that joins a corner vertex to a boundary vertex.

Definition at line 357 of file cn94.hpp.

Referenced by execute(), Arak::CN94Proposal::ll(), Arak::CN94Proposal::rll(), and undo().

Point Arak::CN94Proposal::MoveBdVertexPastCorner::newLoc [protected]
 

The new location for the boundary vertex incident to edge.

This point lies on the other boundary edge incident to the corner.

Definition at line 370 of file cn94.hpp.

Point Arak::CN94Proposal::MoveBdVertexPastCorner::oldLoc [protected]
 

The old location of the boundary vertex incident to edge.

This information is used to undo the move.

Definition at line 363 of file cn94.hpp.


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