X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_Trihedron.cxx;h=0626d10dd8fe97f1047455e561f9c7539e4ca506;hb=fae1ae1182b4d2fd8353b263925d2ac9c913761a;hpb=f998596a105f64f10e4f0b848efb8a8161d8ea52 diff --git a/src/AIS/AIS_Trihedron.cxx b/src/AIS/AIS_Trihedron.cxx index a2d2e1fecf..0626d10dd8 100644 --- a/src/AIS/AIS_Trihedron.cxx +++ b/src/AIS/AIS_Trihedron.cxx @@ -103,6 +103,8 @@ void AIS_Trihedron::setOwnDatumAspect() if (myDrawer->Link().IsNull()) return; + myDrawer->DatumAspect()->SetDrawArrows (myDrawer->Link()->DatumAspect()->ToDrawArrows()); + myDrawer->DatumAspect()->SetDrawLabels (myDrawer->Link()->DatumAspect()->ToDrawLabels()); *myDrawer->DatumAspect()->TextAspect()->Aspect() = *myDrawer->Link()->DatumAspect()->TextAspect()->Aspect(); *myDrawer->DatumAspect()->PointAspect()->Aspect() = @@ -493,14 +495,14 @@ void AIS_Trihedron::computePresentation (const Handle(PrsMgr_PresentationManager anAxisGroup->AddPrimitiveArray (arrayOfPrimitives (aPart)); // draw arrow - Handle(Graphic3d_Group) anArrowGroup = Prs3d_Root::NewGroup (thePrs); - anArrowGroup->SetPrimitivesAspect (anAspect->ArrowAspect()->Aspect()); - Prs3d_DatumParts anArrowPart = anAspect->ArrowPartForAxis (aPart); if (!anAspect->DrawDatumPart (anArrowPart)) { continue; } + + Handle(Graphic3d_Group) anArrowGroup = Prs3d_Root::NewGroup (thePrs); + anArrowGroup->SetGroupPrimitivesAspect (anAspect->ArrowAspect()->Aspect()); anArrowGroup->AddPrimitiveArray (arrayOfPrimitives (anArrowPart)); } } @@ -714,6 +716,25 @@ void AIS_Trihedron::UnsetColor() } } +//======================================================================= +//function : ToDrawArrows +//purpose : +//======================================================================= +Standard_Boolean AIS_Trihedron::ToDrawArrows() const +{ + return myDrawer->DatumAspect()->ToDrawArrows(); +} + +//======================================================================= +//function : SetDrawArrows +//purpose : +//======================================================================= +void AIS_Trihedron::SetDrawArrows (const Standard_Boolean theToDraw) +{ + setOwnDatumAspect(); + myDrawer->DatumAspect()->SetDrawArrows (theToDraw); +} + //======================================================================= //function : createSensitiveEntity //purpose :