Path Tracer
Interface.h
Go to the documentation of this file.
1 #ifndef INTERFACE
2 #define INTERFACE
3 
4 #include "Scene.h"
5 
59 static Scene scene;
61 static std::vector<Object3DGroup>& objectGroups = scene.getObjectGroupsReference();
62 static bool isParametersPage = true;
63 static bool commandWasInvalid = false;
64 
65 // Main interface
67 void executeParametersCommands(char command);
68 void executeObjectsCommands(char command);
69 
70 void displayCommands();
71 void printAll();
72 void initInterface();
73 
74 #endif
static PerspectiveCamera & camera
A reference to the camera from the scene.
Definition: Interface.h:60
static bool isParametersPage
Defines whether the current page is the parameters page.
Definition: Interface.h:62
void executeObjectsCommands(char command)
Executes a command specific to the objects page.
Definition: Interface.cpp:243
void printAll()
Prints the whole page.
Definition: Interface.cpp:420
void initInterface()
Starts the infinite loop of the interface.
Definition: Interface.cpp:429
static Scene scene
The scene that will be used by the interface.
Definition: Interface.h:59
void displayCommands()
Prints the available commands.
Definition: Interface.cpp:5
void executeParametersCommands(char command)
Executes a command specific to the parameters page.
Definition: Interface.cpp:111
static std::vector< Object3DGroup > & objectGroups
A reference to the vector of object groups from the scene.
Definition: Interface.h:61
void receiveAndExecuteGeneralCommands()
Receives and executes a general command.
Definition: Interface.cpp:29
static bool commandWasInvalid
Defines whether the last command that was used was invalid.
Definition: Interface.h:63
Defines the Scene class and some functions around it.
Models a perspective camera.
Definition: PerspectiveCamera.h:76
Stores object groups and a camera for the render.
Definition: Scene.h:291
PerspectiveCamera & getCameraReference()
Getter for a reference to the camera.
Definition: Scene.cpp:29
std::vector< Object3DGroup > & getObjectGroupsReference()
Getter for a reference to the object groups.
Definition: Scene.cpp:13