23 #include "gtc/type_ptr.hpp" 24 #include "gtc/matrix_transform.hpp" 30 #include "SceneObject.h" 31 #include "PointLight.h" 33 #include "../Scene/Camera.h" 34 #include "../Shader/Shader.h" 35 #include "../Shader/BlinnPhongShader.h" 36 #include "../Shader/NormalShader.h" 37 #include "../Shader/TextureShader.h" 43 #include "StringHelpers.hpp" 44 #include <opencv2\opencv.hpp> 45 #include <opencv2\imgproc\imgproc.hpp> 46 #include <opencv2\highgui\highgui.hpp> 47 #include <opencv2\features2d\features2d.hpp> 48 #include <opencv2\nonfree\features2d.hpp> 49 #include <opencv2\highgui\highgui.hpp> 50 #include <opencv2\nonfree\nonfree.hpp> 53 #include <opencv2\highgui\highgui_c.h> 64 bool fullscreen =
false;
68 std::vector<std::shared_ptr<Energy>> e_items;
69 std::vector<std::shared_ptr<Environment>> environment;
74 float look_speed = 0.001f;
75 float near_plane = 0.1f;
76 float far_plane = 180.0f;
77 float ratio = width / height;
78 float fov = glm::radians(70.0f);
82 float drill_angle = 40.0f;
83 float doCutaway = 1.0f;
91 GLFWwindow* m_window =
nullptr;
93 std::string m_environmentDaeFile =
"";
94 std::string m_itemDaeFile =
"";
113 bool startSim =
false;
116 Tcl_Interp *interp =
nullptr;
117 static Tk_ArgvInfo argTable[] = { {
"", TK_ARGV_END } };
142 void UpdateItem(
const std::string &itemDaeFile);
151 int argc, CONST84
char *argv[]);
159 int SetItemCmd(ClientData clientData, Tcl_Interp *interp,
160 int argc, CONST84
char *argv[]);
168 int StartSimCmd(ClientData clientData, Tcl_Interp *interp,
169 int argc, CONST84
char *argv[]);
178 int argc, CONST84
char *argv[]);
187 int argc, CONST84
char *argv[]);
196 int argc, CONST84
char *argv[]);
205 int argc, CONST84
char *argv[]);
214 int argc, CONST84
char *argv[]);
223 int argc, CONST84
char *argv[]);
232 int argc, CONST84
char *argv[]);
241 int argc, CONST84
char *argv[]);
256 int InitTcl(
int argc_in,
char *argv_in[]);
281 int main(
int argc,
char** argv);
287 void init(GLFWwindow* window);
294 void update(GLFWwindow* window,
float deltaTime);
int SetEnvironmentCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:155
void UpdateNearPlane(float nearPlane)
Definition: main.cpp:102
void UpdateEnvironment(const std::string &environmentDaeFile)
Definition: main.cpp:143
scene object manager class file.
void UpdateFarPlane(float farPlane)
Definition: main.cpp:116
Cutaway surface class file.
void createDepthImage()
Definition: main.cpp:682
Definition: ZBufferView.h:32
void draw()
Definition: main.cpp:709
void cleanup()
Definition: main.cpp:726
void TearDownTcl()
Definition: main.cpp:372
int SetFarPlaneCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:203
Definition: RGBBufferView.h:33
void init(GLFWwindow *window)
Definition: main.cpp:585
void update(GLFWwindow *window, float deltaTime)
Definition: main.cpp:669
void UpdateItem(const std::string &itemDaeFile)
Definition: main.cpp:149
Tcl/Tk integration file. On Windows, this file needs to be compiled twice, once with TK_ASCII_MAIN de...
int SetDoCutawayCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:223
int SetNearPlaneCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:193
int GetFarPlaneCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:245
int SetItemCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:170
frame buffer object view class file.
void calculateCutawaySurface()
Definition: main.cpp:688
Definition: TextureView.h:11
int InitTcl(int argc_in, char *argv_in[])
Definition: main.cpp:327
Definition: CutawaySurface.h:14
Definition: SceneObjectManager.h:15
void initScreenParameters()
Definition: main.cpp:731
int GetDrillAngleCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:254
int StartSimCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:185
Scene importer class file.
int main(int argc, char **argv)
Definition: main.cpp:386
int SetDrillAngleCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:213
void UpdateDrillAngle(float drillAngle)
Definition: main.cpp:130
Z buffer view base class file.
int Tk_AppInit(Tcl_Interp *interp)
Definition: main.cpp:272
Definition: FrameBufferObjectView.h:11
int GetDoCutawayCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:263
RGB buffer view class file.
int EvalTclFile(char *fileName)
Definition: main.cpp:377
int GetNearPlaneCmd(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
Definition: main.cpp:236