|
a |
|
b/Tests/Applications/test_THA-KneeBendDemo.any |
|
|
1 |
//# Note. Since these tests include main files from other |
|
|
2 |
//# applications they alter the ANYBODY_PATH_MAINFILEDIR and |
|
|
3 |
//# ANYBODY_PATH_MAINFILE preprocessor flags. |
|
|
4 |
//# |
|
|
5 |
//# If these flags are important to the model they must be mocked by the |
|
|
6 |
//# test framework. This can be done by adding the following test directives. |
|
|
7 |
//# path = {'ANYBODY_PATH_MAINFILEDIR':'../../Application/Examples/THA-KneeBendDemo', |
|
|
8 |
//# 'ANYBODY_PATH_MAINFILE':'../../Application/Examples/THA-KneeBendDemo/THA-KneeBendDemo.Main.any' } |
|
|
9 |
//save_study=["Main.Study"] |
|
|
10 |
|
|
|
11 |
#include "../libdef.any" |
|
|
12 |
|
|
|
13 |
#ifndef TEST_NAME |
|
|
14 |
|
|
|
15 |
#endif |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
#include "../../Application/Examples/THA-KneeBendDemo/THA-KneeBendDemo.Main.any" |
|
|
19 |
|
|
|
20 |
Main = |
|
|
21 |
{ |
|
|
22 |
#ifndef CREATE_IMAGE |
|
|
23 |
AnyOperation& RunTest = Main.RunApplication; |
|
|
24 |
Study = { FixTestStudyConfig TestStudyConfig = { }; }; |
|
|
25 |
#else |
|
|
26 |
#include "../Cameras.any" |
|
|
27 |
// Use a a spical time for the initial position picture. |
|
|
28 |
AnyOperationSequence CameraInitPos = |
|
|
29 |
{ |
|
|
30 |
AnyOperationSetValue setTime = |
|
|
31 |
{ |
|
|
32 |
AnyFloat t_custom = 8; |
|
|
33 |
Source = {&t_custom}; |
|
|
34 |
Target = {&Main.Study.tStart}; |
|
|
35 |
}; |
|
|
36 |
AnyOperation& CameraInitPos = Main.Study.InitialConditions; |
|
|
37 |
}; |
|
|
38 |
LoadTimeCam.CameraLookAtPoint = {0.1,0.9,0}; |
|
|
39 |
LoadTimeCam.CameraFieldOfView = DesignVar(2); |
|
|
40 |
LoadTimeCam.CameraDirection = {0,0,1}; |
|
|
41 |
#endif |
|
|
42 |
}; |