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

Arak::CN94Proposal::InteriorTriangleDeath Class Reference

#include <cn94.hpp>

Inheritance diagram for Arak::CN94Proposal::InteriorTriangleDeath:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Removes a triangle from the interior of the colored region; all points inside the triangle are recolored.

Definition at line 114 of file cn94.hpp.

Public Member Functions

 InteriorTriangleDeath (const CN94Proposal &proposal)
 Constructor.

void reset (Coloring::VertexHandle vertex, bool isShort)
 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

const CN94Proposalproposal
 The proposal that this move is associated with.

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

Point u
 The vertices of the triangle.

Point v
 The vertices of the triangle.

Point w
 The vertices of the triangle.

bool isShort
 This is true if the triangle to be removed is "short", meaning that a casting box centered at each vertex contains the other two vertices.


Friends

class CN94Proposal


Constructor & Destructor Documentation

Arak::CN94Proposal::InteriorTriangleDeath::InteriorTriangleDeath const CN94Proposal proposal  )  [inline]
 

Constructor.

Parameters:
proposal the proposal this move is associated with

Definition at line 152 of file cn94.hpp.


Member Function Documentation

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

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

void CN94Proposal::InteriorTriangleDeath::reset Coloring::VertexHandle  vertex,
bool  isShort
 

Resets this move.

Parameters:
vertex a vertex of the triangle to be deleted
isShort true if the vertex is part of a short triangle; false if it is part of a long triangle

Definition at line 61 of file cn94.cpp.

References Arak::Coloring::VertexHandle.

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

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

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


Friends And Related Function Documentation

friend class CN94Proposal [friend]
 

Definition at line 116 of file cn94.hpp.


Member Data Documentation

bool Arak::CN94Proposal::InteriorTriangleDeath::isShort [protected]
 

This is true if the triangle to be removed is "short", meaning that a casting box centered at each vertex contains the other two vertices.

Definition at line 143 of file cn94.hpp.

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

const CN94Proposal& Arak::CN94Proposal::InteriorTriangleDeath::proposal [protected]
 

The proposal that this move is associated with.

Definition at line 123 of file cn94.hpp.

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

The vertices of the triangle.

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

Definition at line 136 of file cn94.hpp.

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

The vertices of the triangle.

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

Definition at line 136 of file cn94.hpp.

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

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

This is invalid after the move has been executed, but is reset to if the move is undone.

Definition at line 130 of file cn94.hpp.

Point Arak::CN94Proposal::InteriorTriangleDeath::w [protected]
 

The vertices of the triangle.

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

Definition at line 136 of file cn94.hpp.


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