|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Coordinates 3D orbit interactions, scene streaming, and asynchronous off-thread rendering. More...
#include <Structure3DController.hpp>

Classes | |
| struct | CameraAnimState |
Public Member Functions | |
| Structure3DController (::AppWindow &window, const ProgramOptions &options) | |
| Constructs controller injected with UI window and options. | |
| ~Structure3DController () | |
| Destructor. Cleanly stops render worker thread. | |
| void | requestRender (bool immediate=false) |
| Schedules an asynchronous 3D frame redraw. | |
| void | handleViewportResized (float width, float height) |
| Updates viewport dimensions. | |
| void | handleRotate (float delta_x, float delta_y) |
| Handles mouse orbit rotation deltas. | |
| void | handlePan (float delta_x, float delta_y) |
| Handles mouse panning deltas. | |
| void | handleZoom (float delta) |
| Handles scroll wheel zoom delta. | |
| void | handleResetView () |
| Resets camera view to auto-fit system bounding box. | |
| void | handleSetCameraPreset (int preset_idx) |
| Sets camera orientation to a standard orthographic or isometric preset. | |
| void | handleToggleBonds (bool enabled) |
| Toggles rendering of covalent bonds. | |
| void | handleToggleWireframe (bool enabled) |
| Toggles rendering of periodic simulation unit cell wireframe. | |
| void | handleToggleInCell (bool enabled) |
| Toggles in-cell PBC coordinate wrapping and boundary-clipped bonds. | |
| void | handleSeekFrame (int frame_index) |
| Seeks to target frame in active trajectory. | |
| void | handleStepFrame (bool forward) |
| Steps forward or backward through trajectory frames. | |
| bool | isInCell () const noexcept |
| Queries whether in-cell PBC wrapping mode is active. | |
| bool | isIsometric () const noexcept |
| Queries whether isometric (orthographic) projection mode is active. | |
| void | handleToggleProjection (bool isometric) |
| Toggles between perspective and isometric (orthographic) 3D camera projection. | |
| void | handleToggleDepthCueing (bool enabled) |
| Toggles atmospheric depth cueing (fog) in Vulkan and CPU renderers. | |
| bool | isDepthCueingEnabled () const noexcept |
| Queries whether depth cueing is enabled. | |
| void | handleToggleSsao (bool enabled) |
| Toggles screen-space ambient occlusion (SSAO) contact darkening on Vulkan. | |
| bool | isSsaoEnabled () const noexcept |
| Queries whether SSAO is enabled. | |
| void | handleSetVisualSupercell (int rep_a, int rep_b, int rep_c) |
| Sets visual-only periodic supercell replication counts (1..3 per axis). | |
| void | handleResetVisualSupercell () |
| Resets visual supercell replication back to 1x1x1. | |
| std::array< int, 3 > | visualSupercellDims () const noexcept |
| Returns current visual supercell replication counts [nx, ny, nz]. | |
| bool | exportTrajectoryAnimation (const std::string &filepath, bool as_gif, int fps=15, int bg_mode=0, std::size_t *out_frames=nullptr) |
| Exports all frames of the loaded trajectory as a PNG-sequence ZIP or Animated GIF. | |
| void | handleFocusPickedAtom () |
| Smoothly centers and zooms the camera onto the currently picked atom. | |
| void | tickCameraAnimation () |
| Advances active smooth camera interpolation by one frame tick. | |
| void | handleToggleElementVisibility (const std::string &symbol) |
| Toggles hide/show visibility for all atoms of a chemical element symbol. | |
| void | handleShowAllElements () |
| Restores visibility of all chemical elements. | |
| bool | exportSnapshotPng (const std::string &filepath, int scale_idx=1, int bg_mode=0, std::uint32_t *out_width=nullptr, std::uint32_t *out_height=nullptr) |
| Exports a high-resolution offscreen 3D viewport snapshot to a PNG file. | |
| void | setCell (const core::Cell &cell) |
| Updates active atomic structure from loaded Cell. | |
| void | setTrajectory (std::shared_ptr< const core::Trajectory > trajectory) |
| Updates active trajectory dataset. | |
| void | setDistributionStore (std::shared_ptr< const analysis::PerFrameDistributionStore > store) |
| Sets or updates the trajectory-wide per-frame distribution store. | |
| std::shared_ptr< const analysis::PerFrameDistributionStore > | distributionStore () const noexcept |
| Returns active per-frame distribution store if available. | |
| void | handleSelectDistributionMetric (int metric_index) |
| Selects active distribution metric displayed in 3D viewer mini-chart HUD. | |
| void | handleToggleDistributionHUD (bool visible) |
| Toggles visibility of the distribution mini-chart HUD. | |
| bool | isDistributionHUDVisible () const noexcept |
| Queries whether the distribution mini-graph HUD is currently visible. | |
| void | setMetricPlotLimits (analysis::DistributionMetric metric, const render3d::MiniPlotConfig &config) |
| Sets custom plot configuration / limits for a distribution metric on the HUD. | |
| void | syncDistributionHUDToWindow () |
| Renders and synchronizes the active frame mini-chart with the Slint UI. | |
| void | set3DModeActive (bool active) |
| Sets whether the 3D Structure tab is currently active. | |
| void | updateBondCutoffScale (double cutoff_scale) |
| Updates the covalent radius scaling factor used for bond generation. | |
| bool | is3DModeActive () const noexcept |
| Queries whether the 3D Structure tab is active. | |
| const render3d::Camera3D & | camera () const noexcept |
| Gets reference to the active orbit camera. | |
| std::shared_ptr< const render3d::Scene3D > | scene () const noexcept |
| Gets shared pointer to the active render scene. | |
| void | setPhaseSearchEnabled (bool enabled) |
| Enables or disables phase search halo visualization. | |
| bool | isPhaseSearchEnabled () const noexcept |
| Queries whether phase search halo visualization is active. | |
| void | setPhaseDescriptor (PhaseDescriptor descriptor) |
| Sets the active Steinhardt order parameter descriptor. | |
| PhaseDescriptor | phaseDescriptor () const noexcept |
| Gets current active Steinhardt order parameter descriptor. | |
| void | setCrystalPreset (CrystalPreset preset) |
| Applies a crystal structure preset and auto-configures thresholds. | |
| CrystalPreset | crystalPreset () const noexcept |
| Gets current crystal preset mode. | |
| void | setPhaseThresholds (float min_threshold, float max_threshold) |
| Sets filtering threshold boundaries. | |
| float | phaseMinThreshold () const noexcept |
| Gets current lower scalar threshold. | |
| float | phaseMaxThreshold () const noexcept |
| Gets current upper scalar threshold. | |
| void | setPhaseColormap (plotters::ColormapType colormap) |
| Sets scientific colormap for halo gradient. | |
| plotters::ColormapType | phaseColormap () const noexcept |
| Gets active colormap type. | |
| void | setPhaseHaloIntensity (float intensity) |
| Sets halo alpha glow intensity [0.1, 1.0]. | |
| float | phaseHaloIntensity () const noexcept |
| Gets current halo intensity factor. | |
| void | setPhaseHaloRadiusRatio (float ratio) |
| Sets halo radius multiplier ratio [1.0, 5.0]. | |
| float | phaseHaloRadiusRatio () const noexcept |
| Gets current halo radius ratio. | |
| void | setAtomScale (float scale) |
| Sets uniform atom ball radius scaling multiplier [0.05, 2.0]. | |
| float | atomScale () const noexcept |
| Gets current uniform atom ball radius scaling multiplier. | |
| void | setPhaseDimNonMatching (bool dim) |
| Toggles ghosting/dimming of atoms outside threshold boundaries. | |
| bool | isPhaseDimNonMatching () const noexcept |
| Queries whether non-matching atom dimming is enabled. | |
| void | setPhaseHideNonMatching (bool hide) |
| Toggles hiding/culling of atoms outside threshold boundaries. | |
| bool | isPhaseHideNonMatching () const noexcept |
| Queries whether non-matching atom hiding is enabled. | |
| PhaseSearchSettings | phaseSearchSettings () const noexcept |
| Gets snapshot copy of entire phase search configuration bundle. | |
| PhaseHistogram | phaseHistogram () const |
| Retrieves latest computed 1D distribution histogram. | |
| void | setPhase2DMode (bool is_2d) |
| Enables or disables 2D joint distribution filtering mode. | |
| bool | isPhase2DMode () const noexcept |
| Queries whether 2D phase search mode is active. | |
| void | setPhaseDescriptorY (PhaseDescriptor desc_y) |
| Sets active Y-axis descriptor for 2D mode. | |
| PhaseDescriptor | phaseDescriptorY () const noexcept |
| Gets active Y-axis order descriptor. | |
| void | setPhaseThresholds2D (float min_x, float max_x, float min_y, float max_y) |
| Sets 2D bounding box thresholds [Xmin, Xmax] x [Ymin, Ymax]. | |
| float | phaseMinThresholdY () const noexcept |
| Gets current lower scalar threshold on Y. | |
| float | phaseMaxThresholdY () const noexcept |
| Gets current upper scalar threshold on Y. | |
| PhaseHeatmap2D | phaseHeatmap () const |
| Retrieves latest computed 64x64 2D joint distribution heatmap. | |
| bool | exportHeatmapPng (const std::string &filepath="") |
| Exports the active 2D heatmap to a PNG image file. | |
| void | syncPhaseSearchToWindow () |
| Pushes current phase search settings, colormap texture, and histogram telemetry to Slint UI. | |
| PhaseDescriptorsLRUCache & | lruCache () noexcept |
| Accesses reference to the frame phase descriptors LRU cache. | |
| const PhaseDescriptorsLRUCache & | lruCache () const noexcept |
| Accesses const reference to the frame phase descriptors LRU cache. | |
| std::shared_ptr< const FramePhaseDescriptors > | getOrComputeDescriptors (std::size_t frame_index) |
| Synchronously computes or retrieves phase descriptors for a frame. | |
| std::shared_ptr< const calculators::SteinhardtCalculator::SteinhardtParams > | getOrComputeSteinhardt (std::size_t frame_index) |
| Synchronously computes or retrieves Steinhardt parameters for a frame. | |
| void | syncCameraHudToWindow () |
| Synchronizes projected axis triad and Angstrom scale bar HUD to the Slint window. | |
| void | handlePickAtom (float norm_x, float norm_y) |
| Performs ray-sphere atom picking at normalized viewport coordinates [0, 1]. | |
| void | clearPickedAtom () |
| Clears the currently inspected atom selection and removes inspection highlights. | |
| void | handleMeasureAtom (float norm_x, float norm_y) |
| Picks an atom for the 3D distance/angle ruler (up to 3 atoms, Shift+Click). | |
| void | clearMeasurement () |
| Clears active 3D distance/angle measurement atoms and guide lines. | |
| std::vector< std::size_t > | measuredAtomIndices () const |
| Returns currently measured atom indices (0..3). | |
| std::optional< std::size_t > | pickedAtomIndex () const noexcept |
| Returns the currently picked atom index, if any. | |
| void | setSlabClipConfig (const SlabClipConfig &config) |
| Updates X/Y/Z normalized slab clipping bounds and re-renders. | |
| void | resetSlabClip () |
| Resets slab clipping bounds to [0, 1] and disables clipping. | |
| SlabClipConfig | slabClipConfig () const noexcept |
| Returns the current slab clipping configuration. | |
| void | setRadialBrushDistance (std::optional< double > r_angstrom) |
| Sets or clears the Dual-View radial-shell brushing distance from g(r) hover. | |
Private Member Functions | |
| void | requestPhaseCalculation (std::size_t frame_index) |
| bool | canAdvancePlaybackFrameLocked (bool forward) const |
| void | startCameraAnimationLocked (const math::Vector3< float > &target, float distance, float azimuth_deg, float elevation_deg) |
| void | cancelCameraAnimationLocked () |
| void | updateScenePhaseVisuals () |
| void | updateScenePhaseVisualsLocked () |
| void | applyAtomInspectionHighlightLocked () |
| void | applyMeasurementHighlightLocked () |
| void | applyRadialBrushHighlightLocked (std::size_t &matched_atoms) |
| void | applyElementVisibilityLocked () |
| void | applySlabClippingLocked () |
| void | syncInspectedAtomToWindow () |
| void | syncMeasurementToWindow () |
| void | syncElementLegendToWindow () |
| template<typename F> | |
| void | safeInvokeOnWindow (F &&action) |
Coordinates 3D orbit interactions, scene streaming, and asynchronous off-thread rendering.
| correlation::app::Structure3DController::Structure3DController | ( | ::AppWindow & | window, |
| const ProgramOptions & | options ) |
Constructs controller injected with UI window and options.
| [in] | window | Slint AppWindow reference. |
| [in] | options | Application program options. |
| correlation::app::Structure3DController::~Structure3DController | ( | ) |
Destructor. Cleanly stops render worker thread.
|
private |


