MantisBT - Community
View Issue Details
0028990Community[OCCT] OCCT:Codingpublic2017-08-11 15:372019-07-10 19:27
Vico Liang 
kgv 
normalminor 
newopen 
 
[OCCT] 7.5.0 
0028990: class Prs3d_Root can be removed
Prs3d_Root just delegates function call to Prs3d_Presentation object, it can be removed to simplify OCCT type system.

class Prs3d_Root
{
public:

  DEFINE_STANDARD_ALLOC

  //! Returns the current (last created) group of primititves inside graphic objects in the display.
  //! A group also contains the attributes whose ranges are limited to the primitives in it.
  static Handle(Graphic3d_Group) CurrentGroup (const Handle(Prs3d_Presentation)& thePrs3d)
  {
    return thePrs3d->CurrentGroup();
  }

  //! Returns the new group of primitives inside graphic objects in the display.
  //! A group also contains the attributes whose ranges are limited to the primitives in it.
  static Handle(Graphic3d_Group) NewGroup (const Handle(Prs3d_Presentation)& thePrs3d)
  {
    return thePrs3d->NewGroup();
  }

};
No tags attached.
related to 0024752closed bugmaster Open CASCADE Visualization - inherit OpenGl_Group from Graphic3d_Group 
Issue History
2017-08-11 15:37Vico LiangNew Issue
2017-08-11 15:37Vico LiangAssigned To => kgv
2017-08-16 14:15kgvRelationship addedrelated to 0024752
2017-08-16 14:18kgvNote Added: 0069457
2019-07-10 19:27abvTarget Version7.4.0* => 7.5.0

Notes
(0069457)
kgv   
2017-08-16 14:18   
Prs3d_Root was not removed within 0024752 because it is widely used (previously it was the only public API for creating new groups).

So this removal should come through deprecation -> removal cycle.