]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketcherPrs/SketcherPrs_Coincident.cpp
Salome HOME
updated copyright message
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Coincident.cpp
index 43bac7a5613923312f06f72679f511912d3824c3..0e148e0670c7be84402fbbc755f7b50dd269820c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -38,7 +38,6 @@
 #include <Graphic3d_AspectMarker3d.hxx>
 #include <Graphic3d_ArrayOfPoints.hxx>
 #include <Prs3d_PointAspect.hxx>
-#include <Prs3d_Root.hxx>
 #include <SelectMgr_EntityOwner.hxx>
 #include <SelectMgr_Selection.hxx>
 #include <Select3D_SensitivePoint.hxx>
@@ -111,9 +110,9 @@ bool hasEdge(ModelAPI_Feature* theConstraint)
 
 
 void SketcherPrs_Coincident::Compute(
-  const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
+  const Handle(PrsMgr_PresentationManager3d)& /*thePresentationManager*/,
   const Handle(Prs3d_Presentation)& thePresentation,
-  const Standard_Integer theMode)
+  const Standard_Integer /*theMode*/)
 {
   gp_Pnt aPoint;
   bool aReadyToDisplay = readyToDisplay(myConstraint, mySketch->coordinatePlane(), aPoint);
@@ -153,7 +152,7 @@ void SketcherPrs_Coincident::Compute(
   aPtA->SetScale(2. * aRatio);
   aPtA->SetColor(aExternalColor);
 
-  Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup(thePresentation);
+  Handle(Graphic3d_Group) aGroup = thePresentation->CurrentGroup();
   aGroup->SetPrimitivesAspect(aPtA);
   Handle(Graphic3d_ArrayOfPoints) aPntArray = new Graphic3d_ArrayOfPoints(1);
   aPntArray->AddVertex (myPoint.X(), myPoint.Y(), myPoint.Z());
@@ -181,8 +180,8 @@ void SketcherPrs_Coincident::Compute(
 }
 
 
-void SketcherPrs_Coincident::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
-                                            const Standard_Integer aMode)
+void SketcherPrs_Coincident::ComputeSelection(const Handle(SelectMgr_Selection)& /*theSelection*/,
+                                              const Standard_Integer /*theMode*/)
 {
   // There is no selection of coincident - a point is selected instead of coincidence
 }