mcstasscript.tests.test_geometry_viewer#
Functions
|
Create a minimal mock component object compatible with ComponentModel. |
|
Create a mock component with xwidth/yheight parameters (rectangle type). |
Classes
|
Tests for _aggregate_intensity: reduces 1D monitor data to a scalar. |
|
Tests for _aggregate_intensity with 'ncount' aggregation. |
|
Tests for the public API functions (without heavy rendering). |
|
Tests for component_colors parameter threading through the API. |
|
Tests for component_opacity parameter threading through the API. |
|
Tests for ComponentModel class. |
|
Verify config constants exist and have expected values. |
|
Tests for individual drawcall parsing functions. |
|
Tests for euler_to_rotation_matrix. |
|
Tests for graceful handling of geometry guess failures in view_with_guess. |
|
Tests for GeometryRule and GeometryRuleRegistry. |
|
Tests for built-in geometry guess rules. |
|
Tests for InstrumentModel class. |
|
Tests for intensity_to_color: maps intensity values to hex colors. |
|
Tests for component-scoped material isolation in PyThreejsRenderer. |
|
Tests for component-scoped material isolation with opacity changes. |
|
Tests for MatplotlibRenderer colorbar. |
|
Tests for MatplotlibRenderer intensity colormode. |
|
Tests for disconnected LineSegmentsShape rendering. |
|
Tests for MatplotlibRenderer._transform_points with quaternion transforms. |
|
Tests for ncount dropdown option and 'N rays' colorbar label. |
|
Ensure ncount addition does not break existing aggregate modes. |
|
Tests for the normalize vector utility. |
|
Tests for normalize_quaternion: scales a quaternion to unit length. |
|
Tests for pos_rot_from_list: extracts position and rotation from a 16-element m4 matrix. |
|
Tests for PyThreejsRenderer colorbar widget. |
|
Tests for picking a visual and showing its source component. |
|
Tests for PyThreejsRenderer custom component colors feature. |
|
Tests for PyThreejsRenderer custom component opacities feature. |
|
Tests for PyThreejsRenderer intensity colormode. |
|
Tests for quaternion_from_rotation_matrix: converts a 3x3 rotation matrix to quaternion. |
|
Tests for quaternion_from_vectors: computes quaternion that rotates v0 onto v1. |
|
Tests for quaternion_multiply: Hamilton product of two quaternions. |
|
Tests for quaternion_to_rotation_matrix: converts a quaternion to a 3x3 rotation matrix. |
|
Tests for resolve_transforms. |
|
Tests for safe_eval expression evaluation. |
|
Tests for shape dataclasses and Style. |
|
Tests for SphereShape. |
|
Tests for Transform dataclass and its point transformation methods. |
|
Tests for transform failure diagnostics in view_with_guess. |
|
Tests for triangulate_faces: converts face definitions into flat triangle indices. |