|
private |


|
private |

|
private |

|
private |

|
nodiscardnoexcept |
Gets current uniform atom ball radius scaling multiplier.
|
inlinenodiscardnoexcept |
Gets reference to the active orbit camera.
|
nodiscardprivate |

|
private |


| void correlation::app::Structure3DController::clearMeasurement | ( | ) |
Clears active 3D distance/angle measurement atoms and guide lines.

| void correlation::app::Structure3DController::clearPickedAtom | ( | ) |
Clears the currently inspected atom selection and removes inspection highlights.

|
nodiscardnoexcept |
Gets current crystal preset mode.
|
inlinenodiscardnoexcept |
Returns active per-frame distribution store if available.
| bool correlation::app::Structure3DController::exportHeatmapPng | ( | const std::string & | filepath = "" | ) |
Exports the active 2D heatmap to a PNG image file.
| [in] | filepath | Destination file path (defaults to heatmap_snapshot.png if empty). |

|
nodiscard |
Exports a high-resolution offscreen 3D viewport snapshot to a PNG file.
| [in] | filepath | Destination PNG file path. |
| [in] | scale_idx | Resolution multiplier index (0 = 1x, 1 = 2x, 2 = 4x). |
| [in] | bg_mode | Background mode (0 = Viewport dark, 1 = White, 2 = Transparent). |
| [out] | out_width | Optional exported pixel width. |
| [out] | out_height | Optional exported pixel height. |

