Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
RayPicker.hpp File Reference

Ray-sphere picking and camera HUD projection utilities for 3D molecular viewports. More...

#include "render3d/Camera3D.hpp"
#include "render3d/Scene3D.hpp"
#include <array>
#include <cstddef>
#include <optional>
#include <string>
Include dependency graph for RayPicker.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  correlation::render3d::CameraHudMetrics
 Projected 2D axis endpoints and calibrated scale bar metrics derived from Camera3D. More...

Namespaces

namespace  correlation
namespace  correlation::render3d

Functions

std::optional< std::size_t > correlation::render3d::pickAtom (const Camera3D &camera, const Scene3D &scene, float norm_x, float norm_y) noexcept
 Picks the closest visible atom sphere intersected by a viewport click ray.
CameraHudMetrics correlation::render3d::computeCameraHudMetrics (const Camera3D &camera, float viewport_height_px)
 Computes projected axis triad vectors and a nice-number Angstrom scale bar.

Detailed Description

Ray-sphere picking and camera HUD projection utilities for 3D molecular viewports.

License
SPDX-License-Identifier: AGPL-3.0-only