|
Path Tracer
|
Defines some functions for the interface. More...
#include "Scene.h"Go to the source code of this file.
Functions | |
| void | receiveAndExecuteGeneralCommands () |
| Receives and executes a general command. More... | |
| void | executeParametersCommands (char command) |
| Executes a command specific to the parameters page. More... | |
| void | executeObjectsCommands (char command) |
| Executes a command specific to the objects page. More... | |
| void | displayCommands () |
| Prints the available commands. More... | |
| void | printAll () |
| Prints the whole page. More... | |
| void | initInterface () |
| Starts the infinite loop of the interface. More... | |
Variables | |
| static Scene | scene |
| The scene that will be used by the interface. More... | |
| static PerspectiveCamera & | camera = scene.getCameraReference() |
| A reference to the camera from the scene. More... | |
| static std::vector< Object3DGroup > & | objectGroups = scene.getObjectGroupsReference() |
| A reference to the vector of object groups from the scene. More... | |
| static bool | isParametersPage = true |
| Defines whether the current page is the parameters page. More... | |
| static bool | commandWasInvalid = false |
| Defines whether the last command that was used was invalid. More... | |
Defines some functions for the interface.
| void displayCommands | ( | ) |
Prints the available commands.
The available commands change depending on the active page.
| void executeObjectsCommands | ( | char | command | ) |
Executes a command specific to the objects page.
| void executeParametersCommands | ( | char | command | ) |
Executes a command specific to the parameters page.
| void initInterface | ( | ) |
Starts the infinite loop of the interface.
Fills the scene with a default one. Then, it calls printAll() and receiveAndExecuteGeneralCommands() indefinitely.
| void printAll | ( | ) |
Prints the whole page.
Clears the page, prints the header, information and the available commands.
| void receiveAndExecuteGeneralCommands | ( | ) |
Receives and executes a general command.
Asks a command to the user. If it is general to both main pages (exit, for example), executes it. Else, it calls executeParametersCommands() or executeObjectsCommands().
|
static |
A reference to the camera from the scene.
|
static |
Defines whether the last command that was used was invalid.
It is used to display INVALID_COMMAND when reprinting the page.
|
static |
Defines whether the current page is the parameters page.
If the current page is not the parameters page, then it is the objects page.
|
static |
A reference to the vector of object groups from the scene.
|
static |
The scene that will be used by the interface.