|
nodiscard |
Exports all frames of the loaded trajectory as a PNG-sequence ZIP or Animated GIF.
| [in] | filepath | Destination .zip or .gif path. |
| [in] | as_gif | True for GIF89a animation, false for PNG-sequence ZIP archive. |
| [in] | fps | Playback frame rate for GIF timing (default 15). |
| [in] | bg_mode | Background mode (0 = Dark, 1 = White, 2 = Transparent). |
| [out] | out_frames | Optional count of exported frames. |

|
nodiscard |
Synchronously computes or retrieves phase descriptors for a frame.
| [in] | frame_index | Zero-based frame index. |
|
nodiscard |
Synchronously computes or retrieves Steinhardt parameters for a frame.
| [in] | frame_index | Zero-based frame index. |
| void correlation::app::Structure3DController::handleFocusPickedAtom | ( | ) |
Smoothly centers and zooms the camera onto the currently picked atom.

| void correlation::app::Structure3DController::handleMeasureAtom | ( | float | norm_x, |
| float | norm_y ) |
Picks an atom for the 3D distance/angle ruler (up to 3 atoms, Shift+Click).
| [in] | norm_x | Normalized horizontal click position (0 = left, 1 = right). |
| [in] | norm_y | Normalized vertical click position (0 = top, 1 = bottom). |

