-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.qml
84 lines (64 loc) · 2.47 KB
/
Settings.qml
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
import QtQuick 2.0
Item {
property bool show_back_button:true
property int blink_stress:0
property int blink_displacement:0
property bool show_stress: false
property bool show_displacement:false
property bool show_stress_button: true
property int stress_type:1 //1=Axial, 2=Bedning, 3=Shear
property bool show_AR_button: true
property bool show_displacement_button:true
property bool show_help_button:false
property bool beam_is_selectable: true
property bool joint_is_selectable: true
property bool load_is_selectable: true
property bool load_is_draggable: true
property bool show_beam: true
property bool show_beam_spring: true
property bool show_beam_sphere: false
property bool show_joint: true
property bool show_beam_axial_loads: true
property bool show_load: true
property bool show_spatial_references: true
property bool show_info_box:true
property bool show_filter_bar: true
property bool show_legend: true
property bool enable_sounds:true
property int exagerate_displacement_factor:1
property string visible_loader:"DEFAULT"; //DEFAULT,CUSTOM
property bool focus_on_joint:false
/*Tools*/
property bool enable_scaffold: false;
property var beam_dragging_ownership:0;
/*Focus View*/
property vector3d focus_view_currentForce: Qt.vector3d(0,0,0)
property vector3d focus_view_maxForce: Qt.vector3d(0.0001,0,0)
property real focus_view_equilibrium_distance: focus_view_maxForce.length()>0.001 ? focus_view_currentForce.length()/focus_view_maxForce.length() : 0;
property real focus_view_scaleFactor_focus:30/Math.max(Math.abs(focus_view_maxForce.x),Math.abs(focus_view_maxForce.y),Math.abs(focus_view_maxForce.z))
function restore_defaults(){
show_stress= false
show_displacement=false
show_stress_button= true
show_displacement_button=true
show_info_box=true
beam_is_selectable= true
joint_is_selectable= true
load_is_selectable= true
load_is_draggable=true
show_beam= true
show_beam_spring= true
show_beam_sphere= false
show_joint= true
show_beam_axial_loads= true
show_load= true
show_spatial_references= true
show_filter_bar= true
show_legend= true
enable_scaffold= false;
show_AR_button= true
visible_loader="DEFAULT";
focus_on_joint=false;
show_help_button=false
}
}