+ SetAutoHilight(Standard_False);
+}
+
+void PartSet_CenterPrs::drawPoint(const Handle(Prs3d_Presentation)& thePrs,
+ Quantity_Color theColor)
+{
+ Handle(Prs3d_Drawer) aDrawer = HilightAttributes();
+
+ Handle(Prs3d_PointAspect) aPntAspect = aDrawer->PointAspect();
+
+ Handle(Graphic3d_AspectMarker3d) PtA = aPntAspect->Aspect();
+ PtA->SetType(Aspect_TOM_RING1);
+ PtA->SetColor(theColor);
+
+ Handle(Geom_Point) aPnt = Component();
+ Handle(Graphic3d_Group) TheGroup = thePrs->CurrentGroup();
+ TheGroup->SetPrimitivesAspect(PtA);
+
+ Handle(Graphic3d_ArrayOfPoints) aPoint = new Graphic3d_ArrayOfPoints (1);
+ aPoint->AddVertex(aPnt->X(),aPnt->Y(),aPnt->Z());
+ TheGroup->AddPrimitiveArray(aPoint);
+
+ PtA = new Graphic3d_AspectMarker3d();
+ PtA->SetType(Aspect_TOM_POINT);
+ PtA->SetScale(5.);
+ PtA->SetColor(theColor);
+ TheGroup->SetPrimitivesAspect(PtA);
+ TheGroup->AddPrimitiveArray (aPoint);
+}
+
+void PartSet_CenterPrs::HilightSelected(const Handle(PrsMgr_PresentationManager3d)& PM,
+ const SelectMgr_SequenceOfOwner& /*Seq*/)
+{
+ Handle( Prs3d_Presentation ) aSelectionPrs = GetSelectPresentation( PM );
+ aSelectionPrs->Clear();
+
+ drawPoint(aSelectionPrs, GetContext()->SelectionStyle()->Color());
+
+ aSelectionPrs->SetDisplayPriority(9);
+ aSelectionPrs->Display();
+ PM->Color(this, GetContext()->SelectionStyle());
+}
+
+void PartSet_CenterPrs::HilightOwnerWithColor(const Handle(PrsMgr_PresentationManager3d)& thePM,
+ const Handle(Prs3d_Drawer)& theStyle,
+ const Handle(SelectMgr_EntityOwner)& /*theOwner*/)
+{
+ Handle( Prs3d_Presentation ) aHilightPrs = GetHilightPresentation( thePM );
+ aHilightPrs->Clear();
+
+ thePM->Color(this, theStyle);
+ drawPoint(aHilightPrs, theStyle->Color());
+
+ aHilightPrs->SetZLayer(Graphic3d_ZLayerId_Topmost);
+
+ if (thePM->IsImmediateModeOn())
+ thePM->AddToImmediateList(aHilightPrs);
+}