PixelLightAPI
.
|
Class offering scene picking (some also call it 'trace line') functionality. More...
#include <Picking.h>
Public Member Functions | |
PL_API | Picking () |
Constructor. | |
virtual PL_API | ~Picking () |
Destructor. | |
PL_API bool | PerformPicking (PickingResult &cPickingResult, PLScene::SceneContainer &cContainer, const PLMath::Vector3 &vLineStartPos, const PLMath::Vector3 &vLineEndPos, PLRenderer::Cull::Enum nCull=PLRenderer::Cull::CCW) |
Performs picking by using the given line start and end positions. | |
PL_API bool | PerformPicking (PickingResult &cPickingResult, PLScene::SceneNode &cSceneNode, const PLMath::Vector3 &vLineStartPos, const PLMath::Vector3 &vLineEndPos, PLCore::Array< PLCore::uint32 > *plstGeometries=nullptr, PLRenderer::Cull::Enum nCull=PLRenderer::Cull::CCW) |
Performs picking using the mesh of the given scene node by using the given line start and end positions. | |
Protected Member Functions | |
virtual PL_API bool | OnPickingCandidate (PLScene::SceneNode &cSceneNode) |
Function that is called when a picking candidate has been found ("picking filter function") |
Class offering scene picking (some also call it 'trace line') functionality.
PL_API PLEngine::Picking::Picking | ( | ) |
Constructor.
virtual PL_API PLEngine::Picking::~Picking | ( | ) | [virtual] |
Destructor.
PL_API bool PLEngine::Picking::PerformPicking | ( | PickingResult & | cPickingResult, |
PLScene::SceneContainer & | cContainer, | ||
const PLMath::Vector3 & | vLineStartPos, | ||
const PLMath::Vector3 & | vLineEndPos, | ||
PLRenderer::Cull::Enum | nCull = PLRenderer::Cull::CCW |
||
) |
Performs picking by using the given line start and end positions.
[out] | cPickingResult | Receives the picking result if all went fine |
[in] | cContainer | Scene container we're performing the picking in |
[in] | vLineStartPos | Picking line start position within the given scene container |
[in] | vLineEndPos | Picking line end position within the given scene container |
[in] | nCull | Cull mode (see "PLRenderer::Cull") |
PL_API bool PLEngine::Picking::PerformPicking | ( | PickingResult & | cPickingResult, |
PLScene::SceneNode & | cSceneNode, | ||
const PLMath::Vector3 & | vLineStartPos, | ||
const PLMath::Vector3 & | vLineEndPos, | ||
PLCore::Array< PLCore::uint32 > * | plstGeometries = nullptr , |
||
PLRenderer::Cull::Enum | nCull = PLRenderer::Cull::CCW |
||
) |
Performs picking using the mesh of the given scene node by using the given line start and end positions.
[out] | cPickingResult | Receives the picking result if all went fine |
[in] | cSceneNode | Scene node we're performing the mesh picking in |
[in] | vLineStartPos | Picking line start position within the given scene node |
[in] | vLineEndPos | Picking line end position within the given scene node |
[in] | plstGeometries | List of mesh geometry indices to use, if a null pointer all mesh geometries are used |
[in] | nCull | Cull mode (see "PLRenderer::Cull") |
virtual PL_API bool PLEngine::Picking::OnPickingCandidate | ( | PLScene::SceneNode & | cSceneNode | ) | [protected, virtual] |
Function that is called when a picking candidate has been found ("picking filter function")
[in] | cSceneNode | Scene node candidate |
|