Augmented Go
|
Go_Backend | |
Game | Basic game class to play and keep track of a game of go. One instance handles one game of go. The board locations begin at (1,1) and go up to max. (19,19), depending on the board size. These points are represented by the fuego type 'SgPoint'. The fuego type 'GoSetup' is used for updating the board. GoSetup uses 'SgPoints' to add stones to such a setup. The game then automatically tries to read a move out of the current and updated board |
Go_Controller | |
BackendWorker | Class for the scanning- and game-update-loop. Main work is done in the scan() method: scanning the camera and interpreting the result. This is done periodically by a timer. This object has to run in a seperate thread because it does heavy duty processing and the timer wouldn't work otherwise |
Go_GUI | |
AugmentedView | The AugmentedView is part of Augmented-Go Gui. The view shows the camera picture (if a camera is connected) or the augmented logo. If an error occurs an error message is shown on top of the camera picture. If the game is in virtual mode, the user can place stones by clicking on the board |
ChangeScanRateDialog | The ChangeScanRateDialog is part of Augmented-Go Gui. Uses the ChangeScanRateDialog.ui The Dialog lets the user choose the scanning rate of the camera. When the user presses "OK" the information gets signaled and the dialog closes |
GUI | Main part of the Augmented-Go Gui. Uses the GUI.ui It connects with the backend to get, and send information. Mainly these information are the camera picture and user interactions with the gui (buttons, dialogs, etc.) The main window shows two smaller windows. One window is the augmented view. The other one the virtual view. These views can be switched by clicking the view switch button |
NewGameDialog | The NewGameDialog is part of Augmented-Go Gui. Uses the NewGameDialog.ui The Dialog lets the user choose several settings for a go-game listed below: |
VirtualView | The VirtualView is part of Augmented-Go Gui. The virtual view shows a virtual representation of the game. Red circles represent differences of the game on the camera picture and the virtual board. If the game is in virtual mode, the user can place stones by clicking on the board |
Go_Scanner | |
lesserPoint2f | Cv::Point2f comparison functor. Compares by y-value first and x-value second. Needed for example for a std::map and sorting |
Scanner | This class is used by the controller to interface with the scanner |