Graphviz 14.0.2~dev.20251008.0253
|
Go to the source code of this file.
Macros | |
#define | ARCBALL_C |
Functions | |
static void | setBounds (ArcBall_t *a, float NewWidth, float NewHeight) |
static Vector3fT | mapToSphere (ArcBall_t *a, const Point2fT *NewPt) |
ArcBall_t | init_arcBall (float NewWidth, float NewHeight) |
static void | click (ArcBall_t *a, const Point2fT *NewPt) |
static Quat4fT | drag (ArcBall_t *a, const Point2fT *NewPt) |
void | arcmouseClick (void) |
void | arcmouseDrag (void) |
Variables | |
static Matrix4fT | Transform |
static Matrix3fT | LastRot |
static Matrix3fT | ThisRot |
#define ARCBALL_C |
Copyright (c) 1999-2009 Tatewake.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
void arcmouseClick | ( | void | ) |
Definition at line 123 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().
void arcmouseDrag | ( | void | ) |
Definition at line 131 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().
Definition at line 92 of file arcball.c.
References mapToSphere(), and _ArcBall_t::StVec.
Referenced by arcmouseClick().
Definition at line 99 of file arcball.c.
References _ArcBall_t::EnVec, Epsilon, mapToSphere(), Quat4fT, _ArcBall_t::StVec, and Vector3fT.
Referenced by arcmouseDrag().
ArcBall_t init_arcBall | ( | float | NewWidth, |
float | NewHeight | ||
) |
Definition at line 82 of file arcball.c.
References LastRot, setBounds(), ThisRot, Transform, and _ArcBall_t::Transform.
Referenced by cb_reshape(), and configure_event().
|
static |
Definition at line 30 of file arcball.c.
References _ArcBall_t::AdjustHeight, and _ArcBall_t::AdjustWidth.
Referenced by init_arcBall().
|
static |
Definition at line 71 of file arcball.c.
Referenced by init_arcBall().
|
static |
Definition at line 76 of file arcball.c.
Referenced by init_arcBall().
|
static |
Definition at line 65 of file arcball.c.
Referenced by init_arcBall().