PixelLightAPI
.
|
Class receiving the scene picking result and offering further functionality. More...
#include <PickingResult.h>
Public Member Functions | |
PL_API | PickingResult () |
Constructor. | |
PL_API | ~PickingResult () |
Destructor. | |
PL_API PLScene::SceneNode * | GetSceneNode () const |
Returns the picked scene node. | |
PL_API PLCore::uint32 | GetGeometry () const |
Returns the picked geometry. | |
PL_API PLCore::uint32 | GetTriangle () const |
Returns the picked triangle. | |
PL_API const PLMath::Vector3 & | GetPoint () const |
Returns the picked point in node space. | |
PL_API PLScene::SceneContainer * | GetSceneContainer () const |
Returns the scene container the picking line and distance is in. | |
PL_API const PLMath::Vector3 & | GetLineStartPos () const |
Returns the picking line start position. | |
PL_API float | GetNearestSquaredDistance () const |
Returns the nearest squared distance to the line start position. | |
PL_API bool | GetTextureCoordinate (PLMath::Vector2 &vTexCoord, PLCore::uint32 nTexCoordChannel=0) const |
Returns the currently picked texture coordinate (can also be outside the 0..1 interval) | |
PL_API bool | GetWrappedTextureCoordinate (PLMath::Vector2 &vTexCoord, PLCore::uint32 nTexCoordChannel=0) const |
Returns the currently picked wrapped texture coordinate (always between 0..1) |
Class receiving the scene picking result and offering further functionality.
PL_API PLEngine::PickingResult::PickingResult | ( | ) |
Constructor.
PL_API PLEngine::PickingResult::~PickingResult | ( | ) |
Destructor.
PL_API PLScene::SceneNode* PLEngine::PickingResult::GetSceneNode | ( | ) | const |
Returns the picked scene node.
PL_API PLCore::uint32 PLEngine::PickingResult::GetGeometry | ( | ) | const |
Returns the picked geometry.
PL_API PLCore::uint32 PLEngine::PickingResult::GetTriangle | ( | ) | const |
Returns the picked triangle.
PL_API const PLMath::Vector3& PLEngine::PickingResult::GetPoint | ( | ) | const |
Returns the picked point in node space.
PL_API PLScene::SceneContainer* PLEngine::PickingResult::GetSceneContainer | ( | ) | const |
Returns the scene container the picking line and distance is in.
PL_API const PLMath::Vector3& PLEngine::PickingResult::GetLineStartPos | ( | ) | const |
Returns the picking line start position.
PL_API float PLEngine::PickingResult::GetNearestSquaredDistance | ( | ) | const |
Returns the nearest squared distance to the line start position.
PL_API bool PLEngine::PickingResult::GetTextureCoordinate | ( | PLMath::Vector2 & | vTexCoord, |
PLCore::uint32 | nTexCoordChannel = 0 |
||
) | const |
Returns the currently picked texture coordinate (can also be outside the 0..1 interval)
[out] | vTexCoord | Receives the picked texture coordinate if all went fine |
[in] | nTexCoordChannel | Texture coordinate channel to use |
PL_API bool PLEngine::PickingResult::GetWrappedTextureCoordinate | ( | PLMath::Vector2 & | vTexCoord, |
PLCore::uint32 | nTexCoordChannel = 0 |
||
) | const |
Returns the currently picked wrapped texture coordinate (always between 0..1)
[out] | vTexCoord | Receives the picked wrapped texture coordinate if all went fine |
[in] | nTexCoordChannel | Texture coordinate channel to use |
|