camera.h
179 float horizontalFieldOfView() const { return 2.0 * atan ( tan(fieldOfView()/2.0) * aspectRatio() ); }
185 float aspectRatio() const { return static_cast<float>(screenWidth_)/static_cast<float>(screenHeight_); }
246 void setHorizontalFieldOfView(float hfov) { setFieldOfView( 2.0 * atan (tan(hfov / 2.0) / aspectRatio()) ); }
266 void setZNearCoefficient(float coef) { zNearCoef_ = coef; projectionMatrixIsUpToDate_ = false; }
268 void setZClippingCoefficient(float coef) { zClippingCoef_ = coef; projectionMatrixIsUpToDate_ = false; }
402 void getProjectedCoordinatesOf(const float src[3], float res[3], const Frame* frame=NULL) const;
403 void getUnprojectedCoordinatesOf(const float src[3], float res[3], const Frame* frame=NULL) const;
434 float physicalDistanceToScreen() const { return physicalScreenWidth() / 2.0f / tan(horizontalFieldOfView() / 2.0); }
459 void setPhysicalDistanceToScreen(float distance) { Q_UNUSED(distance); qWarning("setPhysicalDistanceToScreen is deprecated, use setPhysicalScreenWidth instead"); }
A keyFrame Catmull-Rom Frame interpolator.
Definition: keyFrameInterpolator.h:126
Definition: camera.h:29
The ManipulatedCameraFrame class represents a ManipulatedFrame with Camera specific mouse bindings...
Definition: manipulatedCameraFrame.h:47
Vec sceneCenter() const
Returns the position of the scene center, defined in the world coordinate system. ...
Definition: camera.h:297
float focusDistance() const
Returns the focus distance used by stereo display, expressed in OpenGL units.
Definition: camera.h:452
int screenWidth() const
Returns the width (in pixels) of the Camera screen.
Definition: camera.h:190
void setZClippingCoefficient(float coef)
Sets the zClippingCoefficient() value.
Definition: camera.h:268
FARSA_UTIL_TEMPLATE const T max(const T &t1, const U &t2)
ManipulatedCameraFrame * frame() const
Returns the ManipulatedCameraFrame attached to the Camera.
Definition: camera.h:334
void setFocusDistance(float distance)
Sets the focusDistance(), in OpenGL scene units.
Definition: camera.h:466
int screenHeight() const
Returns the height (in pixels) of the Camera screen.
Definition: camera.h:195
float fieldOfView() const
Returns the vertical field of view of the Camera (in radians).
Definition: camera.h:170
void setHorizontalFieldOfView(float hfov)
Sets the horizontalFieldOfView() of the Camera (in radians).
Definition: camera.h:246
float aspectRatio() const
Returns the Camera aspect ratio defined by screenWidth() / screenHeight().
Definition: camera.h:185
float physicalDistanceToScreen() const
Returns the physical distance between the user's eyes and the screen (in meters). ...
Definition: camera.h:434
void setPhysicalScreenWidth(float width)
Sets the physical screen (monitor or projected wall) width (in meters).
Definition: camera.h:463
float zClippingCoefficient() const
Returns the coefficient used to position the near and far clipping planes.
Definition: camera.h:229
The Quaternion class represents 3D rotations and orientations.
Definition: quaternion.h:66
float physicalScreenWidth() const
Returns the physical screen width, in meters.
Definition: camera.h:440
float IODistance() const
Returns the user's inter-ocular distance (in meters).
Definition: camera.h:425
FARSA_UTIL_TEMPLATE const T min(const T &t1, const U &t2)
The Frame class represents a coordinate system, defined by a position and an orientation.
Definition: frame.h:121
float sceneRadius() const
Returns the radius of the scene observed by the Camera.
Definition: camera.h:284
float horizontalFieldOfView() const
Returns the horizontal field of view of the Camera (in radians).
Definition: camera.h:179
float zNearCoefficient() const
Returns the coefficient which is used to set zNear() when the Camera is inside the sphere defined by ...
Definition: camera.h:210