| void correlation::app::Structure3DController::handlePan | ( | float | delta_x, |
| float | delta_y ) |
Handles mouse panning deltas.
| [in] | delta_x | Horizontal drag delta in pixels. |
| [in] | delta_y | Vertical drag delta in pixels. |

| void correlation::app::Structure3DController::handlePickAtom | ( | float | norm_x, |
| float | norm_y ) |
Performs ray-sphere atom picking at normalized viewport coordinates [0, 1].
| [in] | norm_x | Normalized horizontal click position (0 = left, 1 = right). |
| [in] | norm_y | Normalized vertical click position (0 = top, 1 = bottom). |

| void correlation::app::Structure3DController::handleResetView | ( | ) |
Resets camera view to auto-fit system bounding box.

| void correlation::app::Structure3DController::handleResetVisualSupercell | ( | ) |
Resets visual supercell replication back to 1x1x1.

| void correlation::app::Structure3DController::handleRotate | ( | float | delta_x, |
| float | delta_y ) |
Handles mouse orbit rotation deltas.
| [in] | delta_x | Horizontal drag delta in pixels. |
| [in] | delta_y | Vertical drag delta in pixels. |

| void correlation::app::Structure3DController::handleSeekFrame | ( | int | frame_index | ) |
Seeks to target frame in active trajectory.
| [in] | frame_index | Zero-based frame index. |

