#include <point_obs.hpp>
Inheritance diagram for Arak::QueryPointPotential:


Definition at line 15 of file point_obs.hpp.
Public Member Functions | |
| QueryPointPotential (double &potential, double blackVal, double whiteVal) | |
| Constructor. | |
| virtual void | recolor (Color color) |
| Reacts to information that the query point has been recolored. | |
Private Attributes | |
| double & | potential |
| The potential value that is updated. | |
| Color | color |
| The current color of the point. | |
| const double | blackVal |
| The amount by which the potential should be increased if the point is black. | |
| const double | whiteVal |
| The amount by which the potential should be increased if the point is white. | |
|
||||||||||||||||
|
Constructor.
Definition at line 50 of file point_obs.hpp. References Arak::INVALID_COLOR. |
|
|
Reacts to information that the query point has been recolored. If the color has changed, the potential is updated accordingly.
Implements Arak::QueryPointListener. Definition at line 64 of file point_obs.hpp. References Arak::BLACK, blackVal, potential, Arak::WHITE, and whiteVal. |
|
|
The amount by which the potential should be increased if the point is black.
Definition at line 31 of file point_obs.hpp. Referenced by recolor(). |
|
|
The current color of the point.
Definition at line 25 of file point_obs.hpp. |
|
|
The potential value that is updated.
Definition at line 20 of file point_obs.hpp. Referenced by recolor(). |
|
|
The amount by which the potential should be increased if the point is white.
Definition at line 37 of file point_obs.hpp. Referenced by recolor(). |
1.3.6