#include <cn94.hpp>
Inheritance diagram for Arak::CN94Proposal::Recolor:
Definition at line 180 of file cn94.hpp.
Public Member Functions | |
Recolor () | |
void | reset (Coloring::IntEdgeHandle edge1, Coloring::IntEdgeHandle edge2, bool joinSourceToSource, bool convex) |
Resets this move. | |
bool | isConvex () |
Determines if the recolored region is convex or not. | |
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::IntEdgeHandle | edge1 |
The first of the two edges. | |
Coloring::IntEdgeHandle | edge2 |
The second of the two edges. | |
bool | joinSourceToSource |
This flag is true if the source of edge1 should be joined to the source of edge2 (and false if it should be joined to the target of edge2). | |
bool | convex |
This flag is true if the recolored quadrilateral is convex. | |
Friends | |
class | CN94Proposal |
class | ModifiedCN94Proposal |
|
|
|
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.
Implements Arak::ColoringMove. Definition at line 95 of file cn94.cpp. References edge1, edge2, joinSourceToSource, Arak::Coloring::recolorQuadrilateral(), and Arak::Coloring::VertexHandle. Referenced by undo(). |
|
Determines if the recolored region is convex or not.
Definition at line 236 of file cn94.hpp. References convex. Referenced by Arak::CN94Proposal::ll(), and Arak::CN94Proposal::rll(). |
|
Resets this move.
Definition at line 85 of file cn94.cpp. References Arak::Coloring::IntEdgeHandle. Referenced by Arak::CN94Proposal::sampleRecolor(). |
|
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.
Implements Arak::ColoringMove. Definition at line 108 of file cn94.cpp. References execute(). |
|
|
|
|
|
This flag is true if the recolored quadrilateral is convex.
Definition at line 207 of file cn94.hpp. Referenced by isConvex(). |
|
The first of the two edges.
Definition at line 190 of file cn94.hpp. Referenced by execute(). |
|
The second of the two edges.
Definition at line 195 of file cn94.hpp. Referenced by execute(). |
|
This flag is true if the source of edge1 should be joined to the source of edge2 (and false if it should be joined to the target of edge2).
Definition at line 202 of file cn94.hpp. Referenced by execute(). |