Skip to content

Allow override ancillary imgui label parameters#5019

Merged
Grantim merged 4 commits intomasterfrom
Allow_override_ancillary_imgui_label_parameters
Aug 27, 2025
Merged

Allow override ancillary imgui label parameters#5019
Grantim merged 4 commits intomasterfrom
Allow_override_ancillary_imgui_label_parameters

Conversation

@Grantim
Copy link
Contributor

@Grantim Grantim commented Aug 27, 2025

No description provided.

Comment on lines +101 to +104
if ( !params )
overrideParams_.reset();
else
overrideParams_ = *params;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not simply: overrideParams_ = params;


/// Optionally override rendering params for this label
/// if not set defaults are used
MRVIEWER_API void resetParams( const std::optional<ImGuiMeasurementIndicators::Params>& params = std::nullopt );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, why "reset"? Perhaps something like setCustomParams or setOverrideParams.

@Grantim Grantim merged commit 9395495 into master Aug 27, 2025
32 checks passed
@Grantim Grantim deleted the Allow_override_ancillary_imgui_label_parameters branch August 27, 2025 13:17
MaxRayskiy pushed a commit that referenced this pull request Sep 27, 2025
* Allow override ancillary imgui label parameters

* CR Fix

* CR Fix 2

* CR Fix 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants