]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_CenterPrs.cpp
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / PartSet / PartSet_CenterPrs.cpp
index 8049c1385221194d527a75929cd4ecfdefa963e6..1508ec36b4e8b62355965581851dbf428f2f65dc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017  CEA/DEN, EDF R&D
+// Copyright (C) 2017-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 // File:        PartSet_CenterPrs.cpp
@@ -28,7 +27,6 @@
 #include <Geom_CartesianPoint.hxx>
 #include <Prs3d_PointAspect.hxx>
 #include <Graphic3d_AspectMarker3d.hxx>
-#include <Prs3d_Root.hxx>
 #include <Graphic3d_ArrayOfPoints.hxx>
 #include <AIS_InteractiveContext.hxx>
 
@@ -60,7 +58,7 @@ void PartSet_CenterPrs::drawPoint(const Handle(Prs3d_Presentation)& thePrs,
   PtA->SetColor(theColor);
 
   Handle(Geom_Point) aPnt = Component();
-  Handle(Graphic3d_Group) TheGroup = Prs3d_Root::CurrentGroup(thePrs);
+  Handle(Graphic3d_Group) TheGroup = thePrs->CurrentGroup();
   TheGroup->SetPrimitivesAspect(PtA);
 
   Handle(Graphic3d_ArrayOfPoints) aPoint = new Graphic3d_ArrayOfPoints (1);
@@ -76,7 +74,7 @@ void PartSet_CenterPrs::drawPoint(const Handle(Prs3d_Presentation)& thePrs,
 }
 
 void PartSet_CenterPrs::HilightSelected(const Handle(PrsMgr_PresentationManager3d)& PM,
-                                        const SelectMgr_SequenceOfOwner& Seq)
+                                        const SelectMgr_SequenceOfOwner& /*Seq*/)
 {
   Handle( Prs3d_Presentation ) aSelectionPrs = GetSelectPresentation( PM );
   aSelectionPrs->Clear();
@@ -90,7 +88,7 @@ void PartSet_CenterPrs::HilightSelected(const Handle(PrsMgr_PresentationManager3
 
 void PartSet_CenterPrs::HilightOwnerWithColor(const Handle(PrsMgr_PresentationManager3d)& thePM,
                                               const Handle(Prs3d_Drawer)& theStyle,
-                                              const Handle(SelectMgr_EntityOwner)& theOwner)
+                                              const Handle(SelectMgr_EntityOwner)& /*theOwner*/)
 {
   Handle( Prs3d_Presentation ) aHilightPrs = GetHilightPresentation( thePM );
   aHilightPrs->Clear();