| void correlation::app::Structure3DController::handleSelectDistributionMetric | ( | int | metric_index | ) |
Selects active distribution metric displayed in 3D viewer mini-chart HUD.
| [in] | metric_index | 0 = RDF g(r), 1 = PAD θ, 2 = S(Q). |

| void correlation::app::Structure3DController::handleSetCameraPreset | ( | int | preset_idx | ) |
Sets camera orientation to a standard orthographic or isometric preset.
| [in] | preset_idx | 0: Top (XY), 1: Front (XZ), 2: Side (YZ), 3: Isometric. |

| void correlation::app::Structure3DController::handleSetVisualSupercell | ( | int | rep_a, |
| int | rep_b, | ||
| int | rep_c ) |
Sets visual-only periodic supercell replication counts (1..3 per axis).


| void correlation::app::Structure3DController::handleShowAllElements | ( | ) |
Restores visibility of all chemical elements.

| void correlation::app::Structure3DController::handleStepFrame | ( | bool | forward | ) |
Steps forward or backward through trajectory frames.
| [in] | forward | True for next frame, false for previous frame. |

| void correlation::app::Structure3DController::handleToggleBonds | ( | bool | enabled | ) |
Toggles rendering of covalent bonds.
| [in] | enabled | True to render bonds. |

| void correlation::app::Structure3DController::handleToggleDepthCueing | ( | bool | enabled | ) |
Toggles atmospheric depth cueing (fog) in Vulkan and CPU renderers.
| [in] | enabled | True to enable depth cueing. |

| void correlation::app::Structure3DController::handleToggleDistributionHUD | ( | bool | visible | ) |
Toggles visibility of the distribution mini-chart HUD.
| [in] | visible | True to display mini-chart HUD overlay. |

| void correlation::app::Structure3DController::handleToggleElementVisibility | ( | const std::string & | symbol | ) |
Toggles hide/show visibility for all atoms of a chemical element symbol.
| [in] | symbol | Chemical element symbol (e.g. "Cu", "Si"). |

| void correlation::app::Structure3DController::handleToggleInCell | ( | bool | enabled | ) |
Toggles in-cell PBC coordinate wrapping and boundary-clipped bonds.
| [in] | enabled | True to wrap atoms and clip crossing bonds to unit cell faces. |

| void correlation::app::Structure3DController::handleToggleProjection | ( | bool | isometric | ) |
Toggles between perspective and isometric (orthographic) 3D camera projection.
| [in] | isometric | True for isometric/orthographic, false for perspective. |

| void correlation::app::Structure3DController::handleToggleSsao | ( | bool | enabled | ) |
Toggles screen-space ambient occlusion (SSAO) contact darkening on Vulkan.
| [in] | enabled | True to enable SSAO. |

| void correlation::app::Structure3DController::handleToggleWireframe | ( | bool | enabled | ) |
Toggles rendering of periodic simulation unit cell wireframe.
| [in] | enabled | True to render wireframe box. |

| void correlation::app::Structure3DController::handleViewportResized | ( | float | width, |
| float | height ) |
Updates viewport dimensions.
| [in] | width | Layout width in pixels. |
| [in] | height | Layout height in pixels. |

| void correlation::app::Structure3DController::handleZoom | ( | float | delta | ) |
Handles scroll wheel zoom delta.
| [in] | delta | Wheel scroll delta factor. |

|
inlinenodiscardnoexcept |
Queries whether the 3D Structure tab is active.
|
inlinenodiscardnoexcept |
Queries whether depth cueing is enabled.
|
inlinenodiscardnoexcept |
Queries whether the distribution mini-graph HUD is currently visible.
|
inlinenodiscardnoexcept |
Queries whether in-cell PBC wrapping mode is active.
|
inlinenodiscardnoexcept |
Queries whether isometric (orthographic) projection mode is active.
|
nodiscardnoexcept |
Queries whether 2D phase search mode is active.
|
nodiscardnoexcept |
Queries whether non-matching atom dimming is enabled.

