Go to the documentation of this file.
23 const float kThirdPersonCameraDist = 7.0f;
26 const float kThirdPersonFollowCameraDist = 2.0f;
29 const float kTopDownCameraDist = 5.0f;
32 const float kZoomSpeed = 10.0f;
35 const float kMoveSpeed = 10.0f;
38 const float kRotationSpeed = 2.0f;
41 const float kCamViewMinDist = .1f;
42 const float kCamViewMaxDist = 100.f;
47 const float kHighestFov = 120.0f;
48 const float kHighFov = 85.0f;
49 const float kLowFov = 65.0f;
50 const float kLowestFov = 40.0f;
56 cam_cur_target_rot_(1,0,0,0),
57 start_touch_dist_(0.0
f),
67 float y0,
float x1,
float y1) {
95 if (touch_count == 2) {
98 float abs_x =
x0 -
x1;
99 float abs_y =
y0 -
y1;
110 float abs_x =
x0 -
x1;
111 float abs_y =
y0 -
y1;
121 kCamViewMinDist, kCamViewMaxDist);
154 normalized_x = normalized_x - 0.5f;
155 normalized_y = 0.5f - normalized_y;
159 glm::vec3(normalized_x * screen_width, normalized_y * screen_height,
182 switch (camera_index) {
GLM_FUNC_DECL genType tan(genType const &angle)
void SetOrthoMode(bool enabled)
glm::vec3 ApplyTransform(const glm::mat4 &mat, const glm::vec3 &vec)
void SetCameraType(CameraType camera_index)
highp_quat quat
Quaternion of default single-precision floating-point numbers.
void SetOrthoScale(float scale)
glm::quat cam_cur_target_rot_
Segment GetSegmentFromTouch(float normalized_x, float normalized_y, float touch_range)
GLM_FUNC_DECL genType normalize(genType const &x)
void SetFieldOfView(const float fov)
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &x)
glm::vec2 cam_start_angle_
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate offset
glm::vec2 touch0_start_position_
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
CEPHES_EXTERN_EXPORT double y1(double x)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE FixedSegmentReturnType< N >::Type segment(Index start, Index n=N)
void StartCameraToCurrentTransform()
GLM_FUNC_DECL detail::tquat< T, P > rotation(detail::tvec3< T, P > const &orig, detail::tvec3< T, P > const &dest)
CEPHES_EXTERN_EXPORT double y0(double x)
void SetOrthoCropFactor(float value)
float Clamp(float value, float min, float max)
void SetAnchorPosition(const glm::vec3 &pos, const glm::quat &rotation)
void SetNearFarClipPlanes(const float near, const float far)
Transform * cam_parent_transform_
void OnTouchEvent(int touch_count, TouchEvent event, float x0, float y0, float x1, float y1)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:10