Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
arcball.h File Reference
#include <assert.h>
Include dependency graph for arcball.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  Tuple2fT
 
union  Tuple3fT
 
union  Tuple4fT
 
union  Matrix3fT
 
union  Matrix4fT
 
struct  _ArcBall_t
 

Macros

#define Point2fT   Tuple2fT
 
#define Quat4fT   Tuple4fT
 
#define Vector2fT   Tuple2fT
 
#define Vector3fT   Tuple3fT
 
#define FuncSqrt   sqrtf
 
#define Epsilon   1.0e-5
 

Functions

void init_arcBall (ArcBall_t *a, float NewWidth, float NewHeight)
 
void arcmouseClick (void)
 
void arcmouseDrag (void)
 

Macro Definition Documentation

◆ Epsilon

#define Epsilon   1.0e-5

Definition at line 210 of file arcball.h.

◆ FuncSqrt

#define FuncSqrt   sqrtf

Definition at line 206 of file arcball.h.

◆ Point2fT

#define Point2fT   Tuple2fT

Definition at line 198 of file arcball.h.

◆ Quat4fT

#define Quat4fT   Tuple4fT

Definition at line 200 of file arcball.h.

◆ Vector2fT

#define Vector2fT   Tuple2fT

Definition at line 202 of file arcball.h.

◆ Vector3fT

#define Vector3fT   Tuple3fT

Definition at line 203 of file arcball.h.

Function Documentation

◆ arcmouseClick()

void arcmouseClick ( void  )

Definition at line 142 of file arcball.c.

References _ViewInfo::arcball, click(), _ArcBall_t::isDragging, _ArcBall_t::LastRot, _ArcBall_t::MousePt, _ArcBall_t::ThisRot, and view.

Referenced by apply_actions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ arcmouseDrag()

void arcmouseDrag ( void  )

Definition at line 150 of file arcball.c.

References _ViewInfo::arcball, drag(), _ArcBall_t::LastRot, _ArcBall_t::MousePt, Quat4fT, _ArcBall_t::ThisRot, _ArcBall_t::Transform, and view.

Referenced by apply_actions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_arcBall()

void init_arcBall ( ArcBall_t a,
float  NewWidth,
float  NewHeight 
)

Definition at line 88 of file arcball.c.

References _ArcBall_t::EnVec, _ArcBall_t::isClicked, _ArcBall_t::isDragging, _ArcBall_t::isRClicked, LastRot, _ArcBall_t::LastRot, setBounds(), _ArcBall_t::StVec, ThisRot, _ArcBall_t::ThisRot, Transform, and _ArcBall_t::Transform.

Referenced by cb_reshape(), and configure_event().

Here is the call graph for this function:
Here is the caller graph for this function: