QueensInspector Class Reference
Inspector showing queens on a chess board. More...
Public Member Functions | |
| QueensInspector (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 = 20 |
| The size of a field on the board. | |
Detailed Description
Inspector showing queens on a chess board.
Definition at line 123 of file queens.cpp.
Constructor & Destructor Documentation
| QueensInspector::QueensInspector | ( | void | ) | [inline] |
Constructor.
Definition at line 133 of file queens.cpp.
Member Function Documentation
| virtual void QueensInspector::inspect | ( | const Space & | s | ) | [inline, virtual] |
| void QueensInspector::initialize | ( | void | ) | [inline] |
Set up main window.
Definition at line 161 of file queens.cpp.
| virtual std::string QueensInspector::name | ( | void | ) | [inline, virtual] |
Name of the inspector.
Reimplemented from Gecode::Gist::Inspector.
Definition at line 177 of file queens.cpp.
| virtual void QueensInspector::finalize | ( | void | ) | [inline, virtual] |
Finalize inspector.
Reimplemented from Gecode::Gist::Inspector.
Definition at line 179 of file queens.cpp.
Member Data Documentation
QGraphicsScene* QueensInspector::scene [protected] |
The graphics scene displaying the board.
Definition at line 126 of file queens.cpp.
QMainWindow* QueensInspector::mw [protected] |
The window containing the graphics scene.
Definition at line 128 of file queens.cpp.
const int QueensInspector::unit = 20 [static, protected] |
The size of a field on the board.
Definition at line 130 of file queens.cpp.
The documentation for this class was generated from the following file:
- examples/queens.cpp (Revision: 10906)
