View Issue Details

IDProjectCategoryView StatusLast Update
0033838CommunityOCCT:Visualizationpublic2024-10-10 10:58
Reportermahaidong Assigned Tokgv  
PrioritynormalSeverityjust a question 
Status newResolutionopen 
Product Version7.7.1 
Summary0033838: in PrsMgr_PresentationManager.hxx, change the calls from V3d_Viewer to NCollection_List<Handle(OpenGl_View)>
Descriptionin PrsMgr_PresentationManager.hxx file, there are calls to `V3d_Viewer`.
It makes if you want to to develop something not invlved in AIS or V3d but with SelectMgr_SelectableObject become impossible.

//! Allows rapid drawing of the each view in theViewer by avoiding an update of the whole background.
  Standard_EXPORT void EndImmediateDraw (const Handle(V3d_Viewer)& theViewer);

  //! Clears and redisplays immediate structures of the viewer taking into account its affinity.
  Standard_EXPORT void RedrawImmediate (const Handle(V3d_Viewer)& theViewer);

  //! Handles the structures from <myImmediateList> and displays it separating view-dependent structures and taking into account
  //! structure visibility by setting proper affinity.
  void displayImmediate (const Handle(V3d_Viewer)& theViewer);

My question is can we change it to call `NCollection_List<Handle(OpenGl_View)>& theViews` then we can get rid of high level call from low level function.

//! Allows rapid drawing of the each view in theViewer by avoiding an update of the whole background.
  Standard_EXPORT void EndImmediateDraw (NCollection_List<Handle(OpenGl_View)>& theViews);

  //! Clears and redisplays immediate structures of the viewer taking into account its affinity.
  Standard_EXPORT void RedrawImmediate (NCollection_List<Handle(OpenGl_View)>& theViews);

  //! Handles the structures from <myImmediateList> and displays it separating view-dependent structures and taking into account
  //! structure visibility by setting proper affinity.
  void displayImmediate ( NCollection_List<Handle(OpenGl_View)>& theViews);

  //! Handles the structures from <myImmediateList> and displays it separating view-dependent structures and taking into account
  //! structure visibility by setting proper affinity.
  void displayImmediate ( NCollection_List<Handle(OpenGl_View)>& theViews);
TagsNo tags attached.
Test case number

Activities

mahaidong

2024-10-10 08:24

reporter   ~0116837

If it is ok. I can work on it.

mahaidong

2024-10-10 10:58

reporter   ~0116838

should be `void displayImmediate (NCollection_List<Handle(Graphic3d_CView)>& theCViews);`

Issue History

Date Modified Username Field Change
2024-10-10 08:09 mahaidong New Issue
2024-10-10 08:09 mahaidong Assigned To => kgv
2024-10-10 08:24 mahaidong Note Added: 0116837
2024-10-10 10:58 mahaidong Note Added: 0116838