PixelLightAPI
.
|
Visibility determination scene query class. More...
#include <SQCull.h>
Classes | |
struct | Statistics |
Several statistics of the culling process. More... | |
Public Types | |
enum | EMode { Frustum = 0, StopAndWait = 1, Coherent = 2, Previous = 3 } |
Cull mode. More... | |
Public Member Functions | |
pl_class (PLS_RTTI_EXPORT, SQCull,"PLScene", PLScene::SceneQuery,"Visibility determination scene query class") pl_constructor_0(DefaultConstructor | |
PLS_API | SQCull () |
Default constructor. | |
virtual PLS_API | ~SQCull () |
Destructor. | |
PLS_API EMode | GetMode () const |
Returns the used cull mode. | |
PLS_API void | SetMode (EMode nMode=Coherent) |
Sets the used cull mode. | |
PLS_API PLCore::uint32 | GetVisibilityThreshold () const |
Returns visibility threshold. | |
PLS_API void | SetVisibilityThreshold (PLCore::uint32 nThreshold=1) |
Sets visible pixels threshold for visibility classification. | |
PLS_API const Statistics & | GetStatistics () const |
Returns the statistics. | |
PLS_API SceneContainer * | GetCameraContainer () const |
Returns the container the camera is in. | |
PLS_API bool | SetCameraContainer (SceneContainer *pCameraContainer) |
Sets the container the camera is in. | |
PLS_API const PLMath::Vector3 & | GetCameraPosition () const |
Returns the used camera position. | |
PLS_API void | SetCameraPosition (const PLMath::Vector3 &vPos) |
Sets the used camera position. | |
PLS_API const PLMath::PlaneSet & | GetViewFrustum () const |
Returns the used view frustum. | |
PLS_API void | SetViewFrustum (const PLMath::PlaneSet &cFrustum) |
Sets the used view frustum. | |
PLS_API const PLMath::Matrix4x4 & | GetProjectionMatrix () const |
PLS_API void | SetProjectionMatrix (const PLMath::Matrix4x4 &mProjection) |
PLS_API const PLMath::Matrix4x4 & | GetViewMatrix () const |
PLS_API void | SetViewMatrix (const PLMath::Matrix4x4 &mView) |
PLS_API const PLMath::Matrix4x4 & | GetViewProjectionMatrix () const |
PLS_API void | SetViewProjectionMatrix (const PLMath::Matrix4x4 &mViewProjection) |
PLS_API const VisContainer * | GetVisRootContainer () const |
Returns the visibility root container. | |
PLS_API const VisContainer & | GetVisContainer () const |
Returns the visibility container this scene query belongs to. | |
virtual PLS_API bool | PerformQuery () override |
Performs the query. | |
Public Attributes | |
Default | constructor |
Visibility determination scene query class.
Cull mode.
PLS_API PLScene::SQCull::SQCull | ( | ) |
Default constructor.
virtual PLS_API PLScene::SQCull::~SQCull | ( | ) | [virtual] |
Destructor.
PLScene::SQCull::pl_class | ( | PLS_RTTI_EXPORT | , |
SQCull | , | ||
"PLScene" | , | ||
PLScene::SceneQuery | , | ||
"Visibility determination scene query class" | |||
) |
PLS_API EMode PLScene::SQCull::GetMode | ( | ) | const |
Returns the used cull mode.
PLS_API void PLScene::SQCull::SetMode | ( | EMode | nMode = Coherent | ) |
Sets the used cull mode.
[in] | nMode | Used cull mode |
PLS_API PLCore::uint32 PLScene::SQCull::GetVisibilityThreshold | ( | ) | const |
Returns visibility threshold.
PLS_API void PLScene::SQCull::SetVisibilityThreshold | ( | PLCore::uint32 | nThreshold = 1 | ) |
Sets visible pixels threshold for visibility classification.
[in] | nThreshold | Threshold |
PLS_API const Statistics& PLScene::SQCull::GetStatistics | ( | ) | const |
Returns the statistics.
PLS_API SceneContainer* PLScene::SQCull::GetCameraContainer | ( | ) | const |
Returns the container the camera is in.
PLS_API bool PLScene::SQCull::SetCameraContainer | ( | SceneContainer * | pCameraContainer | ) |
Sets the container the camera is in.
[in] | pCameraContainer | Container the camera is in, can be a null pointer |
PLS_API const PLMath::Vector3& PLScene::SQCull::GetCameraPosition | ( | ) | const |
Returns the used camera position.
PLS_API void PLScene::SQCull::SetCameraPosition | ( | const PLMath::Vector3 & | vPos | ) |
Sets the used camera position.
[in] | vPos | The used camera position (container space) |
PLS_API const PLMath::PlaneSet& PLScene::SQCull::GetViewFrustum | ( | ) | const |
Returns the used view frustum.
PLS_API void PLScene::SQCull::SetViewFrustum | ( | const PLMath::PlaneSet & | cFrustum | ) |
Sets the used view frustum.
[in] | cFrustum | The used view frustum (container space) |
PLS_API const PLMath::Matrix4x4& PLScene::SQCull::GetProjectionMatrix | ( | ) | const |
PLS_API void PLScene::SQCull::SetProjectionMatrix | ( | const PLMath::Matrix4x4 & | mProjection | ) |
PLS_API const PLMath::Matrix4x4& PLScene::SQCull::GetViewMatrix | ( | ) | const |
PLS_API void PLScene::SQCull::SetViewMatrix | ( | const PLMath::Matrix4x4 & | mView | ) |
PLS_API const PLMath::Matrix4x4& PLScene::SQCull::GetViewProjectionMatrix | ( | ) | const |
PLS_API void PLScene::SQCull::SetViewProjectionMatrix | ( | const PLMath::Matrix4x4 & | mViewProjection | ) |
PLS_API const VisContainer* PLScene::SQCull::GetVisRootContainer | ( | ) | const |
Returns the visibility root container.
PLS_API const VisContainer& PLScene::SQCull::GetVisContainer | ( | ) | const |
Returns the visibility container this scene query belongs to.
virtual PLS_API bool PLScene::SQCull::PerformQuery | ( | ) | [override, virtual] |
Performs the query.
Implements PLScene::SceneQuery.
Default PLScene::SQCull::constructor |
|