UnityMol  0.9.6-875
UnityMol viewer / In developement
GuidedNavigationParameters.cs
Go to the documentation of this file.
1 using UnityEngine;
2 
7 
8 namespace GuidedNav{
9  public class GNParameters{
10 
14  public static string SymmetryOriginX = "34.3444";
15  public static string SymmetryOriginY = "4.29016";
16  public static string SymmetryOriginZ = "69.0832";
17 
21  public static string SymmetryDirectionX = "0.446105";
22  public static string SymmetryDirectionY = "0.00135695";
23  public static string SymmetryDirectionZ = "-0.894949";
24 
28  public static string TargetX = "16.32";
29  public static string TargetY = "-1.42";
30  public static string TargetZ = "-18.17";
31 
33  public static string CameraDistance = "20.0";
34 
36  public static bool showOriginAxe = true;
37 
39  public static bool originThere = true;
40 
41  /*
42  * Variables for constrained navigation
43  */
44 
46  public static float nav_speed = 2.0f;
47 
49  public static bool navigationUp = false;
50 
52  public static bool navigationDown = false;
53 
55  public static bool guidedzoom = false;
56 
60  public static bool reoriented = false;
61 
64  public static bool panoramic = false;
65 
68  public static bool reset_panoramic;
69 
73  public static bool isabove = false;
74 
78  public static bool isunder = false;
79 
80  /*
81  * "jump" navigation parameters
82  */
83 
84  // Allows to jump from chain to chain aroung the molecule.
85  public static float rotation_done = 0.0f;
86 
89  public static bool monomer_jump = false;
90 
94  public static bool next_right = false;
95 
99  public static bool next_left = false;
100 
101  /*
102  * Variables for Spreading/Narrowing
103  */
104 
107  public static BallUpdateHB[] hballs;
108 
111  public static BallUpdateSphere[] sballs;
112 
114  public static Vector3 spreadA, spreadA1, spreadA2;
115  public static Vector3 spreadB, spreadB1, spreadB2;
116  public static Vector3 spreadC, spreadC1, spreadC2;
117  public static Vector3 spreadD, spreadD1, spreadD2;
118  public static Vector3 spreadE, spreadE1, spreadE2;
119 
121  public static double comp_spread = 0;
122 
123  public static AtomTree atomtree;
124  public static string rep = "";
125 
127  public static float[] closeatom;
128 
130  public static Vector3 poscloseatom;
131 
133  public static float distclose;
134 
136  public static bool near_spread = false;
137 
139  public static bool onlyTMD = false;
140 
141  /*
142  * Variables for best point of view transition (PyMol like transition)
143  */
144 
146  public static GameObject ghost_target;
147 
149  public static GameObject ghost_camera;
150 
152  public static bool ghost_target_instantiate = false;
153 
155  public static Vector3 optim_target;
156 
158  public static Vector3[] optim_cam_position;
159 
162  public static Vector3 optim_user_cam_pos;
163 
166  public static Vector3 velocity = Vector3.zero;
167 
168  // Straight transition
169  public static float transitionDuration = 2.5f;
170 
172  public static GameObject mainCamera;
173 
176  public static int reslim = 192;
177  }
178 }
static bool navigationUp
Are we moving down. Boolean set to true on key press.
static Vector3 poscloseatom
3D coordinates of the closest atom to the camera.
static Vector3 optim_user_cam_pos
3D coordinates of the selected best camera position.
static bool ghost_target_instantiate
Have the game objects for camera target and position been instantiated.
static Vector3 spreadA
Spreading vectors for each chain (up to 5). Computed by GuidedNavigationManager::computeSpreadingVect...
static Vector3 velocity
Camera 3D speed during its repositioning.
static bool guidedzoom
Should we zoom? True when the camera is not at the right distance (maxCamera.desiredDistance != maxCa...
static bool navigationDown
Are we moving down? Boolean set to true on key press.
static bool originThere
Did we instantiate the origin and symmetry axis? True by default.
static bool isunder
Allows to dive into the channel when zoom in the structure from below.
static bool onlyTMD
If true, triggers the computation of the center of mass of only the TransMembrane Domain (TMD)...
static Vector3 optim_target
3D coordinates of the target.
static bool panoramic
Activates/Deactivate the panoramic view (immersive camera positioning).
static GameObject ghost_target
Reference to the sphere primitive representing the camera target.
static bool next_right
Jump to the next monomer on the right.
static string CameraDistance
Distance of the camera to the target.
static string TargetX
3D coordinates of the camera target
static bool monomer_jump
Enter or exit jump navigation Triggered by key press (see GuidedNavigationManager::UpdateManager) ...
static BallUpdateHB[] hballs
List of all hyperballs mono behavior scripts Filled when spreading, narrowing or resetting chains pos...
static bool next_left
Jump to the next monomer on the left.
static GameObject mainCamera
Reference to the scene camera.
The GNParameters class regroups settings used for Guided Navigation and GLIC spreading.
static bool reset_panoramic
When true, triggers the transition from panoramic view to normal view.
static Vector3[] optim_cam_position
3D coordinates of the 4 best camera positions.
static float distclose
Distance between the camera and the closest atom.
static bool near_spread
Activate/Deactivate the spreading relative the closeness of the camera to the molecule.
static bool reoriented
When true, triggers the camera repositioning inside the molecule bounding box.
static GameObject ghost_camera
Reference to the sphere primitive representing the camera ending position.
static double comp_spread
Current distance of spreading.
static float[] closeatom
3D coordinates of the closest atom to the camera.
static BallUpdateSphere[] sballs
List of all spheres mono behavior scripts.
static bool isabove
Allows to dive into the channel when zoom in the structure from above.
static string SymmetryDirectionX
Symmetry axis direction.
static bool showOriginAxe
Display the origin and symmetry axis (true) or not (false)
static int reslim
Number of the first residue outside of the GLIC transmembrane domain.
static string SymmetryOriginX
3D coordinates of the symmetry axis origin