|
nodiscardnoexcept |
Queries whether non-matching atom hiding is enabled.

|
nodiscardnoexcept |
Queries whether phase search halo visualization is active.

|
inlinenodiscardnoexcept |
Queries whether SSAO is enabled.
|
inlinenodiscardnoexcept |
Accesses const reference to the frame phase descriptors LRU cache.
|
inlinenodiscardnoexcept |
Accesses reference to the frame phase descriptors LRU cache.


|
inlinenodiscard |
Returns currently measured atom indices (0..3).
|
nodiscardnoexcept |
Gets active colormap type.
|
nodiscardnoexcept |
Gets current active Steinhardt order parameter descriptor.

|
nodiscardnoexcept |
Gets active Y-axis order descriptor.
|
nodiscardnoexcept |
Gets current halo intensity factor.

|
nodiscardnoexcept |
Gets current halo radius ratio.

|
nodiscard |
Retrieves latest computed 64x64 2D joint distribution heatmap.
|
nodiscard |
Retrieves latest computed 1D distribution histogram.
|
nodiscardnoexcept |
Gets current upper scalar threshold.

|
nodiscardnoexcept |
Gets current upper scalar threshold on Y.
|
nodiscardnoexcept |
Gets current lower scalar threshold.

|
nodiscardnoexcept |
Gets current lower scalar threshold on Y.
|
nodiscardnoexcept |
Gets snapshot copy of entire phase search configuration bundle.
|
inlinenodiscardnoexcept |
Returns the currently picked atom index, if any.
|
private |
| void correlation::app::Structure3DController::requestRender | ( | bool | immediate = false | ) |
Schedules an asynchronous 3D frame redraw.
| [in] | immediate | If true, signals worker without debounce delay. |


| void correlation::app::Structure3DController::resetSlabClip | ( | ) |
Resets slab clipping bounds to [0, 1] and disables clipping.

|
inlineprivate |

|
inlinenodiscardnoexcept |
Gets shared pointer to the active render scene.
| void correlation::app::Structure3DController::set3DModeActive | ( | bool | active | ) |
Sets whether the 3D Structure tab is currently active.
| [in] | active | True if 3D viewport is visible on screen. |

| void correlation::app::Structure3DController::setAtomScale | ( | float | scale | ) |
Sets uniform atom ball radius scaling multiplier [0.05, 2.0].
| [in] | scale | Atom radius scale multiplier. |

| void correlation::app::Structure3DController::setCell | ( | const core::Cell & | cell | ) |
Updates active atomic structure from loaded Cell.
| [in] | cell | New atomic simulation cell. |

| void correlation::app::Structure3DController::setCrystalPreset | ( | CrystalPreset | preset | ) |
Applies a crystal structure preset and auto-configures thresholds.
| [in] | preset | Preset enum value (Liquid, FCC, HCP, BCC, Icosahedral). |

| void correlation::app::Structure3DController::setDistributionStore | ( | std::shared_ptr< const analysis::PerFrameDistributionStore > | store | ) |
Sets or updates the trajectory-wide per-frame distribution store.
| [in] | store | Shared pointer to PerFrameDistributionStore. |

| void correlation::app::Structure3DController::setMetricPlotLimits | ( | analysis::DistributionMetric | metric, |
| const render3d::MiniPlotConfig & | config ) |
Sets custom plot configuration / limits for a distribution metric on the HUD.
| [in] | metric | Target distribution metric. |
| [in] | config | Custom mini-plot configuration. |

| void correlation::app::Structure3DController::setPhase2DMode | ( | bool | is_2d | ) |
Enables or disables 2D joint distribution filtering mode.
| [in] | is_2d | True to activate 2D bounding box phase search. |

| void correlation::app::Structure3DController::setPhaseColormap | ( | plotters::ColormapType | colormap | ) |
Sets scientific colormap for halo gradient.
| [in] | colormap | Colormap enum value (Viridis, Plasma, Coolwarm, Turbo). |

