- aGroup->AddPrimitiveArray(myPntArray);
-}
-
-void SketcherPrs_Parallel::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
- const Standard_Integer aMode)
-{
- ClearSelected();
- std::shared_ptr<GeomAPI_Edge> aLine1 = SketcherPrs_Tools::getLine(myConstraint, SketchPlugin_Constraint::ENTITY_A());
- if (aLine1.get() == NULL)
- return;
-
- std::shared_ptr<GeomAPI_Edge> aLine2 = SketcherPrs_Tools::getLine(myConstraint, SketchPlugin_Constraint::ENTITY_B());
- if (aLine2.get() == NULL)
- return;
-
- Handle(SelectMgr_EntityOwner) aOwn = new SelectMgr_EntityOwner(this);
- Handle(Select3D_SensitivePoint) aSP1 = new Select3D_SensitivePoint(aOwn, myPntArray->Vertice(1));
- Handle(Select3D_SensitivePoint) aSP2 = new Select3D_SensitivePoint(aOwn, myPntArray->Vertice(2));
- aSelection->Add(aSP1);
- aSelection->Add(aSP2);
-}
-
-void SketcherPrs_Parallel::HilightSelected(const Handle(PrsMgr_PresentationManager3d)& thePM,
- const SelectMgr_SequenceOfOwner& theOwners)
-{
-
- Handle( Prs3d_Presentation ) aSelectionPrs = GetSelectPresentation( thePM );
- aSelectionPrs->Clear();
- drawLines(aSelectionPrs, Quantity_NOC_WHITE);
-
- aSelectionPrs->SetDisplayPriority(9);
- aSelectionPrs->Display();
- thePM->Highlight(this);
-}
-
-void SketcherPrs_Parallel::HilightOwnerWithColor(const Handle(PrsMgr_PresentationManager3d)& thePM,
- const Quantity_NameOfColor theColor, const Handle(SelectMgr_EntityOwner)& theOwner)
-{
- thePM->Color(this, theColor);
-
- Handle( Prs3d_Presentation ) aHilightPrs = GetHilightPresentation( thePM );
- aHilightPrs->Clear();
- drawLines(aHilightPrs, theColor);
-
- if (thePM->IsImmediateModeOn())
- thePM->AddToImmediateList(aHilightPrs);