-
-// =======================================================================
-// function : getHighlightAspect
-// purpose :
-// =======================================================================
-Handle(Prs3d_ShadingAspect) AIS_Trihedron::getHighlightAspect()
-{
- if (!myHighlightAspect.IsNull())
- return myHighlightAspect;
-
- Quantity_Color aHighlightColor = Quantity_NOC_GRAY80;
- if (!myHilightDrawer.IsNull())
- aHighlightColor = myHilightDrawer->Color();
-
- myHighlightAspect = new Prs3d_ShadingAspect();
- myHighlightAspect->Aspect()->SetInteriorStyle (Aspect_IS_SOLID);
- myHighlightAspect->SetColor (aHighlightColor);
-
- Graphic3d_MaterialAspect aHighlightMaterial;
- aHighlightMaterial.SetColor (aHighlightColor);
- myHighlightAspect->SetMaterial (aHighlightMaterial);
-
- return myHighlightAspect;
-}
-
-// =======================================================================
-// function : getHighlightLineAspect
-// purpose :
-// =======================================================================
-Handle(Prs3d_LineAspect) AIS_Trihedron::getHighlightLineAspect()
-{
- if (!myHighlightLineAspect.IsNull())
- return myHighlightLineAspect;
-
- Quantity_Color aHighlightColor = Quantity_NOC_GRAY80;
- if (!myHilightDrawer.IsNull())
- aHighlightColor = myHilightDrawer->Color();
-
- Handle(Prs3d_DatumAspect) aDatumAspect = Attributes()->DatumAspect();
- Handle(Prs3d_LineAspect) aLineAspect = aDatumAspect->LineAspect(Prs3d_DP_XAxis);
- myHighlightLineAspect = new Prs3d_LineAspect (aHighlightColor, aLineAspect->Aspect()->Type(),
- aLineAspect->Aspect()->Width());
-
- return myHighlightLineAspect;
-}
-
-// =======================================================================
-// function : getHighlightPointAspect
-// purpose :
-// =======================================================================
-Handle(Prs3d_PointAspect) AIS_Trihedron::getHighlightPointAspect()
-{
- if (!myHighlightPointAspect.IsNull())
- return myHighlightPointAspect;
-
- Quantity_Color aHighlightColor = Quantity_NOC_GRAY80;
- if (!myHilightDrawer.IsNull())
- aHighlightColor = myHilightDrawer->Color();
- myHighlightPointAspect = new Prs3d_PointAspect (Aspect_TOM_PLUS, aHighlightColor, 1.0);
-
- return myHighlightPointAspect;
-}