|
QVR 4.1.0
A library to build Virtual Reality applications
|
Frustum class. More...
#include <frustum.hpp>
Public Member Functions | |
| QVRFrustum () | |
| Constructs an invalid frustum, where all values are zero. | |
| QVRFrustum (float l, float r, float b, float t, float n, float f) | |
| Constructs a view frustum. | |
| QVRFrustum (const float *lrbtnf) | |
| Constructs a view frustum. | |
| void | getClippingPlanes (float *l, float *r, float *b, float *t, float *n, float *f) const |
| Returns the clipping plane values l, r, b, t, n, f. | |
| void | getClippingPlanes (float *lrbtnf) const |
| Returns the clipping plane values l, r, b, t, n, f in an array lrbtnf. | |
| QMatrix4x4 | toMatrix4x4 () const |
| Creates a 4x4 matrix from this frustum. | |
| void | adjustNearPlane (float n) |
| Adjusts the near plane while preserving the frustum shape. | |
| float | leftPlane () const |
| Returns the left clipping plane. | |
| float | rightPlane () const |
| Returns the right clipping plane. | |
| float | bottomPlane () const |
| Returns the bottom clipping plane. | |
| float | topPlane () const |
| Returns the top clipping plane. | |
| float | nearPlane () const |
| Returns the near clipping plane. | |
| float | farPlane () const |
| Returns the far clipping plane. | |
| void | setLeftPlane (float l) |
| Sets the left clipping plane. | |
| void | setRightPlane (float r) |
| Sets the right clipping plane. | |
| void | setBottomPlane (float b) |
| Sets the bottom clipping plane. | |
| void | setTopPlane (float t) |
| Sets the top clipping plane. | |
| void | setNearPlane (float n) |
| Sets the near clipping plane. | |
| void | setFarPlane (float f) |
| Sets the far clipping plane. | |
Friends | |
| QDataStream & | operator<< (QDataStream &ds, const QVRFrustum &f) |
| Writes the frustum f to the stream ds. | |
| QDataStream & | operator>> (QDataStream &ds, QVRFrustum &f) |
| Reads the frustum f from the stream ds. | |
Frustum class.
This class represents a view frustum.
| QVRFrustum::QVRFrustum | ( | ) |
Constructs an invalid frustum, where all values are zero.
| QVRFrustum::QVRFrustum | ( | float | l, |
| float | r, | ||
| float | b, | ||
| float | t, | ||
| float | n, | ||
| float | f ) |
Constructs a view frustum.
| l | Left clipping plane |
| r | Right clipping plane |
| b | Bottom clipping plane |
| t | Top clipping plane |
| n | Near clipping plane |
| f | Far clipping plane |
| QVRFrustum::QVRFrustum | ( | const float * | lrbtnf | ) |
Constructs a view frustum.
| lrbtnf | Left, right, bottom, top, near, and far clipping plane |
| void QVRFrustum::adjustNearPlane | ( | float | n | ) |
Adjusts the near plane while preserving the frustum shape.
| n | The new near clipping plane |
|
inline |
Returns the bottom clipping plane.
|
inline |
Returns the far clipping plane.
|
inline |
Returns the clipping plane values l, r, b, t, n, f.
|
inline |
Returns the clipping plane values l, r, b, t, n, f in an array lrbtnf.
|
inline |
Returns the left clipping plane.
|
inline |
Returns the near clipping plane.
|
inline |
Returns the right clipping plane.
|
inline |
Sets the bottom clipping plane.
| b | The bottom clipping plane |
|
inline |
Sets the far clipping plane.
| f | The far clipping plane |
|
inline |
Sets the left clipping plane.
| l | The left clipping plane |
|
inline |
Sets the near clipping plane.
| n | The near clipping plane |
|
inline |
Sets the right clipping plane.
| r | The right clipping plane |
|
inline |
Sets the top clipping plane.
| t | The top clipping plane |
| QMatrix4x4 QVRFrustum::toMatrix4x4 | ( | ) | const |
Creates a 4x4 matrix from this frustum.
|
inline |
Returns the top clipping plane.
|
friend |
Writes the frustum f to the stream ds.
|
friend |
Reads the frustum f from the stream ds.