UnityMol  0.9.6-875
UnityMol viewer / In developement
maxCamera Class Reference
+ Inheritance diagram for maxCamera:
+ Collaboration diagram for maxCamera:

Public Member Functions

void Init ()
 
void upxDeg ()
 
void upyDeg ()
 
void downxDeg ()
 
void downyDeg ()
 
void downzDeg ()
 
void upzDeg ()
 
void ToCenter ()
 

Public Attributes

bool automove = false
 
float xSpeed = 400.0f
 
float ySpeed = 400.0f
 
float panSpeed = 2.0f
 
float zoomDampening = 20.0f
 
float rotationFactor = 50.0f
 
float strength = 0.5f
 
Vector3 originalCamPosition
 
bool centerChanged = false
 
Vector3 newposition
 
Vector3 cameraLocalPositionSave
 
GameObject newUIToggle
 
bool cameraTranslation = false
 
float joypadDeadzone = 0.01f
 
float distance = 20.0f
 

Static Public Attributes

static bool cameraStop = false
 
static int zoomRate = 200
 
static bool guiControl = false
 
static GameObject LocCamera
 
static Transform target
 
static Vector3 targetOffset
 
static float currentDistance
 
static float desiredDistance
 
static float weight_cam = 0.0f
 

Private Member Functions

void Awake ()
 
void OnEnable ()
 
void Update ()
 
void LateUpdate ()
 
void joypadOperate ()
 
void keyboardOperate ()
 

Static Private Member Functions

static float ClampAngle (float angle, float min, float max)
 

Private Attributes

float xDeg = 0.0f
 
float yDeg = 0.0f
 
float zDeg = 0.0f
 
Quaternion currentRotation
 
Quaternion desiredRotation
 
Quaternion rotation
 
Vector3 position
 
GameObject LoadBox
 
Camera mainCamera
 
Molecule3D Molecule3DComp
 

Detailed Description

Definition at line 86 of file maxCamera.cs.

Member Function Documentation

void maxCamera.Awake ( )
private

Definition at line 138 of file maxCamera.cs.

References Init().

+ Here is the call graph for this function:

static float maxCamera.ClampAngle ( float  angle,
float  min,
float  max 
)
staticprivate

Definition at line 418 of file maxCamera.cs.

void maxCamera.downxDeg ( )

Definition at line 195 of file maxCamera.cs.

Referenced by keyboardOperate().

+ Here is the caller graph for this function:

void maxCamera.downyDeg ( )

Definition at line 201 of file maxCamera.cs.

Referenced by keyboardOperate().

+ Here is the caller graph for this function:

void maxCamera.downzDeg ( )

Definition at line 207 of file maxCamera.cs.

void maxCamera.Init ( )

Definition at line 148 of file maxCamera.cs.

References distance.

Referenced by Awake(), OnEnable(), and ToCenter().

+ Here is the caller graph for this function:

void maxCamera.joypadOperate ( )
private

Definition at line 441 of file maxCamera.cs.

References joypadDeadzone, UI.UIData.switchmode, and Molecule3D.ToParticle().

Referenced by LateUpdate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void maxCamera.keyboardOperate ( )
private

Manage the camera rotation with keyboard inputs.

Definition at line 496 of file maxCamera.cs.

References downxDeg(), downyDeg(), UI.UIData.guided, upxDeg(), and upyDeg().

Referenced by LateUpdate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void maxCamera.OnEnable ( )
private

Definition at line 143 of file maxCamera.cs.

References Init().

+ Here is the call graph for this function:

void maxCamera.ToCenter ( )

Definition at line 427 of file maxCamera.cs.

References Molecule.Model.MoleculeModel.cameraLocation, and Init().

Referenced by UI.LoadTypeGUI.MainFun(), and Molecule3D.SetCenter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void maxCamera.upxDeg ( )

Definition at line 183 of file maxCamera.cs.

Referenced by keyboardOperate().

+ Here is the caller graph for this function:

void maxCamera.upyDeg ( )

Definition at line 189 of file maxCamera.cs.

Referenced by keyboardOperate().

+ Here is the caller graph for this function:

void maxCamera.upzDeg ( )

Definition at line 213 of file maxCamera.cs.

Member Data Documentation

bool maxCamera.automove = false

Definition at line 89 of file maxCamera.cs.

Referenced by UI.LoadTypeGUI.MainFun(), and Update().

Vector3 maxCamera.cameraLocalPositionSave

Definition at line 104 of file maxCamera.cs.

bool maxCamera.cameraTranslation = false

Definition at line 107 of file maxCamera.cs.

bool maxCamera.centerChanged = false

Definition at line 101 of file maxCamera.cs.

float maxCamera.currentDistance
static
Quaternion maxCamera.currentRotation
private

Definition at line 113 of file maxCamera.cs.

float maxCamera.desiredDistance
static

Definition at line 129 of file maxCamera.cs.

Referenced by GuidedNavigationManager.LateUpdateManager().

Quaternion maxCamera.desiredRotation
private

Definition at line 114 of file maxCamera.cs.

float maxCamera.distance = 20.0f

Definition at line 131 of file maxCamera.cs.

Referenced by Init().

bool maxCamera.guiControl = false
static

Definition at line 117 of file maxCamera.cs.

float maxCamera.joypadDeadzone = 0.01f

Definition at line 108 of file maxCamera.cs.

Referenced by joypadOperate().

GameObject maxCamera.LoadBox
private

Definition at line 118 of file maxCamera.cs.

GameObject maxCamera.LocCamera
static

Definition at line 120 of file maxCamera.cs.

Camera maxCamera.mainCamera
private

Definition at line 121 of file maxCamera.cs.

Molecule3D maxCamera.Molecule3DComp
private

Definition at line 123 of file maxCamera.cs.

Vector3 maxCamera.newposition

Definition at line 103 of file maxCamera.cs.

GameObject maxCamera.newUIToggle

Definition at line 105 of file maxCamera.cs.

Vector3 maxCamera.originalCamPosition

Definition at line 100 of file maxCamera.cs.

float maxCamera.panSpeed = 2.0f

Definition at line 95 of file maxCamera.cs.

Referenced by LateUpdate().

Vector3 maxCamera.position
private

Definition at line 116 of file maxCamera.cs.

Referenced by LateUpdate().

Quaternion maxCamera.rotation
private

Definition at line 115 of file maxCamera.cs.

Referenced by LateUpdate().

float maxCamera.rotationFactor = 50.0f

Definition at line 97 of file maxCamera.cs.

float maxCamera.strength = 0.5f

Definition at line 98 of file maxCamera.cs.

Vector3 maxCamera.targetOffset
static

Definition at line 126 of file maxCamera.cs.

Referenced by LateUpdate().

float maxCamera.weight_cam = 0.0f
static
float maxCamera.xDeg = 0.0f
private

Definition at line 109 of file maxCamera.cs.

float maxCamera.xSpeed = 400.0f

Definition at line 91 of file maxCamera.cs.

float maxCamera.yDeg = 0.0f
private

Definition at line 110 of file maxCamera.cs.

float maxCamera.ySpeed = 400.0f

Definition at line 92 of file maxCamera.cs.

float maxCamera.zDeg = 0.0f
private

Definition at line 111 of file maxCamera.cs.

float maxCamera.zoomDampening = 20.0f

Definition at line 96 of file maxCamera.cs.

int maxCamera.zoomRate = 200
static

Definition at line 94 of file maxCamera.cs.

Referenced by LateUpdate(), and GuidedNavigationManager.LateUpdateManager().


The documentation for this class was generated from the following file: