StereoHelper is a class to handle stereo vision using OpenGL's quad buffer.
More...
#include <StereoHelper.h>
StereoHelper is a class to handle stereo vision using OpenGL's quad buffer.
Definition at line 97 of file StereoHelper.h.
◆ EyeType
Enum defining eyes.
Enumerator |
---|
LEFT_EYE | |
RIGHT_EYE | |
MONO | |
Definition at line 105 of file StereoHelper.h.
◆ StereoHelper()
gVirtualXRay::StereoHelper::StereoHelper |
( |
| ) |
|
◆ disable()
void gVirtualXRay::StereoHelper::disable |
( |
| ) |
|
◆ enable()
bool gVirtualXRay::StereoHelper::enable |
( |
| ) |
|
Enable the stereo if possible.
◆ getFar()
double gVirtualXRay::StereoHelper::getFar |
( |
| ) |
const |
|
inline |
Accessor on the far clipping plane.
- Returns
- the far clipping plane
Definition at line 139 of file StereoHelper.inl.
◆ getFieldOfViewY()
double gVirtualXRay::StereoHelper::getFieldOfViewY |
( |
| ) |
const |
|
inline |
Accessor on the field of view along the y-axis.
return the field of view along the y-axis
Definition at line 105 of file StereoHelper.inl.
◆ getIntraocularDistance()
double gVirtualXRay::StereoHelper::getIntraocularDistance |
( |
| ) |
const |
|
inline |
Accessor on the intraocular distance.
- Returns
- the intraocular distance
Definition at line 79 of file StereoHelper.inl.
◆ getLeftEyeProjectionMatrix()
const MATRIX4 & gVirtualXRay::StereoHelper::getLeftEyeProjectionMatrix |
( |
| ) |
|
|
inline |
Accessor on the projection matrix corresponding to the left eye.
- Returns
- the projection matrix
Definition at line 156 of file StereoHelper.inl.
◆ getNear()
double gVirtualXRay::StereoHelper::getNear |
( |
| ) |
const |
|
inline |
Accessor on the near clipping plane.
- Returns
- the near clipping plane
Definition at line 122 of file StereoHelper.inl.
◆ getRightEyeProjectionMatrix()
const MATRIX4 & gVirtualXRay::StereoHelper::getRightEyeProjectionMatrix |
( |
| ) |
|
|
inline |
Accessor on the projection matrix corresponding to the right eye.
- Returns
- the projection matrix
Definition at line 169 of file StereoHelper.inl.
◆ isActive()
bool gVirtualXRay::StereoHelper::isActive |
( |
| ) |
const |
|
inline |
◆ setFar()
void gVirtualXRay::StereoHelper::setFar |
( |
double |
aPlane | ) |
|
|
inline |
Set the far clipping plane.
- Parameters
-
aPlane | the far clipping plane |
Definition at line 130 of file StereoHelper.inl.
◆ setFieldOfViewY()
void gVirtualXRay::StereoHelper::setFieldOfViewY |
( |
double |
aFOVY | ) |
|
|
inline |
Set the field of view along the y-axis.
- Parameters
-
aFOVY | the field of view along the y-axis |
Definition at line 96 of file StereoHelper.inl.
◆ setIntraocularDistance()
void gVirtualXRay::StereoHelper::setIntraocularDistance |
( |
double |
aDistance | ) |
|
|
inline |
Set the intraocular distance.
- Parameters
-
aDistance | the intraocular distance |
Definition at line 70 of file StereoHelper.inl.
◆ setNear()
void gVirtualXRay::StereoHelper::setNear |
( |
double |
aPlane | ) |
|
|
inline |
Set the near clipping plane.
- Parameters
-
aPlane | the near clipping plane |
Definition at line 113 of file StereoHelper.inl.
◆ setScreenAspectRatio()
void gVirtualXRay::StereoHelper::setScreenAspectRatio |
( |
double |
aRatio | ) |
|
|
inline |
Set the screen aspect ratio.
- Parameters
-
aRatio | the screen aspect ratio |
Definition at line 87 of file StereoHelper.inl.
◆ setScreenProjectionPlane()
void gVirtualXRay::StereoHelper::setScreenProjectionPlane |
( |
double |
aPlane | ) |
|
|
inline |
Set the screen projection plane.
- Parameters
-
aPlane | the screen projection plane |
Definition at line 147 of file StereoHelper.inl.
◆ swapEye()
void gVirtualXRay::StereoHelper::swapEye |
( |
| ) |
|
◆ update()
void gVirtualXRay::StereoHelper::update |
( |
| ) |
|
|
protected |
Compute the projection matrices.
◆ m_current_eye
EyeType gVirtualXRay::StereoHelper::m_current_eye |
|
protected |
◆ m_far
double gVirtualXRay::StereoHelper::m_far |
|
protected |
◆ m_fovy
double gVirtualXRay::StereoHelper::m_fovy |
|
protected |
◆ m_intraocular_distance
double gVirtualXRay::StereoHelper::m_intraocular_distance |
|
protected |
◆ m_left_eye_frustum
double gVirtualXRay::StereoHelper::m_left_eye_frustum[4] |
|
protected |
Frustum of the left eye m_left_eye_frustum[0] corresponds to the left clipping plane m_left_eye_frustum[1] corresponds to the right clipping plane m_left_eye_frustum[2] corresponds to the bottom clipping plane m_left_eye_frustum[3] corresponds to the top clipping plane
Definition at line 274 of file StereoHelper.h.
◆ m_left_eye_projection_matrix
MATRIX4 gVirtualXRay::StereoHelper::m_left_eye_projection_matrix |
|
protected |
The projection matrix corresponding to the left eye.
Definition at line 262 of file StereoHelper.h.
◆ m_matrices_are_up_to_date
bool gVirtualXRay::StereoHelper::m_matrices_are_up_to_date |
|
protected |
Flag set to true when the matrices are up-to-date.
Definition at line 306 of file StereoHelper.h.
◆ m_near
double gVirtualXRay::StereoHelper::m_near |
|
protected |
◆ m_right_eye_frustum
double gVirtualXRay::StereoHelper::m_right_eye_frustum[4] |
|
protected |
Frustum of the right eye m_right_eye_frustum[0] corresponds to the left clipping plane m_right_eye_frustum[1] corresponds to the right clipping plane m_right_eye_frustum[2] corresponds to the bottom clipping plane m_right_eye_frustum[3] corresponds to the top clipping plane
Definition at line 282 of file StereoHelper.h.
◆ m_right_eye_projection_matrix
MATRIX4 gVirtualXRay::StereoHelper::m_right_eye_projection_matrix |
|
protected |
The projection matrix corresponding to the right eye.
Definition at line 266 of file StereoHelper.h.
◆ m_screen_aspect_ratio
double gVirtualXRay::StereoHelper::m_screen_aspect_ratio |
|
protected |
◆ m_screen_projection_plane
double gVirtualXRay::StereoHelper::m_screen_projection_plane |
|
protected |
◆ m_stereo_currently_in_use
bool gVirtualXRay::StereoHelper::m_stereo_currently_in_use |
|
protected |
Flag set to true when the stereo is in used.
Definition at line 314 of file StereoHelper.h.
The documentation for this class was generated from the following files:
- /home/fpvidal/PROGRAMMING/RELEASE/gVirtualXray-2.0.10-Source/gvxr/include/gVirtualXRay/StereoHelper.h
- /home/fpvidal/PROGRAMMING/RELEASE/gVirtualXray-2.0.10-Source/gvxr/include/gVirtualXRay/StereoHelper.inl