Skip to content

Visualization - Refactor selection management and presentation handling#1272

Draft
dpasukhi wants to merge 1 commit into
Open-Cascade-SAS:IRfrom
dpasukhi:v3d_validation
Draft

Visualization - Refactor selection management and presentation handling#1272
dpasukhi wants to merge 1 commit into
Open-Cascade-SAS:IRfrom
dpasukhi:v3d_validation

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

@dpasukhi dpasukhi commented May 6, 2026

  • Added new test file AIS_InteractiveContext_Test.cxx to GTests.
  • Replaced NCollection_List with NCollection_LinearVector in PrsMgr_PresentationManager for improved performance and memory management.
  • Updated methods in PrsMgr_PresentationManager to use index-based access instead of iterator-based loops.
  • Refactored SelectMgr_SelectableObject to utilize NCollection_LinearVector for selections, enhancing efficiency in selection handling.
  • Simplified selection iteration in SelectMgr_SelectionManager, SelectMgr_ViewerSelector, and SelectMgr_SelectionImageFiller by using index-based loops.
  • Changed NCollection_Map to NCollection_FlatMap in V3d_Viewer for better performance in layer ID management.

@dpasukhi dpasukhi added this to the Release 8.1 milestone May 6, 2026
@dpasukhi dpasukhi self-assigned this May 6, 2026
@dpasukhi dpasukhi added 1. Visualization AIS cases, animation, ray-tracing, viewer integration into external software and etc... 1. Coding Coding rules, trivial changes and misprints labels May 6, 2026
- Added new test file `AIS_InteractiveContext_Test.cxx` to GTests.
- Replaced `NCollection_List` with `NCollection_LinearVector` in `PrsMgr_PresentationManager` for improved performance and memory management.
- Updated methods in `PrsMgr_PresentationManager` to use index-based access instead of iterator-based loops.
- Refactored `SelectMgr_SelectableObject` to utilize `NCollection_LinearVector` for selections, enhancing efficiency in selection handling.
- Simplified selection iteration in `SelectMgr_SelectionManager`, `SelectMgr_ViewerSelector`, and `SelectMgr_SelectionImageFiller` by using index-based loops.
- Changed `NCollection_Map` to `NCollection_FlatMap` in `V3d_Viewer` for better performance in layer ID management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Coding Coding rules, trivial changes and misprints 1. Visualization AIS cases, animation, ray-tracing, viewer integration into external software and etc...

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant