KnightsInspector Class Reference
Inspector showing knight moves on a chess board. More...
Public Member Functions | |
| KnightsInspector (void) | |
| Constructor. | |
| virtual void | inspect (const Space &s) |
| Inspect space s. | |
| void | initialize (void) |
| Set up main window. | |
| virtual std::string | name (void) |
| Name of the inspector. | |
| virtual void | finalize (void) |
| Finalize inspector. | |
Protected Attributes | |
| QGraphicsScene * | scene |
| The graphics scene displaying the board. | |
| QMainWindow * | mw |
| The window containing the graphics scene. | |
Static Protected Attributes | |
| static const int | unit = 30 |
| The size of a field on the board. | |
Detailed Description
Inspector showing knight moves on a chess board.
Definition at line 311 of file knights.cpp.
Constructor & Destructor Documentation
| KnightsInspector::KnightsInspector | ( | void | ) | [inline] |
Constructor.
Definition at line 321 of file knights.cpp.
Member Function Documentation
| virtual void KnightsInspector::inspect | ( | const Space & | s | ) | [inline, virtual] |
| void KnightsInspector::initialize | ( | void | ) | [inline] |
Set up main window.
Definition at line 358 of file knights.cpp.
| virtual std::string KnightsInspector::name | ( | void | ) | [inline, virtual] |
Name of the inspector.
Reimplemented from Gecode::Gist::Inspector.
Definition at line 374 of file knights.cpp.
| virtual void KnightsInspector::finalize | ( | void | ) | [inline, virtual] |
Finalize inspector.
Reimplemented from Gecode::Gist::Inspector.
Definition at line 376 of file knights.cpp.
Member Data Documentation
QGraphicsScene* KnightsInspector::scene [protected] |
The graphics scene displaying the board.
Definition at line 314 of file knights.cpp.
QMainWindow* KnightsInspector::mw [protected] |
The window containing the graphics scene.
Definition at line 316 of file knights.cpp.
const int KnightsInspector::unit = 30 [static, protected] |
The size of a field on the board.
Definition at line 318 of file knights.cpp.
The documentation for this class was generated from the following file:
- examples/knights.cpp (Revision: 11148)
