-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
96 lines (68 loc) · 2.37 KB
/
main.cpp
File metadata and controls
96 lines (68 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//****************************************************************************
//
// THE MAIN
//
//****************************************************************************
// ===========================================================================
// Include Libraries
// ===========================================================================
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <gtkmm/button.h>
#include <gtkmm/main.h>
#include <gtkmm/window.h>
// ===========================================================================
// Include Project Files
// ===========================================================================
#include "Environment.h"
#include "Host.h"
#include "DefVal.h"
#include "Main_Window.h"
// ===========================================================================
// Declare Miscellaneous Functions
// ===========================================================================
// ===========================================================================
// The Main
// ===========================================================================
int main(int argc, char* argv[]) {
srand (time(NULL));
// Initiate Gtk
Gtk::Main app(argc, argv);
// Create the Window object
Main_Window fenetre;
// Display the Window object and start the main loop
Gtk::Main::run(fenetre);
/*Host h;
int i;
int x;
int y;
int size_hosts = DefVal::N_TRIANGLES_HOST;
int size_paras = DefVal::N_TRIANGLES_PARASITE;
*/
//Giorgia and Noelie test
// Host h;
// int i;
// int x;
// int y;
/*
Triangle* t = h.generateTriangles(1);
for (i=0; i<size_paras; i++)
printf("%d %f %f \n",t[i].x, t[i].w, t[i].h);*/
/*
int* p = h.triangleProfile(t,size_paras);
for (i=0; i<DefVal::PIC_WIDTH; i++)
printf("%d %d\n",i,p[i]);*/
/*
int** m = h.matrixGenerator(t,size_paras);
int** p = h.Triangleprofile();
for (i=0; i<DefVal::WINDOW_WIDTH ;i++)
printf("%d %d\n",p[0][i],p[1][i]);
for (x=0; x<DefVal::PIC_WIDTH; x++) {
for (y=0; y<DefVal::PIC_HEIGHT; y++)
printf ("%f ", m[x][y]);
printf("\n");
}*/
return 0;
}