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

Arak::CN94Proposal::CornerCutDeath Class Reference

#include <cn94.hpp>

Inheritance diagram for Arak::CN94Proposal::CornerCutDeath:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Removes a triangle in a corner of the region; all points inside the triangle are recolored.

Definition at line 707 of file cn94.hpp.

Public Member Functions

 CornerCutDeath ()
void reset (Coloring::VertexHandle vertex)
 Resets this move.

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::VertexHandle corner
 The corner that forms a vertex of the triangle to remove.

Point u
 The point on the previous boundary edge incident to corner that is another vertex of the triangle.

Point v
 The point on the next boundary edge incident to corner that will is another vertex of the triangle.

Coloring::VertexHandle vh
 A handle on the root vertex of the triangle removed by the move.


Friends

class CN94Proposal


Constructor & Destructor Documentation

Arak::CN94Proposal::CornerCutDeath::CornerCutDeath  )  [inline]
 

Definition at line 740 of file cn94.hpp.


Member Function Documentation

void CN94Proposal::CornerCutDeath::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 316 of file cn94.cpp.

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

void CN94Proposal::CornerCutDeath::reset Coloring::VertexHandle  vertex  ) 
 

Resets this move.

Parameters:
vertex a corner vertex whose adjacent boundary vertices are connected by an internal edge

Definition at line 296 of file cn94.cpp.

References Arak::Coloring::VertexHandle.

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

void CN94Proposal::CornerCutDeath::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 321 of file cn94.cpp.

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


Friends And Related Function Documentation

friend class CN94Proposal [friend]
 

Definition at line 709 of file cn94.hpp.


Member Data Documentation

Coloring::VertexHandle Arak::CN94Proposal::CornerCutDeath::corner [protected]
 

The corner that forms a vertex of the triangle to remove.

Definition at line 716 of file cn94.hpp.

Point Arak::CN94Proposal::CornerCutDeath::u [protected]
 

The point on the previous boundary edge incident to corner that is another vertex of the triangle.

This information is used to restore the triangle if the move is undone.

Definition at line 723 of file cn94.hpp.

Point Arak::CN94Proposal::CornerCutDeath::v [protected]
 

The point on the next boundary edge incident to corner that will is another vertex of the triangle.

This information is used to restore the triangle if the move is undone.

Definition at line 730 of file cn94.hpp.

Coloring::VertexHandle Arak::CN94Proposal::CornerCutDeath::vh [protected]
 

A handle on the root vertex of the triangle removed by the move.

This is invalid after the move has been executed.

Definition at line 736 of file cn94.hpp.


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