64 #ifndef __StereoHelper_h 65 #define __StereoHelper_h 75 #ifndef GVXR_MATRIX4X4_H 105 typedef enum EyeTypeTag
188 void setFar(
double aPlane);
325 #endif // __StereoHelper_h void setScreenProjectionPlane(double aPlane)
Set the screen projection plane.
double m_screen_aspect_ratio
Screen aspect ratio.
void setNear(double aPlane)
Set the near clipping plane.
bool m_stereo_currently_in_use
Flag set to true when the stereo is in used.
void setFieldOfViewY(double aFOVY)
Set the field of view along the y-axis.
double getFar() const
Accessor on the far clipping plane.
bool enable()
Enable the stereo if possible.
bool isActive() const
Accessor on the stereo flag.
StereoHelper is a class to handle stereo vision using OpenGL's quad buffer.
double m_right_eye_frustum[4]
EyeType
Enum defining eyes.
bool m_matrices_are_up_to_date
Flag set to true when the matrices are up-to-date.
Template class to handle a 4x4 matrixs.
double getFieldOfViewY() const
Accessor on the field of view along the y-axis.
EyeType m_current_eye
Current eye type.
Class to handle stereo vision using OpenGL's quad buffer. The code is relying on // http://www...
double m_left_eye_frustum[4]
const MATRIX4 & getLeftEyeProjectionMatrix()
Accessor on the projection matrix corresponding to the left eye.
double getNear() const
Accessor on the near clipping plane.
double m_screen_projection_plane
Screen projection plane.
void update()
Compute the projection matrices.
void setIntraocularDistance(double aDistance)
Set the intraocular distance.
MATRIX4 m_left_eye_projection_matrix
The projection matrix corresponding to the left eye.
double m_intraocular_distance
Intraocular distance.
void disable()
Disable the stereo.
void setFar(double aPlane)
Set the far clipping plane.
MATRIX4 m_right_eye_projection_matrix
The projection matrix corresponding to the right eye.
double m_near
Near clipping plane.
double m_far
Far clipping plane.
Matrix4x4 is a template class to handle a 4 by 4 matrix.
double m_fovy
Field of view along the y-axis.
const MATRIX4 & getRightEyeProjectionMatrix()
Accessor on the projection matrix corresponding to the right eye.
void setScreenAspectRatio(double aRatio)
Set the screen aspect ratio.
StereoHelper()
Default constructor.
double getIntraocularDistance() const
Accessor on the intraocular distance.