Cogs.Core
|
Public Member Functions | |
PotreePicker (PotreeSystem *poSystem) | |
bool | pickCamera (Context *context, const CameraComponent &camera, const glm::vec2 &normPosition, float, float radius, PickingFlags pickingFlags, PicksReturned returnFlag, const RayPicking::RayPickFilter &filter, std::vector< RayPicking::RayPickHit > &hits) override |
Do a ray pick from a normalized screen space position in the camera direction and return all hits. | |
bool | pickRay (Context *, const glm::vec3 &startPos, const glm::quat &rot, float rayLength, float radius, PickingFlags pickingFlags, PicksReturned returnFlag, const RayPicking::RayPickFilter &filter, std::vector< RayPicking::RayPickHit > &hits) override |
Do a ray pick from a position and orientation in world space and return all hits. | |
virtual COGSCORE_DLL_API bool | pickCamera (Context *context, const CameraComponent &camera, const glm::vec2 &queryClip, float rayLength, float rayRadius, PickingFlags pickingFlags, PicksReturned returnFlag, const RayPicking::RayPickFilter &filter, std::vector< RayPicking::RayPickHit > &hits)=0 |
Do a ray pick from a normalized screen space position in the camera direction and return all hits. | |
virtual COGSCORE_DLL_API bool | pickRay (Context *, const glm::vec3 &, const glm::quat &, float, float, PickingFlags, PicksReturned, const RayPicking::RayPickFilter &, std::vector< RayPicking::RayPickHit > &) |
Do a ray pick from a position and orientation in world space and return all hits. | |
Public Attributes | |
PotreeSystem * | poSystem = nullptr |
Definition at line 413 of file PotreeSystem.h.
|
inline |
Definition at line 415 of file PotreeSystem.h.
|
overridevirtual |
Do a ray pick from a normalized screen space position in the camera direction and return all hits.
queryClip | Picking query position in clip coords [-1,1]x[-1,1]. |
rayLength | Max length of picking ray, measured in world units. |
rayRadius | Radius of picking picking ray, measured in pixels. |
Implements Cogs::Core::IRayPickable.
Definition at line 434 of file PotreePicker.cpp.
References Cogs::Core::AllSorted, Cogs::Core::Closest, Cogs::Core::Disc, Cogs::Core::DistanceAndDensityScaled, Cogs::Core::DistanceScaled, Cogs::Core::FixedSize, Cogs::ComponentModel::Component::getComponent(), Cogs::Core::RenderComponent::isPickable(), Cogs::Core::RayPicking::RayPickFilter::isUnwantedType(), Cogs::Core::RenderComponent::isVisibleInLayer(), Cogs::Core::RayPicking::RayPickFilter::layerMask, Cogs::Core::Paraboloid, Cogs::Core::PotreeComponent::pointShape, Cogs::Core::PotreeComponent::pointSizing, Cogs::Core::ComponentSystem< ComponentType >::pool, Cogs::Core::ReturnChildEntity, Cogs::Core::Sphere, Cogs::Core::Square, and Cogs::Core::PotreeComponent::supportPicking.
|
overridevirtual |
Do a ray pick from a position and orientation in world space and return all hits.
Reimplemented from Cogs::Core::IRayPickable.
Definition at line 565 of file PotreePicker.cpp.
References Cogs::Core::AllSorted, Cogs::Core::Closest, Cogs::Core::Disc, Cogs::Core::DistanceAndDensityScaled, Cogs::Core::DistanceScaled, Cogs::Core::FixedSize, Cogs::ComponentModel::Component::getComponent(), Cogs::Core::RenderComponent::isPickable(), Cogs::Core::RayPicking::RayPickFilter::isUnwantedType(), Cogs::Core::RenderComponent::isVisibleInLayer(), Cogs::Core::RayPicking::RayPickFilter::layerMask, Cogs::Core::Paraboloid, Cogs::Core::PotreeComponent::pointShape, Cogs::Core::PotreeComponent::pointSizing, Cogs::Core::CameraData::rawProjectionMatrix, Cogs::Core::ReturnChildEntity, Cogs::Core::Sphere, Cogs::Core::Square, and Cogs::Core::PotreeComponent::supportPicking.
PotreeSystem* Cogs::Core::PotreePicker::poSystem = nullptr |
Definition at line 437 of file PotreeSystem.h.