Cogs.Core
|
Public Member Functions | |
MarkerPointSetPicker (MarkerPointSetSystem *system) | |
bool | pickCamera (Context *context, const CameraComponent &camera, const glm::vec2 &queryClip, float, float rayRadius, PickingFlags pickingFlags, PicksReturned returnFlag, const RayPicking::RayPickFilter &filter, std::vector< RayPicking::RayPickHit > &hits) override |
bool | pickRay (Context *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 | |
MarkerPointSetSystem * | system = nullptr |
Definition at line 10 of file MarkerPointSetPicker.h.
|
inline |
Definition at line 12 of file MarkerPointSetPicker.h.
|
overridevirtual |
The returned hit contains the coords of the picked marker point, not of the ray-marker point intersection coords. Also, the texture coordinates contain in both x and y the marker point index in the component->positions array.
Implements Cogs::Core::IRayPickable.
Definition at line 200 of file MarkerPointSetPicker.cpp.
References Cogs::Core::AllSorted, Cogs::Core::Closest, Cogs::Core::ViewContext::dpiService, Cogs::Core::FixedScreenSizeDisc, Cogs::ComponentModel::Component::getComponent(), Cogs::Core::RayPicking::RayPickFilter::isUnwantedType(), Cogs::Core::RenderComponent::isVisibleInLayer(), Cogs::Core::RayPicking::RayPickFilter::layerMask, Cogs::Core::ObjectSpaceFloorDisc, Cogs::Core::SceneComponent::pickable, Cogs::Core::ComponentSystem< ComponentType >::pool, Cogs::Core::ReturnChildEntity, Cogs::Core::MarkerPointSetComponent::shape, Cogs::Core::ViewAlignedDisc, and Cogs::Core::SceneComponent::visible.
|
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 288 of file MarkerPointSetPicker.cpp.
References Cogs::Core::AllSorted, Cogs::Core::Closest, Cogs::Core::FixedScreenSizeDisc, Cogs::ComponentModel::Component::getComponent(), Cogs::Core::RayPicking::RayPickFilter::isUnwantedType(), Cogs::Core::RenderComponent::isVisibleInLayer(), Cogs::Core::RayPicking::RayPickFilter::layerMask, Cogs::Core::ObjectSpaceFloorDisc, Cogs::Core::SceneComponent::pickable, Cogs::Core::ReturnChildEntity, Cogs::Core::MarkerPointSetComponent::shape, Cogs::Core::ViewAlignedDisc, and Cogs::Core::SceneComponent::visible.
MarkerPointSetSystem* Cogs::Core::MarkerPointSetPicker::system = nullptr |
Definition at line 36 of file MarkerPointSetPicker.h.