~forsslundsystems/forssim/statistics

« back to all changes in this revision

Viewing changes to python/Route.py

  • Committer: par.hellstrom at hiq
  • Date: 2009-01-14 12:29:11 UTC
  • Revision ID: par.hellstrom@hiq.se-20090114122911-1l0tbujn4ftfugfn
added python directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from H3D import *
 
2
from H3DInterface import *
 
3
import time
 
4
import sys
 
5
 
 
6
 
 
7
"""
 
8
Includes all variables which are routed to and from the C++ code via the .x3d-file 
 
9
"""
 
10
 
 
11
#Varaible decleration and initialization
 
12
renderMethodField = SFInt32()
 
13
renderMethodField.setValue(1)
 
14
 
 
15
windowWidthField = SFInt32()
 
16
windowWidthField.setValue(38)
 
17
 
 
18
windowCenterField = SFInt32()
 
19
windowCenterField.setValue(27)
 
20
 
 
21
cutRadiusField = SFFloat()
 
22
cutRadiusField.setValue(0.0025)
 
23
 
 
24
drillSpeedField = SFFloat()
 
25
drillSpeedField.setValue(3)
 
26
 
 
27
saveVolumeField = SFBool()
 
28
saveVolumeField.setValue(False)
 
29
 
 
30
playbackDirectionField = SFFloat()
 
31
playbackDirectionField.setValue(0)
 
32
 
 
33
runPlaybackField = SFBool()
 
34
runPlaybackField.setValue(False)
 
35
 
 
36
saveHapticField = SFBool()
 
37
saveHapticField.setValue(False)
 
38
 
 
39
playHapticField = SFBool()
 
40
playHapticField.setValue(False)
 
41
 
 
42
saveHapticToFileField = SFBool()
 
43
saveHapticToFileField.setValue(False)
 
44
 
 
45
resetTimePlaybackField = SFBool()
 
46
resetTimePlaybackField.setValue(False)
 
47
 
 
48
saveExpertToFileField = SFBool()
 
49
saveExpertToFileField.setValue(False) 
 
50
 
 
51
saveStatisticsToFileField = SFBool()
 
52
saveStatisticsToFileField.setValue(False) 
 
53
 
 
54
highlightTypeField = SFString()
 
55
highlightTypeField.setValue("highlightTypeNormal") 
 
56
 
 
57
hardnessSetEnabledField = SFBool()
 
58
hardnessSetEnabledField.setValue(False)
 
59
 
 
60
segmentField = SFInt32()
 
61
segmentField.setValue(64)
 
62
 
 
63
setButton = SFBool()
 
64
setButton.setValue(False)
 
65
 
 
66
segmentHardnessField = SFFloat()
 
67
 
 
68
posvec3fField = SFVec3f()
 
69
 
 
70
hrate = SFTime()
 
71
 
 
72
f_test = SFFloat()
 
73
 
 
74
 
 
75
#Default values
 
76
posvec3f = Vec3f()
 
77
tempPos = []
 
78
done = False
 
79
readFile = False
 
80
test = 0
 
81
test3 = 0
 
82
 
 
83
hardness64 = 1.9
 
84
hardness128 = 1.05
 
85
hardness192 = 0.03
 
86
hardness255 = 0.02
 
87
 
 
88
 
 
89
 
 
90
 
 
91
 
 
92