-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#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>
Quantity_Color aExternalColor = aIsEdge ? aMainColor : Quantity_NOC_YELLOW;
Quantity_Color aInternalColor = aIsEdge ? Quantity_NOC_YELLOW : aMainColor;
- int aRatio = SketcherPrs_Tools::pixelRatio();
+ const double aRatio = SketcherPrs_Tools::pixelRatio();
// Create the presentation as a combination of standard point markers
// The external yellow contour
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());