#include <trackball.h>
◆ Mode
@ Around
Definition: trackball.h:19
@ Local
Definition: trackball.h:19
◆ Trackball()
Camera * mpCamera
Definition: trackball.h:35
◆ mapToSphere()
bool Trackball::mapToSphere |
( |
const Eigen::Vector2i & |
p2, |
|
|
Eigen::Vector3f & |
v3 |
|
) |
| |
|
protected |
42 double sinx2siny2 = sinx * sinx + siny * siny;
46 v3.z() = sinx2siny2 < 1.0 ?
sqrt(1.0 - sinx2siny2) : 0.0;
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
uint vpHeight(void) const
Definition: camera.h:49
uint vpWidth(void) const
Definition: camera.h:48
Scalar * y
Definition: level1_cplx_impl.h:128
#define M_PI
Definition: main.h:121
list x
Definition: plotDoE.py:28
References M_PI, sin(), sqrt(), plotDoE::x, and y.
◆ setCamera()
void Trackball::setCamera |
( |
Camera * |
pCam | ) |
|
|
inline |
◆ start()
Mode mMode
Definition: trackball.h:37
bool mLastPointOk
Definition: trackball.h:38
int * m
Definition: level2_cplx_impl.h:294
References m, mLastPointOk, and mMode.
◆ track()
void Trackball::track |
( |
const Eigen::Vector2i & |
newPoint2D | ) |
|
21 Vector3f axis =
mLastPoint3D.cross(newPoint3D).normalized();
AnnoyingScalar abs(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:135
AnnoyingScalar acos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:138
void localRotate(const Eigen::Quaternionf &q)
Definition: camera.cpp:135
void rotateAroundTarget(const Eigen::Quaternionf &q)
Definition: camera.cpp:118
bool mapToSphere(const Eigen::Vector2i &p2, Eigen::Vector3f &v3)
Definition: trackball.cpp:36
Eigen::Vector3f mLastPoint3D
Definition: trackball.h:36
Quaternion< float > Quaternionf
Definition: Eigen/Eigen/src/Geometry/Quaternion.h:384
AngleAxis< float > AngleAxisf
Definition: AngleAxis.h:165
double angle(const double &t)
Angular position as a function of time t.
Definition: jeffery_orbit.cc:98
References abs(), acos(), and Jeffery_Solution::angle().
◆ mLastPoint3D
Eigen::Vector3f Trackball::mLastPoint3D |
|
protected |
◆ mLastPointOk
bool Trackball::mLastPointOk |
|
protected |
◆ mMode
◆ mpCamera
The documentation for this class was generated from the following files: