atomes 1.1.16
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
arcball.c File Reference

Mouse trackball rotation functions. More...

#include "global.h"
#include "glview.h"
+ Include dependency graph for arcball.c:

Go to the source code of this file.

Functions

void rotate_quat (project *this_proj, vec4_t q, int status, int axis)
 rotate using quaternion
 
vec3_t get_arc_ball_vector (glwin *view, int x, int y)
 
void arc_ball_rotation (glwin *view, int x, int y)
 Perform arcball rotation.
 

Variables

vec3_t arc_ball_init
 
vec3_t arc_ball_new
 
vec4_t old_rotation_quaternion
 

Detailed Description

Mouse trackball rotation functions.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file arcball.c.

Function Documentation

◆ arc_ball_rotation()

void arc_ball_rotation ( glwin * view,
int x,
int y )

Perform arcball rotation.

Parameters
viewthe target glwin
xx position
yy position

Definition at line 73 of file arcball.c.

◆ get_arc_ball_vector()

vec3_t get_arc_ball_vector ( glwin * view,
int x,
int y )

Definition at line 46 of file arcball.c.

◆ rotate_quat()

void rotate_quat ( project * this_proj,
vec4_t q,
int status,
int axis )
extern

rotate using quaternion

Parameters
this_projthe target project
qrotation quaternion
statusselection status, 0 = non selected atom(s), 1 = selected atom(s), 2 = all atom(s)
axis0 = model, 1 = eye

Definition at line 269 of file atom_move.c.

Variable Documentation

◆ arc_ball_init

vec3_t arc_ball_init

Definition at line 42 of file arcball.c.

◆ arc_ball_new

vec3_t arc_ball_new

Definition at line 43 of file arcball.c.

◆ old_rotation_quaternion

vec4_t old_rotation_quaternion

Definition at line 44 of file arcball.c.