Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Utility class to setup a pair of left/right cameras for stereo rendering. More...
#include <StereoCamera.hpp>
Public Member Functions | |
StereoCamera () | |
void | setConvergence (float convergence) |
Distance of the convergence plane from the camera. More... | |
float | convergence () const |
Distance of the convergence plane from the camera. More... | |
void | setEyeSeparation (float eye_separation) |
The distance between the center of the two eyes. More... | |
float | eyeSeparation () const |
The distance between the center of the two eyes. More... | |
void | setMonoCamera (Camera *camera) |
The Camera used to drive the left and right cameras. More... | |
Camera * | monoCamera () |
The Camera used to drive the left and right cameras. More... | |
const Camera * | monoCamera () const |
The Camera used to drive the left and right cameras. More... | |
void | setLeftCamera (Camera *camera) |
The Camera representing the left eye. More... | |
Camera * | leftCamera () |
The Camera representing the left eye. More... | |
const Camera * | leftCamera () const |
The Camera representing the left eye. More... | |
void | setRightCamera (Camera *camera) |
The Camera representing the right eye. More... | |
Camera * | rigthCamera () |
The Camera representing the right eye. More... | |
const Camera * | rightCamera () const |
The Camera representing the right eye. More... | |
void | updateLeftRightCameras () |
Updates the left and right cameras based on the mono camera view matrix and viewport. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Utility class to setup a pair of left/right cameras for stereo rendering.
Definition at line 47 of file StereoCamera.hpp.
|
inline |
Definition at line 52 of file StereoCamera.hpp.
|
inline |
Distance of the convergence plane from the camera.
The points laying on the convergence plane look the same from both the left and right camera.
Definition at line 63 of file StereoCamera.hpp.
Referenced by setConvergence().
|
inline |
The distance between the center of the two eyes.
Definition at line 68 of file StereoCamera.hpp.
|
inline |
The Camera representing the left eye.
Definition at line 83 of file StereoCamera.hpp.
|
inline |
The Camera representing the left eye.
Definition at line 85 of file StereoCamera.hpp.
|
inline |
The Camera used to drive the left and right cameras.
The mono camera viewport will be automatically used by the left and right cameras as well.
Definition at line 75 of file StereoCamera.hpp.
|
inline |
The Camera used to drive the left and right cameras.
The mono camera viewport will be automatically used by the left and right cameras as well.
Definition at line 78 of file StereoCamera.hpp.
|
inline |
The Camera representing the right eye.
Definition at line 92 of file StereoCamera.hpp.
|
inline |
The Camera representing the right eye.
Definition at line 90 of file StereoCamera.hpp.
|
inline |
Distance of the convergence plane from the camera.
The points laying on the convergence plane look the same from both the left and right camera.
Definition at line 60 of file StereoCamera.hpp.
References convergence().
|
inline |
The distance between the center of the two eyes.
Definition at line 66 of file StereoCamera.hpp.
|
inline |
The Camera representing the left eye.
Definition at line 81 of file StereoCamera.hpp.
|
inline |
The Camera used to drive the left and right cameras.
The mono camera viewport will be automatically used by the left and right cameras as well.
Definition at line 72 of file StereoCamera.hpp.
|
inline |
The Camera representing the right eye.
Definition at line 88 of file StereoCamera.hpp.
|
inline |
Updates the left and right cameras based on the mono camera view matrix and viewport.
Definition at line 95 of file StereoCamera.hpp.
References vl::fDEG_TO_RAD, vl::Matrix4< float >::getTranslation(), vl::radians(), and vl::tan().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:54.
© Copyright Michele Bosi. All rights reserved.