Lagrange
SelectionContext Struct Reference

Global component with information about current viewport selection. More...

#include <lagrange/ui/components/SelectionContext.h>

Public Attributes

entt::id_type element_type
 
Entity active_viewport = NullEntity
 In which viewport is the selection happening Can be null or invalid if no viewport is hovered.
 
bool active = false
 Is selection active (are the selection keys down?)
 
bool marquee_active = false
 Is marquee (rectangle) selection active.
 
Eigen::Vector2f screen_begin
 Beginning of selection rectangle (coordinates can be greater than end)
 
Eigen::Vector2f screen_end
 End of selection rectangle (coordinates can be lower than begin)
 
Eigen::Vector2f screen_position
 Current selection position.
 
Eigen::Vector2i viewport_min
 Beginning of selection rectangle (always lower coordinate than end)
 
Eigen::Vector2i viewport_max
 End of selection rectangle (always greater coordinate than begin)
 
Eigen::Vector2i viewport_position
 Current selection position.
 
Eigen::Vector3f ray_origin
 Current mouse position induced ray origin.
 
Eigen::Vector3f ray_dir
 Current mouse position induced ray direction.
 
Frustum frustum
 Frustum, set if marquee is active.
 
Frustum neighbourhood_frustum
 Frustum in a radius.
 
float neighbourhood_frustum_radius = 10.0f
 
Frustum onepx_frustum
 Frustum in one pixel diameter.
 
Camera camera
 Copy of current camera.
 
SelectionBehavior behavior = SelectionBehavior::SET
 Selection behavior.
 
bool select_backfacing = false
 Select backfacing objects/elements.
 

Detailed Description

Global component with information about current viewport selection.


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