mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027756: Visualization - add Draw() method taking Graphic3d_Group to tools Prs3d_Arrow, Prs3d_Text
and deprecate Draw() methods taking Prs3d_Presentation.
This commit is contained in:
@@ -70,8 +70,7 @@ void DsgPrs::ComputeSymbol (const Handle(Prs3d_Presentation)& aPresentation,
|
||||
}
|
||||
case DsgPrs_AS_FIRSTAR:
|
||||
{
|
||||
|
||||
Prs3d_Arrow::Draw(aPresentation,
|
||||
Prs3d_Arrow::Draw(Prs3d_Root::CurrentGroup (aPresentation),
|
||||
pt1,
|
||||
dir1,
|
||||
LA->ArrowAspect()->Angle(),
|
||||
@@ -81,7 +80,7 @@ void DsgPrs::ComputeSymbol (const Handle(Prs3d_Presentation)& aPresentation,
|
||||
case DsgPrs_AS_LASTAR:
|
||||
{
|
||||
|
||||
Prs3d_Arrow::Draw(aPresentation,
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation),
|
||||
pt2,
|
||||
dir2,
|
||||
LA->ArrowAspect()->Angle(),
|
||||
@@ -91,12 +90,12 @@ void DsgPrs::ComputeSymbol (const Handle(Prs3d_Presentation)& aPresentation,
|
||||
|
||||
case DsgPrs_AS_BOTHAR:
|
||||
{
|
||||
Prs3d_Arrow::Draw(aPresentation,
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation),
|
||||
pt1,
|
||||
dir1,
|
||||
LA->ArrowAspect()->Angle(),
|
||||
LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw(aPresentation,
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation),
|
||||
pt2,
|
||||
dir2,
|
||||
LA->ArrowAspect()->Angle(),
|
||||
@@ -145,7 +144,7 @@ void DsgPrs::ComputeSymbol (const Handle(Prs3d_Presentation)& aPresentation,
|
||||
case DsgPrs_AS_FIRSTAR_LASTPT:
|
||||
{
|
||||
// an Arrow
|
||||
Prs3d_Arrow::Draw(aPresentation,
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation),
|
||||
pt1,
|
||||
dir1,
|
||||
LA->ArrowAspect()->Angle(),
|
||||
@@ -167,7 +166,7 @@ void DsgPrs::ComputeSymbol (const Handle(Prs3d_Presentation)& aPresentation,
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray (anArrayOfPoints);
|
||||
}
|
||||
// an Arrow
|
||||
Prs3d_Arrow::Draw(aPresentation,
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation),
|
||||
pt2,
|
||||
dir2,
|
||||
LA->ArrowAspect()->Angle(),
|
||||
|
@@ -171,7 +171,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
param = ElCLib::Parameter(aCircle2, tmpPnt);
|
||||
tmpPnt = ElCLib::Value(param, aCircle2);
|
||||
tmpPnt = tmpPnt.Translated(gp_Vec(0, 0, -2));
|
||||
Prs3d_Text::Draw(aPresentation, aDimensionAspect->TextAspect(), txt, tmpPnt); //add the TCollection_ExtendedString
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), aDimensionAspect->TextAspect(), txt, tmpPnt);
|
||||
|
||||
angle = 2. * M_PI - param ;
|
||||
if( param > OppParam )
|
||||
@@ -230,7 +230,8 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
sprintf(valcar,"%5.2f",theval);
|
||||
|
||||
Handle(Prs3d_DimensionAspect) LA = aDrawer->DimensionAspect();
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup (aPresentation);
|
||||
aGroup->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
|
||||
gp_Ax2 ax(CenterPoint,axisdir,dir1);
|
||||
gp_Circ cer(ax,CenterPoint.Distance(OffsetPoint));
|
||||
@@ -277,7 +278,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
for (Standard_Integer i = 1; i<=nbp; i++)
|
||||
aPrims->AddVertex(ElCLib::Value(udeb+ dteta*(i-1),cer));
|
||||
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,OffsetPoint);
|
||||
Prs3d_Text::Draw (aGroup, LA->TextAspect(), aText, OffsetPoint);
|
||||
|
||||
Standard_Real length = LA->ArrowAspect()->Length();
|
||||
if (length < Precision::Confusion()) length = 1.e-04;
|
||||
@@ -297,7 +298,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
gp_Vec v2(ptarr,ptarr3);
|
||||
const Standard_Real beta = v1.Angle(v2);
|
||||
dirarr.Rotate(ax1, beta);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,dirarr,LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (aGroup, ptarr, dirarr, LA->ArrowAspect()->Angle(), length);
|
||||
|
||||
aPrims->AddBound(2);
|
||||
aPrims->AddVertex(AttachmentPoint1);
|
||||
@@ -308,13 +309,13 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
ax1.SetLocation(ptarr);
|
||||
gp_Dir dirarr2(vecarr);
|
||||
dirarr2.Rotate(ax1,-beta);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,dirarr2,LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (aGroup, ptarr, dirarr2, LA->ArrowAspect()->Angle(), length);
|
||||
|
||||
aPrims->AddBound(2);
|
||||
aPrims->AddVertex(AttachmentPoint2);
|
||||
aPrims->AddVertex(ptarr);
|
||||
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
aGroup->AddPrimitiveArray (aPrims);
|
||||
}
|
||||
|
||||
|
||||
@@ -398,7 +399,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
DsgPrs::ComputeSymbol( aPresentation, LA, EndOfArrow1, EndOfArrow2, DirOfArrow1, DirOfArrow2, ArrowPrs );
|
||||
|
||||
// Drawing the text
|
||||
Prs3d_Text::Draw( aPresentation, LA->TextAspect(), aText, OffsetPoint );
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, OffsetPoint);
|
||||
|
||||
// Line from AttachmentPoint1 to end of Arrow1
|
||||
aPrims->AddVertex(AttachmentPoint1);
|
||||
@@ -514,7 +515,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
for (Standard_Integer i = 1; i<=nbp; i++)
|
||||
aPrims->AddVertex(ElCLib::Value(udeb+ dteta*(i-1),cer));
|
||||
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,OffsetPoint);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText,OffsetPoint);
|
||||
|
||||
Standard_Real length = LA->ArrowAspect()->Length();
|
||||
if (length < Precision::Confusion()) length = 1.e-04;
|
||||
@@ -533,7 +534,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
gp_Vec v2(ptarr,ptarr3);
|
||||
const Standard_Real beta = v1.Angle(v2);
|
||||
dirarr.Rotate(ax1, beta);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,dirarr,LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, dirarr, LA->ArrowAspect()->Angle(), length);
|
||||
|
||||
aPrims->AddBound(2);
|
||||
aPrims->AddVertex(AttachmentPoint1);
|
||||
@@ -544,7 +545,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
ax1.SetLocation(ptarr);
|
||||
gp_Dir dirarr2(vecarr);
|
||||
dirarr2.Rotate(ax1, - beta);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,dirarr2,LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, dirarr2, LA->ArrowAspect()->Angle(), length);
|
||||
|
||||
aPrims->AddBound(2);
|
||||
aPrims->AddVertex(AttachmentPoint2);
|
||||
@@ -625,7 +626,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
for (Standard_Integer i = 1; i<=nbp; i++)
|
||||
aPrims->AddVertex(ElCLib::Value(udeb+ dteta*(i-1),cer));
|
||||
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,OffsetPoint);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, OffsetPoint);
|
||||
|
||||
Standard_Real length = LA->ArrowAspect()->Length();
|
||||
if (length < Precision::Confusion()) length = 1.e-04;
|
||||
@@ -741,7 +742,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
for (Standard_Integer i = 1; i<=nbp; i++)
|
||||
aPrims->AddVertex(ElCLib::Value(udeb+ dteta*(i-1),cer));
|
||||
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,OffsetPoint);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, OffsetPoint);
|
||||
|
||||
Standard_Real length = LA->ArrowAspect()->Length();
|
||||
if (length < Precision::Confusion()) length = 1.e-04;
|
||||
@@ -761,7 +762,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
const Standard_Real beta = v1.Angle(v2);
|
||||
dirarr.Rotate(ax1, beta);
|
||||
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,dirarr,LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, dirarr, LA->ArrowAspect()->Angle(), length);
|
||||
|
||||
aPrims->AddBound(2);
|
||||
aPrims->AddVertex(AttachmentPoint1);
|
||||
@@ -772,7 +773,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
gp_Dir dirarr2(vecarr);
|
||||
dirarr2.Rotate(ax1, -beta);
|
||||
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,dirarr2,LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, dirarr2, LA->ArrowAspect()->Angle(), length);
|
||||
|
||||
aPrims->AddBound(2);
|
||||
aPrims->AddVertex(AttachmentPoint2);
|
||||
@@ -817,21 +818,21 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
case DsgPrs_AS_FIRSTAR:
|
||||
{
|
||||
ElCLib::D1(uc1,cer,ptarr,vecarr);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,gp_Dir(-vecarr),LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, gp_Dir(-vecarr), LA->ArrowAspect()->Angle(), length);
|
||||
break;
|
||||
}
|
||||
case DsgPrs_AS_LASTAR:
|
||||
{
|
||||
ElCLib::D1(uc2,cer,ptarr,vecarr);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,gp_Dir(vecarr),LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, gp_Dir(vecarr), LA->ArrowAspect()->Angle(), length);
|
||||
break;
|
||||
}
|
||||
case DsgPrs_AS_BOTHAR:
|
||||
{
|
||||
ElCLib::D1(uc1,cer,ptarr,vecarr);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,gp_Dir(-vecarr),LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, gp_Dir(-vecarr), LA->ArrowAspect()->Angle(), length);
|
||||
ElCLib::D1(uc2,cer,ptarr,vecarr);
|
||||
Prs3d_Arrow::Draw(aPresentation,ptarr,gp_Dir(vecarr),LA->ArrowAspect()->Angle(),length);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptarr, gp_Dir(vecarr), LA->ArrowAspect()->Angle(), length);
|
||||
break;
|
||||
}
|
||||
default: break;
|
||||
|
@@ -46,9 +46,9 @@ void DsgPrs_Chamf2dPresentation::Add(
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
gp_Dir ArrowDir(aPntAttach.XYZ()-aPntEnd.XYZ());
|
||||
Prs3d_Arrow::Draw(aPresentation,aPntAttach,ArrowDir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), aPntAttach, ArrowDir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntEnd);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntEnd);
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ void DsgPrs_Chamf2dPresentation::Add(
|
||||
aPrims->AddVertex(aPntEnd);
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntEnd);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntEnd);
|
||||
|
||||
gp_Dir ArrowDir(aPntAttach.XYZ()-aPntEnd.XYZ());
|
||||
gp_Dir ArrowDir1 = ArrowDir;
|
||||
|
@@ -55,7 +55,7 @@ void DsgPrs_DatumPrs::Add (const Handle(Prs3d_Presentation)& thePresentation,
|
||||
aGroup->AddPrimitiveArray(aPrims);
|
||||
|
||||
aGroup->SetPrimitivesAspect(theDrawer->ArrowAspect()->Aspect());
|
||||
Prs3d_Arrow::Draw(thePresentation,aPoint1,aXDir,anArrowAngle,anAxisLength/10.);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (thePresentation), aPoint1, aXDir, anArrowAngle, anAxisLength/10.);
|
||||
aGroup->SetPrimitivesAspect(theDrawer->TextAspect()->Aspect());
|
||||
Graphic3d_Vertex aVertex1(aPoint1.X(),aPoint1.Y(),aPoint1.Z());
|
||||
if (toDrawLabels)
|
||||
@@ -73,7 +73,7 @@ void DsgPrs_DatumPrs::Add (const Handle(Prs3d_Presentation)& thePresentation,
|
||||
aGroup->AddPrimitiveArray(aPrims);
|
||||
|
||||
aGroup->SetPrimitivesAspect(theDrawer->ArrowAspect()->Aspect());
|
||||
Prs3d_Arrow::Draw(thePresentation,aPoint2,aYDir,anArrowAngle,anAxisLength/10.);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (thePresentation), aPoint2, aYDir, anArrowAngle, anAxisLength/10.);
|
||||
aGroup->SetPrimitivesAspect(theDrawer->TextAspect()->Aspect());
|
||||
Graphic3d_Vertex aVertex2(aPoint2.X(),aPoint2.Y(),aPoint2.Z());
|
||||
if (toDrawLabels)
|
||||
@@ -93,7 +93,7 @@ void DsgPrs_DatumPrs::Add (const Handle(Prs3d_Presentation)& thePresentation,
|
||||
aGroup->AddPrimitiveArray(aPrims);
|
||||
|
||||
aGroup->SetPrimitivesAspect(theDrawer->ArrowAspect()->Aspect());
|
||||
Prs3d_Arrow::Draw(thePresentation,aPoint3,aZDir,anArrowAngle,anAxisLength/10.);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (thePresentation), aPoint3, aZDir, anArrowAngle, anAxisLength/10.);
|
||||
aGroup->SetPrimitivesAspect(theDrawer->TextAspect()->Aspect());
|
||||
Graphic3d_Vertex aVertex3(aPoint3.X(),aPoint3.Y(),aPoint3.Z());
|
||||
if (toDrawLabels)
|
||||
|
@@ -79,7 +79,7 @@ void DsgPrs_DiameterPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
TCollection_ExtendedString Text = aText;
|
||||
if(IsDiamSymbol)
|
||||
Text = TCollection_ExtendedString("\330 ") + aText; // VRO (2007-05-17) inserted a blank.
|
||||
Prs3d_Text::Draw(aPresentation, LA->TextAspect(), Text, AttachmentPoint);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), Text, AttachmentPoint);
|
||||
|
||||
// arrows
|
||||
gp_Dir arrdir (vecrap);
|
||||
@@ -191,7 +191,7 @@ void DsgPrs_DiameterPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
TCollection_ExtendedString Text = aText;
|
||||
if(IsDiamSymbol)
|
||||
Text = TCollection_ExtendedString("\330 ") + Text;// => \330 | \370?
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),Text,DrawPosition);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), Text, DrawPosition);
|
||||
|
||||
// Add presentation of arrow
|
||||
gp_Dir DirOfArrow(gp_Vec(DrawPosition, EndOfArrow).XYZ());
|
||||
|
@@ -71,7 +71,7 @@ void DsgPrs_EllipseRadiusPresentation::Add (const Handle(Prs3d_Presentation)& aP
|
||||
// value
|
||||
TCollection_ExtendedString Text(IsMaxRadius? "a = " : "b = ");
|
||||
Text += aText;
|
||||
Prs3d_Text::Draw(aPresentation, LA->TextAspect(), Text, aPosition );
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), Text, aPosition);
|
||||
|
||||
// arrows
|
||||
gp_Dir arrdir( gp_Vec( aCenter, anEndOfArrow));
|
||||
|
@@ -112,7 +112,7 @@ void DsgPrs_EqualDistancePresentation::Add( const Handle( Prs3d_Presentation )&
|
||||
TCollection_ExtendedString aText("==");
|
||||
|
||||
//Draw the text
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(), aText, aTextPos);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation),LA->TextAspect(), aText, aTextPos);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -91,6 +91,6 @@ void DsgPrs_EqualRadiusPresentation::Add( const Handle( Prs3d_Presentation )& aP
|
||||
}
|
||||
|
||||
//Draw the text
|
||||
Prs3d_Text::Draw(aPresentation, LA->TextAspect(),aText, aTextPos);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aTextPos);
|
||||
//ota === end ===
|
||||
}
|
||||
|
@@ -119,7 +119,7 @@ void DsgPrs_FilletRadiusPresentation::Add (const Handle(Prs3d_Presentation)& aPr
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// Drawing the text
|
||||
Prs3d_Text::Draw(aPresentation, LA->TextAspect(), aText, DrawPosition);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, DrawPosition);
|
||||
|
||||
// Add presentation of arrows
|
||||
DsgPrs::ComputeSymbol( aPresentation, LA, EndOfArrow, EndOfArrow, DirOfArrow, DirOfArrow, ArrowPrs );
|
||||
|
@@ -60,7 +60,7 @@ void DsgPrs_IdenticPresentation::Add( const Handle(Prs3d_Presentation)& aPresent
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray (anArrayOfPoints);
|
||||
|
||||
// texte
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntOffset);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntOffset);
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ void DsgPrs_IdenticPresentation::Add( const Handle(Prs3d_Presentation)& aPresent
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// texte
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntOffset);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntOffset);
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ void DsgPrs_IdenticPresentation::Add(const Handle(Prs3d_Presentation)& aPresenta
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// texte
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntOffset);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntOffset);
|
||||
}
|
||||
|
||||
// jfa 16/10/2000
|
||||
@@ -193,7 +193,7 @@ void DsgPrs_IdenticPresentation::Add(const Handle(Prs3d_Presentation)& aPresenta
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// texte
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntOffset);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntOffset);
|
||||
}
|
||||
// jfa 16/10/2000 end
|
||||
|
||||
@@ -238,6 +238,6 @@ void DsgPrs_IdenticPresentation::Add(const Handle(Prs3d_Presentation)& aPresenta
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// texte
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,aPntOffset);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, aPntOffset);
|
||||
}
|
||||
// jfa 10/10/2000 end
|
||||
|
@@ -91,18 +91,18 @@ void DsgPrs_LengthPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
|
||||
arrdir.Reverse();
|
||||
|
||||
// arrow 1 : 2nd group
|
||||
Prs3d_Arrow::Draw(aPresentation,Proj1,arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), Proj1, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
|
||||
// arrow 2 : 3rd group
|
||||
Prs3d_Arrow::Draw(aPresentation,Proj2,arrdir.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), Proj2, arrdir.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
|
||||
// text : 4th group
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,offp);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, offp);
|
||||
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
|
||||
@@ -175,7 +175,7 @@ void DsgPrs_LengthPresentation::Add( const Handle(Prs3d_Presentation)& aPresenta
|
||||
DsgPrs::ComputeSymbol( aPresentation, LA, EndOfArrow1, EndOfArrow2, DirOfArrow1, DirOfArrow1.Reversed(), ArrowPrs );
|
||||
|
||||
// Drawing the text
|
||||
Prs3d_Text::Draw( aPresentation, LA->TextAspect(), aText, OffsetPoint );
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, OffsetPoint);
|
||||
|
||||
// Line from AttachmentPoint1 to end of Arrow1
|
||||
aPrims->AddVertex(AttachmentPoint1);
|
||||
@@ -258,7 +258,7 @@ void DsgPrs_LengthPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// text
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,offp);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, offp);
|
||||
|
||||
// symbols at the extremities of the face
|
||||
DsgPrs::ComputeSymbol(aPresentation,LA,Proj1,Proj2,arrdir,arrdir.Reversed(),ArrowPrs);
|
||||
@@ -326,7 +326,7 @@ void DsgPrs_LengthPresentation::Add( const Handle(Prs3d_Presentation)& aPresenta
|
||||
DsgPrs::ComputeSymbol( aPresentation, LA, AttachmentPoint1, EndOfArrow2, DirOfArrow1, DirOfArrow1.Reversed(), ArrowPrs );
|
||||
|
||||
// Drawing the text
|
||||
Prs3d_Text::Draw( aPresentation, LA->TextAspect(), aText, OffsetPoint );
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, OffsetPoint);
|
||||
|
||||
// Two curves from end of Arrow2 to AttachmentPoint2
|
||||
Standard_Real Alpha, delta;
|
||||
@@ -375,21 +375,21 @@ void DsgPrs_LengthPresentation::Add (const Handle(Prs3d_Presentation)& aPrs,
|
||||
switch(ArrowPrs)
|
||||
{
|
||||
case DsgPrs_AS_LASTAR:
|
||||
Prs3d_Arrow::Draw(aPrs,Pt2,gp_Dir(gp_Vec(Pt1,Pt2)),
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPrs), Pt2, gp_Dir(gp_Vec(Pt1,Pt2)),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Angle(),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Length());
|
||||
break;
|
||||
case DsgPrs_AS_FIRSTAR:
|
||||
Prs3d_Arrow::Draw(aPrs,Pt1,gp_Dir(gp_Vec(Pt2,Pt1)),
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPrs), Pt1, gp_Dir(gp_Vec(Pt2,Pt1)),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Angle(),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Length());
|
||||
break;
|
||||
case DsgPrs_AS_BOTHAR:
|
||||
V = gp_Vec(Pt1,Pt2);
|
||||
Prs3d_Arrow::Draw(aPrs,Pt2,gp_Dir(V),
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPrs), Pt2, gp_Dir(V),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Angle(),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw(aPrs,Pt1,gp_Dir(V.Reversed()),
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPrs), Pt1, gp_Dir(V.Reversed()),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Angle(),
|
||||
aDrawer->DimensionAspect()->ArrowAspect()->Length());
|
||||
break;
|
||||
|
@@ -80,7 +80,7 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
|
||||
// texte
|
||||
TCollection_ExtendedString aText(" (+)");
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,Position);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, Position);
|
||||
}
|
||||
|
||||
if ( !AttachPoint.IsEqual(MidPoint, Precision::Confusion()) )
|
||||
@@ -152,7 +152,7 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
|
||||
// texte
|
||||
TCollection_ExtendedString aText (" (+)");
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,Position);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, Position);
|
||||
}
|
||||
|
||||
if ( !AttachPoint.IsEqual(MidPoint, Precision::Confusion()) )
|
||||
@@ -226,7 +226,7 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
|
||||
// texte
|
||||
TCollection_ExtendedString aText (" (+)");
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,Position);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, Position);
|
||||
}
|
||||
|
||||
if ( !AttachPoint.IsEqual(MidPoint, Precision::Confusion()) )
|
||||
@@ -302,7 +302,7 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
|
||||
// texte
|
||||
TCollection_ExtendedString aText (" (+)");
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,Position);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, Position);
|
||||
}
|
||||
|
||||
if ( !AttachPoint.IsEqual(MidPoint, Precision::Confusion()) )
|
||||
|
@@ -98,8 +98,8 @@ void DsgPrs_OffsetPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
|
||||
|
||||
if (DimNulle)
|
||||
{
|
||||
Prs3d_Arrow::Draw(aPresentation,offp,L4.Direction(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw(aPresentation,offp,L4.Direction().Reversed(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), offp, L4.Direction(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), offp, L4.Direction().Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -110,7 +110,7 @@ void DsgPrs_OffsetPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
|
||||
arrdir.Reverse();
|
||||
|
||||
// fleche 1 : 2eme groupe
|
||||
Prs3d_Arrow::Draw(aPresentation,Proj1,arrdir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), Proj1, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
@@ -126,7 +126,7 @@ void DsgPrs_OffsetPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
|
||||
// texte : 4eme groupe
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,offp);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, offp);
|
||||
}
|
||||
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
|
@@ -87,18 +87,18 @@ void DsgPrs_ParalPresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
arrdir.Reverse();
|
||||
|
||||
// arrow 1 : 2nd group
|
||||
Prs3d_Arrow::Draw(aPresentation,Proj1,arrdir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), Proj1, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
|
||||
// arrow 2 : 3rd group
|
||||
Prs3d_Arrow::Draw(aPresentation,Proj2,arrdir.Reversed(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), Proj2, arrdir.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
|
||||
// text : 4th group
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,offp);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, offp);
|
||||
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
|
||||
@@ -180,7 +180,7 @@ void DsgPrs_ParalPresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// text
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,offp);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, offp);
|
||||
|
||||
//arrows
|
||||
DsgPrs::ComputeSymbol(aPresentation,LA,Proj1,Proj2,arrdir,arrdir.Reversed(),ArrowPrs);
|
||||
|
@@ -121,10 +121,10 @@ void DsgPrs_RadiusPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
|
||||
arrdir.Reverse();
|
||||
|
||||
// fleche
|
||||
Prs3d_Arrow::Draw(aPresentation,ptoncirc,arrdir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), ptoncirc, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
// texte
|
||||
Prs3d_Text::Draw(aPresentation,LA->TextAspect(),aText,attpoint);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, attpoint);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -155,7 +155,7 @@ void DsgPrs_RadiusPresentation::Add( const Handle(Prs3d_Presentation)& aPresenta
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->AddPrimitiveArray(aPrims);
|
||||
|
||||
// text
|
||||
Prs3d_Text::Draw( aPresentation, LA->TextAspect(), aText, AttachmentPoint );
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), LA->TextAspect(), aText, AttachmentPoint);
|
||||
|
||||
gp_Dir ArrowDir = gce_MakeDir( LineOrigin , LineEnd );
|
||||
if (reverseArrow)
|
||||
|
@@ -257,5 +257,5 @@ void DsgPrs_ShapeDirPresentation::Add(const Handle(Prs3d_Presentation)& prs,
|
||||
aPrims->AddVertex(pt2);
|
||||
Prs3d_Root::CurrentGroup(prs)->AddPrimitiveArray(aPrims);
|
||||
|
||||
Prs3d_Arrow::Draw(prs, pt2, dir, M_PI/180.*10., leng*0.3);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (prs), pt2, dir, M_PI/180.*10., leng*0.3);
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ void DsgPrs_SymbPresentation::Add (const Handle(Prs3d_Presentation)& aPresentati
|
||||
Handle(Prs3d_DimensionAspect) LA = aDrawer->DimensionAspect();
|
||||
Handle(Prs3d_TextAspect) TA = LA->TextAspect();
|
||||
TA->SetColor(Quantity_NOC_GREEN);
|
||||
Prs3d_Text::Draw(aPresentation,TA,aText, OffsetPoint);
|
||||
Prs3d_Text::Draw (Prs3d_Root::CurrentGroup (aPresentation), TA, aText, OffsetPoint);
|
||||
|
||||
// 2eme groupe : marker
|
||||
Handle(Geom_CartesianPoint) theP = new Geom_CartesianPoint(OffsetPoint);
|
||||
|
@@ -334,10 +334,10 @@ void DsgPrs_SymmetricPresentation::Add (const Handle(Prs3d_Presentation)& aPrese
|
||||
gp_Dir arrdir = L3.Direction().Reversed();
|
||||
if (outside) arrdir.Reverse();
|
||||
// arrow 1 ----
|
||||
Prs3d_Arrow::Draw(aPresentation,P1,arrdir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), P1, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
// arrow 2 ----
|
||||
Prs3d_Arrow::Draw(aPresentation,P2,arrdir.Reversed(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), P2, arrdir.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
//| SYMBOL OF SYMMETRY |
|
||||
@@ -581,10 +581,10 @@ void DsgPrs_SymmetricPresentation::Add (const Handle(Prs3d_Presentation)& aPrese
|
||||
gp_Dir arrdir = L3.Direction().Reversed();
|
||||
if (outside) arrdir.Reverse();
|
||||
// arrow 1 ----
|
||||
Prs3d_Arrow::Draw(aPresentation,P1,arrdir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), P1, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
// arrow 2 ----
|
||||
Prs3d_Arrow::Draw(aPresentation,P2,arrdir.Reversed(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), P2, arrdir.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
//| SYMBOL OF SYMMETRY |
|
||||
@@ -797,10 +797,10 @@ void DsgPrs_SymmetricPresentation::Add (const Handle(Prs3d_Presentation)& aPrese
|
||||
gp_Dir arrdir = L3.Direction().Reversed();
|
||||
if (outside) arrdir.Reverse();
|
||||
// arrow 1 ----
|
||||
Prs3d_Arrow::Draw(aPresentation,P1,arrdir,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), P1, arrdir, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
// arrow 2 ----
|
||||
Prs3d_Arrow::Draw(aPresentation,P2,arrdir.Reversed(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), P2, arrdir.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
//==== POINTS ================
|
||||
//Marker of localization of attachment points:
|
||||
|
@@ -62,10 +62,10 @@ void DsgPrs_TangentPresentation::Add (const Handle(Prs3d_Presentation)& aPresent
|
||||
// fleche 1 :
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
Prs3d_Arrow::Draw(aPresentation,p1,aDirection,LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), p1, aDirection, LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
|
||||
// fleche 2
|
||||
Prs3d_Root::NewGroup(aPresentation);
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->SetPrimitivesAspect(LA->LineAspect()->Aspect());
|
||||
Prs3d_Arrow::Draw(aPresentation,p2,aDirection.Reversed(),LA->ArrowAspect()->Angle(),LA->ArrowAspect()->Length());
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), p2, aDirection.Reversed(), LA->ArrowAspect()->Angle(), LA->ArrowAspect()->Length());
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@ void DsgPrs_XYZAxisPresentation::Add(
|
||||
aPrims->AddVertex(aPlast);
|
||||
G->AddPrimitiveArray(aPrims);
|
||||
|
||||
Prs3d_Arrow::Draw(aPresentation,aPlast,aDir,M_PI/180.*10.,aVal/10.);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), aPlast,aDir, M_PI/180.*10., aVal/10.);
|
||||
|
||||
Graphic3d_Vertex a2(aPlast.X(),aPlast.Y(),aPlast.Z());
|
||||
Prs3d_Root::CurrentGroup(aPresentation)->Text(aText,a2,1./81.);
|
||||
@@ -74,7 +74,7 @@ void DsgPrs_XYZAxisPresentation::Add(const Handle(Prs3d_Presentation)& aPresenta
|
||||
G->AddPrimitiveArray(aPrims);
|
||||
|
||||
G->SetPrimitivesAspect( anArrowAspect->Aspect() );
|
||||
Prs3d_Arrow::Draw(aPresentation,aPlast,aDir,M_PI/180.*10.,aVal/10.);
|
||||
Prs3d_Arrow::Draw (Prs3d_Root::CurrentGroup (aPresentation), aPlast, aDir, M_PI/180.*10., aVal/10.);
|
||||
|
||||
G->SetPrimitivesAspect(aTextAspect->Aspect());
|
||||
Graphic3d_Vertex a2(aPlast.X(),aPlast.Y(),aPlast.Z());
|
||||
|
Reference in New Issue
Block a user