Generated on Wed Jul 27 2011 15:09:03 for Gecode by doxygen 1.7.4
KnightsInspector Class Reference

Inspector showing knight moves on a chess board. More...

List of all members.

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 317 of file knights.cpp.


Constructor & Destructor Documentation

KnightsInspector::KnightsInspector ( void  ) [inline]

Constructor.

Definition at line 327 of file knights.cpp.


Member Function Documentation

virtual void KnightsInspector::inspect ( const Space s) [inline, virtual]

Inspect space s.

Implements Gecode::Gist::Inspector.

Definition at line 329 of file knights.cpp.

void KnightsInspector::initialize ( void  ) [inline]

Set up main window.

Definition at line 364 of file knights.cpp.

virtual std::string KnightsInspector::name ( void  ) [inline, virtual]

Name of the inspector.

Reimplemented from Gecode::Gist::Inspector.

Definition at line 380 of file knights.cpp.

virtual void KnightsInspector::finalize ( void  ) [inline, virtual]

Finalize inspector.

Reimplemented from Gecode::Gist::Inspector.

Definition at line 382 of file knights.cpp.


Member Data Documentation

QGraphicsScene* KnightsInspector::scene [protected]

The graphics scene displaying the board.

Definition at line 320 of file knights.cpp.

QMainWindow* KnightsInspector::mw [protected]

The window containing the graphics scene.

Definition at line 322 of file knights.cpp.

const int KnightsInspector::unit = 30 [static, protected]

The size of a field on the board.

Definition at line 324 of file knights.cpp.


The documentation for this class was generated from the following file: