// Display box
aGroup = Prs3d_Root::NewGroup (thePrs);
aGroup->SetGroupPrimitivesAspect (myDrawer->ShadingAspect()->Aspect());
+ Handle(Graphic3d_Group) aTextGroup = Prs3d_Root::NewGroup (thePrs);
Standard_Integer anIt = 1;
for (; anIt < SIDE_INDEX; anIt++)
{
Handle(Side) aPart = Handle(Side)::DownCast (myParts.ChangeFromIndex (anIt));
- aPart->Display (thePrsMgr, aGroup, myDrawer->TextAspect());
+ aPart->Display (thePrsMgr, aGroup, aTextGroup, myDrawer->TextAspect());
aPart->SetTransformPersistence (TransformPersistence());
}
//purpose :
//=======================================================================
void AIS_ViewCube::Side::Display (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
- const Handle(Graphic3d_Group)& theGroup,
- const Handle(Prs3d_TextAspect)& theTextAspect)
+ const Handle(Graphic3d_Group)& theGroup,
+ const Handle(Graphic3d_Group)& theTextGroup,
+ const Handle(Prs3d_TextAspect)& theTextAspect)
{
Reset();
aTool.FillArray (anArray, aTri);
theGroup->AddPrimitiveArray (anArray);
- Prs3d_Text::Draw (theGroup, theTextAspect, myText, aTextPosition);
+ Prs3d_Text::Draw (theTextGroup, theTextAspect, myText, aTextPosition);
if (myHighlightPresentation.IsNull())
{
//! @param theTextAspect [in] text style.
void Display (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
const Handle(Graphic3d_Group)& theGroup,
+ const Handle(Graphic3d_Group)& theTextGroup,
const Handle(Prs3d_TextAspect)& theTextAspect);
protected: