-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
64 lines (43 loc) · 1.91 KB
/
README.txt
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
* Needed:
Qt5
Eigen (included)
* Compilation:
qmake && make
* Launch:
./yourAppName
* Modify the app name:
Open main.pro, edit the value of TARGET
Open mainWindow.cpp,
edit the value of _APPLICATION_NAME
edit the value of _APPLICATION_EXTENSION (extension of saved/opened files)
* Modify the menu Help/about:
edit YOUR APPLICATION NAME (VERSION...)
edit your website (if any), your name and your email (for all students).
* How to add a new 2D curve type (lets say "Curve2DWonderful")?
Copy curve2DLinear.h in curve2DWonderful.h
edit curve2DWonderful.h:
replace linear by wonderful everywhere
modify the "path" function to return your wonderful 2D curve
Note: you can override any function you want from Curve2D if needed
edit main.pro:
add curve2DWonderful.h in HEADERS
Note: if you created an associated .cpp file, you have to add it to SOURCES as well
edit scene.cpp:
add the line #include "curve2DWonderful.h" at the begining of the file
add the line addCurveBuilder(new Curve2DWonderfulConstructor()); in the function initCurveBuilders()
recompile and run!
* How to add a new 1D curve type (lets say "Curve1DBlabla")?
Copy curve1DLinear.h in curve1DBlabla.h
edit curve1DBlabla.h:
replace linear by blabla everywhere
modify the "path" function to return your new 1D curve
modify the "evalAt" function to return the evaluation of the curve at one particular position
Note: you can override any function you want from Curve1D if needed
Note: you can use "evalAt" inside "path" if you wish
edit main.pro:
add curve1DBlabla.h in HEADERS
Note: if you created an associated .cpp file, you have to add it to SOURCES as well
edit scene.cpp:
add the line #include "curve1DBlabla.h" at the begining of the file
add the line addFunctionBuilder(new Curve1DBlablaConstructor()); in the function initFunctionBuilders()
recompile and run!