Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::Image360::RayPickExtension Struct Reference
Inheritance diagram for Cogs::Core::Image360::RayPickExtension:
Cogs::Core::IRayPickable

Public Member Functions

 RayPickExtension (Image360System *im360System)
 
bool pickCamera (Context *context, const CameraComponent &camera, const glm::vec2 &normPosition, float, float, 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.
 
- Public Member Functions inherited from Cogs::Core::IRayPickable
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

Image360Systemim360System = nullptr
 

Detailed Description

Definition at line 79 of file Image360System.h.

Constructor & Destructor Documentation

◆ RayPickExtension()

Cogs::Core::Image360::RayPickExtension::RayPickExtension ( Image360System im360System)

Definition at line 85 of file RayPickExtension.cpp.

Member Function Documentation

◆ pickCamera()

bool Cogs::Core::Image360::RayPickExtension::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 
)
overridevirtual

Do a ray pick from a normalized screen space position in the camera direction and return all hits.

Parameters
queryClipPicking query position in clip coords [-1,1]x[-1,1].
rayLengthMax length of picking ray, measured in world units.
rayRadiusRadius of picking picking ray, measured in pixels.

Implements Cogs::Core::IRayPickable.

Definition at line 87 of file RayPickExtension.cpp.

References Cogs::Core::AllSorted, Cogs::Core::Closest, Cogs::ComponentModel::Component::getComponent(), Cogs::Core::RenderComponent::isPickable(), Cogs::Core::RayPicking::RayPickFilter::isUnwantedType(), Cogs::Core::RenderComponent::isVisibleInLayer(), Cogs::Core::RayPicking::RayPickFilter::layerMask, Cogs::Core::ComponentSystem< ComponentType >::pool, Cogs::Core::CameraData::rawProjectionMatrix, Cogs::Core::ReturnChildEntity, and Cogs::Core::Context::variables.

Member Data Documentation

◆ im360System

Image360System* Cogs::Core::Image360::RayPickExtension::im360System = nullptr

Definition at line 93 of file Image360System.h.


The documentation for this struct was generated from the following files: