}
}
-//=======================================================================
-//function : SetColor
-//purpose :
-//=======================================================================
-void AIS_InteractiveContext::SetColor (const Handle(AIS_InteractiveObject)& theIObj,
- const Quantity_NameOfColor theColor,
- const Standard_Boolean theToUpdateViewer)
-{
- SetColor (theIObj, Quantity_Color(theColor), theToUpdateViewer);
-}
-
//=======================================================================
//function : SetColor
//purpose :
return theIObj->HasColor();
}
-//=======================================================================
-//function : Color
-//purpose :
-//=======================================================================
-Quantity_NameOfColor AIS_InteractiveContext::Color (const Handle(AIS_InteractiveObject)& theIObj) const
-{
- return theIObj->Color();
-}
-
//=======================================================================
//function : Color
//purpose :
//purpose :
//=======================================================================
void AIS_InteractiveContext::SetMaterial (const Handle(AIS_InteractiveObject)& theIObj,
- const Graphic3d_NameOfMaterial theName,
+ const Graphic3d_MaterialAspect& theMaterial,
const Standard_Boolean theToUpdateViewer)
{
if (theIObj.IsNull())
}
setContextToObject (theIObj);
- theIObj->SetMaterial (theName);
+ theIObj->SetMaterial (theMaterial);
redisplayPrsRecModes (theIObj, theToUpdateViewer);
}
Handle(Prs3d_DatumAspect) aTrihAspect = myDefaultDrawer->DatumAspect();
const Standard_Real aLength = 100.0;
aTrihAspect->SetAxisLength (aLength, aLength, aLength);
- const Quantity_NameOfColor aColor = Quantity_NOC_LIGHTSTEELBLUE4;
- aTrihAspect->FirstAxisAspect() ->SetColor (aColor);
- aTrihAspect->SecondAxisAspect()->SetColor (aColor);
- aTrihAspect->ThirdAxisAspect() ->SetColor (aColor);
+ const Quantity_Color aColor = Quantity_NOC_LIGHTSTEELBLUE4;
+ aTrihAspect->LineAspect(Prs3d_DP_XAxis)->SetColor (aColor);
+ aTrihAspect->LineAspect(Prs3d_DP_YAxis)->SetColor (aColor);
+ aTrihAspect->LineAspect(Prs3d_DP_ZAxis)->SetColor (aColor);
Handle(Prs3d_PlaneAspect) aPlaneAspect = myDefaultDrawer->PlaneAspect();
const Standard_Real aPlaneLength = 200.0;
//=======================================================================
Standard_Real AIS_InteractiveContext::TrihedronSize() const
{
- return myDefaultDrawer->DatumAspect()->FirstAxisLength();
+ return myDefaultDrawer->DatumAspect()->AxisLength(Prs3d_DP_XAxis);
}
//=======================================================================