arsa
2.7
|
Defines the view frustum. That's the space visible by the camera. More...
#include <SViewFrustum.h>
Public Types | |
enum | VFPLANES { VF_FAR_PLANE = 0, VF_NEAR_PLANE, VF_LEFT_PLANE, VF_RIGHT_PLANE, VF_BOTTOM_PLANE, VF_TOP_PLANE, VF_PLANE_COUNT } |
Public Member Functions | |
SViewFrustum () | |
Default Constructor. More... | |
SViewFrustum (const SViewFrustum &other) | |
Copy Constructor. More... | |
SViewFrustum (const core::matrix4 &mat, bool zClipFromZero) | |
This constructor creates a view frustum based on a projection and/or view matrix. More... | |
void | setFrom (const core::matrix4 &mat, bool zClipFromZero) |
This constructor creates a view frustum based on a projection and/or view matrix. More... | |
void | transform (const core::matrix4 &mat) |
transforms the frustum by the matrix More... | |
core::vector3df | getFarLeftUp () const |
returns the point which is on the far left upper corner inside the the view frustum. More... | |
core::vector3df | getFarLeftDown () const |
returns the point which is on the far left bottom corner inside the the view frustum. More... | |
core::vector3df | getFarRightUp () const |
returns the point which is on the far right top corner inside the the view frustum. More... | |
core::vector3df | getFarRightDown () const |
returns the point which is on the far right bottom corner inside the the view frustum. More... | |
core::vector3df | getNearLeftUp () const |
returns the point which is on the near left upper corner inside the the view frustum. More... | |
core::vector3df | getNearLeftDown () const |
returns the point which is on the near left bottom corner inside the the view frustum. More... | |
core::vector3df | getNearRightUp () const |
returns the point which is on the near right top corner inside the the view frustum. More... | |
core::vector3df | getNearRightDown () const |
returns the point which is on the near right bottom corner inside the the view frustum. More... | |
const core::aabbox3d< f32 > & | getBoundingBox () const |
returns a bounding box enclosing the whole view frustum More... | |
void | recalculateBoundingBox () |
recalculates the bounding box and sphere based on the planes More... | |
float | getBoundingRadius () const |
get the bounding sphere's radius (of an optimized sphere, not the AABB's) More... | |
core::vector3df | getBoundingCenter () const |
get the bounding sphere's radius (of an optimized sphere, not the AABB's) More... | |
void | setFarNearDistance (float distance) |
the cam should tell the frustum the distance between far and near More... | |
core::matrix4 & | getTransform (video::E_TRANSFORMATION_STATE state) |
get the given state's matrix based on frustum E_TRANSFORMATION_STATE More... | |
const core::matrix4 & | getTransform (video::E_TRANSFORMATION_STATE state) const |
get the given state's matrix based on frustum E_TRANSFORMATION_STATE More... | |
bool | clipLine (core::line3d< f32 > &line) const |
clips a line to the view frustum. More... | |
Public Attributes | |
core::vector3df | cameraPosition |
the position of the camera More... | |
core::plane3d< f32 > | planes [VF_PLANE_COUNT] |
all planes enclosing the view frustum. More... | |
core::aabbox3d< f32 > | boundingBox |
bounding box around the view frustum More... | |
Defines the view frustum. That's the space visible by the camera.
The view frustum is enclosed by 6 planes. These six planes share eight points. A bounding box around these eight points is also stored in this structure.
Definition at line 25 of file SViewFrustum.h.
Definition at line 27 of file SViewFrustum.h.
|
inline |
|
inline |
Copy Constructor.
Copy constructor ViewFrustum
Definition at line 147 of file SViewFrustum.h.
|
inline |
This constructor creates a view frustum based on a projection and/or view matrix.
Definition at line 164 of file SViewFrustum.h.
|
inline |
clips a line to the view frustum.
Clips a line to the frustum.
Definition at line 397 of file SViewFrustum.h.
|
inline |
returns a bounding box enclosing the whole view frustum
Definition at line 260 of file SViewFrustum.h.
|
inline |
get the bounding sphere's radius (of an optimized sphere, not the AABB's)
Definition at line 285 of file SViewFrustum.h.
|
inline |
get the bounding sphere's radius (of an optimized sphere, not the AABB's)
Definition at line 280 of file SViewFrustum.h.
|
inline |
returns the point which is on the far left bottom corner inside the the view frustum.
Definition at line 190 of file SViewFrustum.h.
|
inline |
returns the point which is on the far left upper corner inside the the view frustum.
Definition at line 180 of file SViewFrustum.h.
|
inline |
returns the point which is on the far right bottom corner inside the the view frustum.
Definition at line 210 of file SViewFrustum.h.
|
inline |
returns the point which is on the far right top corner inside the the view frustum.
Definition at line 200 of file SViewFrustum.h.
|
inline |
returns the point which is on the near left bottom corner inside the the view frustum.
Definition at line 230 of file SViewFrustum.h.
|
inline |
returns the point which is on the near left upper corner inside the the view frustum.
Definition at line 220 of file SViewFrustum.h.
|
inline |
returns the point which is on the near right bottom corner inside the the view frustum.
Definition at line 250 of file SViewFrustum.h.
|
inline |
returns the point which is on the near right top corner inside the the view frustum.
Definition at line 240 of file SViewFrustum.h.
|
inline |
get the given state's matrix based on frustum E_TRANSFORMATION_STATE
View Frustum depends on Projection & View Matrix
Definition at line 363 of file SViewFrustum.h.
|
inline |
get the given state's matrix based on frustum E_TRANSFORMATION_STATE
View Frustum depends on Projection & View Matrix
Definition at line 381 of file SViewFrustum.h.
|
inline |
recalculates the bounding box and sphere based on the planes
Definition at line 265 of file SViewFrustum.h.
|
inline |
the cam should tell the frustum the distance between far and near
Definition at line 290 of file SViewFrustum.h.
|
inline |
This constructor creates a view frustum based on a projection and/or view matrix.
This constructor creates a view frustum based on a projection and/or view matrix.
Definition at line 297 of file SViewFrustum.h.
|
inline |
transforms the frustum by the matrix
mat | Matrix by which the view frustum is transformed. |
Definition at line 170 of file SViewFrustum.h.
core::aabbox3d<f32> irr::scene::SViewFrustum::boundingBox |
bounding box around the view frustum
Definition at line 121 of file SViewFrustum.h.
core::vector3df irr::scene::SViewFrustum::cameraPosition |
the position of the camera
Definition at line 115 of file SViewFrustum.h.
core::plane3d<f32> irr::scene::SViewFrustum::planes[VF_PLANE_COUNT] |
all planes enclosing the view frustum.
Definition at line 118 of file SViewFrustum.h.