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

Public Member Functions

 BadgeSetPicker (BadgeSetSystem *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
 
- Public Member Functions inherited from Cogs::Core::IRayPickable
 IRayPickable (Order order=Order::Default)
 
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

BadgeSetSystemsystem = nullptr
 
- Public Attributes inherited from Cogs::Core::IRayPickable
Order order = Order::Default
 

Additional Inherited Members

- Public Types inherited from Cogs::Core::IRayPickable
enum struct  Order : int32_t { Default = 0 , Last = std::numeric_limits<int32_t>::max() }
 Specifies run-order of picking extensions when that is needed. More...
 

Detailed Description

Definition at line 10 of file BadgeSetPicker.h.

Constructor & Destructor Documentation

◆ BadgeSetPicker()

Cogs::Core::BadgeSetPicker::BadgeSetPicker ( BadgeSetSystem system)
inline

Definition at line 12 of file BadgeSetPicker.h.

Member Function Documentation

◆ pickCamera()

bool Cogs::Core::BadgeSetPicker::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

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 129 of file BadgeSetPicker.cpp.

References Cogs::Core::Closest, Cogs::Core::ViewContext::dpiService, Cogs::ComponentModel::Component::getComponent(), Cogs::Core::RayPicking::RayPickFilter::isUnwantedType(), Cogs::Core::RenderComponent::isVisibleInLayer(), Cogs::Core::RayPicking::RayPickFilter::layerMask, Cogs::Core::SceneComponent::pickable, Cogs::Core::ComponentSystem< ComponentType >::pool, Cogs::Core::ReturnChildEntity, and Cogs::Core::SceneComponent::visible.

Member Data Documentation

◆ system

BadgeSetSystem* Cogs::Core::BadgeSetPicker::system = nullptr

Definition at line 26 of file BadgeSetPicker.h.


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