| void correlation::app::Structure3DController::setPhaseDescriptor | ( | PhaseDescriptor | descriptor | ) |
Sets the active Steinhardt order parameter descriptor.
| [in] | descriptor | Active descriptor (e.g. Q6Bar, W6Hat). |

| void correlation::app::Structure3DController::setPhaseDescriptorY | ( | PhaseDescriptor | desc_y | ) |
Sets active Y-axis descriptor for 2D mode.
| [in] | desc_y | Y-axis order descriptor. |

| void correlation::app::Structure3DController::setPhaseDimNonMatching | ( | bool | dim | ) |
Toggles ghosting/dimming of atoms outside threshold boundaries.
| [in] | dim | True to apply dimming to non-matching atoms. |

| void correlation::app::Structure3DController::setPhaseHaloIntensity | ( | float | intensity | ) |
Sets halo alpha glow intensity [0.1, 1.0].
| [in] | intensity | Halo alpha factor. |

| void correlation::app::Structure3DController::setPhaseHaloRadiusRatio | ( | float | ratio | ) |
Sets halo radius multiplier ratio [1.0, 5.0].
| [in] | ratio | Ratio of halo radius over visual sphere radius. |

| void correlation::app::Structure3DController::setPhaseHideNonMatching | ( | bool | hide | ) |
Toggles hiding/culling of atoms outside threshold boundaries.
| [in] | hide | True to cull non-matching atoms. |

| void correlation::app::Structure3DController::setPhaseSearchEnabled | ( | bool | enabled | ) |
Enables or disables phase search halo visualization.
| [in] | enabled | True to activate phase halos and non-matching dimming. |

| void correlation::app::Structure3DController::setPhaseThresholds | ( | float | min_threshold, |
| float | max_threshold ) |
Sets filtering threshold boundaries.
| [in] | min_threshold | Lower scalar threshold. |
| [in] | max_threshold | Upper scalar threshold. |

| void correlation::app::Structure3DController::setPhaseThresholds2D | ( | float | min_x, |
| float | max_x, | ||
| float | min_y, | ||
| float | max_y ) |
Sets 2D bounding box thresholds [Xmin, Xmax] x [Ymin, Ymax].
| [in] | min_x | Lower scalar threshold on X. |
| [in] | max_x | Upper scalar threshold on X. |
| [in] | min_y | Lower scalar threshold on Y. |
| [in] | max_y | Upper scalar threshold on Y. |

| void correlation::app::Structure3DController::setRadialBrushDistance | ( | std::optional< double > | r_angstrom | ) |
Sets or clears the Dual-View radial-shell brushing distance from g(r) hover.
| [in] | r_angstrom | Hovered radial distance in Angstroms, or std::nullopt to clear. |

| void correlation::app::Structure3DController::setSlabClipConfig | ( | const SlabClipConfig & | config | ) |
Updates X/Y/Z normalized slab clipping bounds and re-renders.
| [in] | config | Slab clipping configuration. |


| void correlation::app::Structure3DController::setTrajectory | ( | std::shared_ptr< const core::Trajectory > | trajectory | ) |
Updates active trajectory dataset.
| [in] | trajectory | Shared pointer to loaded trajectory. |

|
inlinenodiscardnoexcept |
Returns the current slab clipping configuration.
|
private |


| void correlation::app::Structure3DController::syncCameraHudToWindow | ( | ) |
Synchronizes projected axis triad and Angstrom scale bar HUD to the Slint window.


| void correlation::app::Structure3DController::syncDistributionHUDToWindow | ( | ) |
Renders and synchronizes the active frame mini-chart with the Slint UI.


|
private |


|
private |


|
private |


| void correlation::app::Structure3DController::syncPhaseSearchToWindow | ( | ) |
Pushes current phase search settings, colormap texture, and histogram telemetry to Slint UI.


| void correlation::app::Structure3DController::tickCameraAnimation | ( | ) |
Advances active smooth camera interpolation by one frame tick.

| void correlation::app::Structure3DController::updateBondCutoffScale | ( | double | cutoff_scale | ) |
Updates the covalent radius scaling factor used for bond generation.
| [in] | cutoff_scale | Multiplier for covalent radius bond cutoff. |

|
private |


|
private |


|
inlinenodiscardnoexcept |
Returns current visual supercell replication counts [nx, ny, nz].
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |