1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0022751: Issues around Prs3d_TextAspect::Print()

This commit is contained in:
dln
2012-03-13 14:11:29 +04:00
committed by bugmaster
parent 8413a813df
commit 8ca7beb8ad
45 changed files with 23 additions and 1932 deletions

View File

@@ -49,7 +49,6 @@ is
SetArrowAspect(me: mutable; anAspect: ArrowAspect from Prs3d) is static;
---Purpose: Sets how an arrow head which points to an angle will be displayed.
Print(me; s: in out OStream from Standard) is static;
fields

View File

@@ -28,12 +28,3 @@ void Prs3d_AngleAspect::SetTextAspect (
const Handle(Prs3d_TextAspect)& anAspect) {
myTextAspect = anAspect;
}
void Prs3d_AngleAspect::Print (Standard_OStream& s) const {
s << "AngleAspect: " << endl;
s << " " ; myLineAspect->Print(s); s << endl;
s << " arrow " ; myArrowAspect->Print(s); s << endl;
s << " " ; myTextAspect->Print(s); s << endl;
}

View File

@@ -54,9 +54,6 @@ is
Aspect(me) returns AspectLine3d from Graphic3d;
Print( me; s: in out OStream from Standard)
is virtual;
fields
myArrowAspect: AspectLine3d from Graphic3d;
myAngle: PlaneAngle from Quantity;

View File

@@ -41,12 +41,6 @@ Quantity_Length Prs3d_ArrowAspect::Length () const
return myLength;
}
void Prs3d_ArrowAspect::Print (Standard_OStream& s) const {
s << "ArrowAspect: Length: " << myLength << " Angle: " << myAngle;
}
#ifdef IMP120100
void Prs3d_ArrowAspect::SetColor(const Quantity_Color &aColor) {
myArrowAspect->SetColor(aColor);

View File

@@ -43,8 +43,7 @@ is
---Purpose: Returns the length of the displayed second axis.
ThirdAxisLength(me) returns Length from Quantity;
---Purpose: Returns the length of the displayed third axis.
Print(me; s: in out OStream from Standard) is static;
---Purpose: Returns the length of the displayed third axis.
fields

View File

@@ -79,26 +79,3 @@ Quantity_Length Prs3d_DatumAspect::ThirdAxisLength () const {
return myThirdAxisLength;
}
void Prs3d_DatumAspect::Print (Standard_OStream& s) const {
s << "DatumAspect: " << endl;
s << " FirstAxis: length " << myFirstAxisLength << " ";
myFirstAxisAspect->Print(s);
s << endl;
s << " SecondAxis: length " << mySecondAxisLength << " ";
mySecondAxisAspect->Print(s);
s << endl;
s << " ThirdAxis: length " << myThirdAxisLength << " ";
myThirdAxisAspect->Print(s);
s << endl;
if (myDrawFirstAndSecondAxis)
s << " Draws first and second axis";
else
s << " Does not draw first and second axis";
if (myDrawThirdAxis)
s << " Draws third axis";
else
s << " Does not draw third axis";
}

View File

@@ -485,9 +485,7 @@ is
SetSectionAspect(me:mutable;anAspect: LineAspect from Prs3d)
is virtual;
---Purpose: Sets the parameter anAspect for display attributes of sections.
Print (me; s: in out OStream from Standard)
is virtual;
---Purpose: Sets the parameter anAspect for display attributes of sections.
fields
myUIsoAspect: IsoAspect from Prs3d is protected;

View File

@@ -420,84 +420,3 @@ Handle (Prs3d_LineAspect) Prs3d_Drawer::SectionAspect () {
void Prs3d_Drawer::SetSectionAspect ( const Handle(Prs3d_LineAspect)& anAspect) {
mySectionAspect = anAspect;
}
void Prs3d_Drawer::Print (Standard_OStream& s) const {
s << "Drawer: " << endl;
s << "UIsoAspect: " ;
myUIsoAspect->Print(s);
s << endl;
s << "VIsoAspect: " ;
myVIsoAspect->Print(s);
s << endl;
s << "LineAspect: " ;
myLineAspect->Print(s);
s << endl;
if (myDrawHiddenLine)
s << "draws hidden lines" << endl;
else
s << "does not draw hidden lines" << endl;
s << "HiddenLineAspect: ";
myHiddenLineAspect->Print(s);
s << endl ;
s << "SeenLineAspect: ";
mySeenLineAspect->Print(s);
s << endl;
s << "WireAspect: ";
myWireAspect->Print(s);
s << endl;
s << "FreeBoundaryAspect: ";
myFreeBoundaryAspect->Print(s);
s << endl;
s << "UnFreeBoundaryAspect: ";
myUnFreeBoundaryAspect->Print(s);
s << endl;
s << "SectionAspect: ";
mySectionAspect->Print(s);
s << endl;
s << "DatumAspect: ";
myDatumAspect->Print(s);
s << endl;
s << "VectorAspect: ";
myVectorAspect->Print(s);
s << endl;
s << "PointAspect: ";
myPointAspect->Print(s);
s << endl;
s << "TextAspect: ";
myTextAspect->Print(s);
s << endl;
s << "ArrowAspect: ";
myArrowAspect->Print(s);
s << endl;
s << "LengthAspect: ";
myLengthAspect->Print(s);
s << "AngleAspect: ";
myAngleAspect->Print(s);
if (myTypeOfDeflection == Aspect_TOD_RELATIVE)
s << "TypeOfDeflection: TOD_Relative; Coefficient: " << myDeviationCoefficient << endl;
else
s << "TypeOfDeflection: TOD_Absolute; Maximal chordial deviation: " << myChordialDeviation << endl;
s << "HLRAngle: " << myHLRAngle;
}

View File

@@ -47,8 +47,6 @@ is
Number (me) returns Integer from Standard
---Purpose: returns the number of U or V isoparametric curves drawn for a single face.
is static;
Print(me; s: in out OStream from Standard) is redefined;
fields

View File

@@ -25,10 +25,3 @@ void Prs3d_IsoAspect::SetNumber (const Standard_Integer aNumber) {
}
Standard_Integer Prs3d_IsoAspect::Number () const {return myNumber;}
void Prs3d_IsoAspect::Print(Standard_OStream& s) const {
s << "IsoAspect: " << myNumber << " ";
Prs3d_LineAspect::Print(s);
}

View File

@@ -58,8 +58,7 @@ is
---Purpose: Sets the DrawSecondArrow attributes to active.
DrawSecondArrow(me) returns Boolean from Standard is static;
---Purpose: Returns true if the second arrow can be drawn.
Print(me; s: in out OStream from Standard) is static;
---Purpose: Returns true if the second arrow can be drawn.
fields

View File

@@ -51,12 +51,3 @@ void Prs3d_LengthAspect::SetDrawSecondArrow (const Standard_Boolean draw) {
Standard_Boolean Prs3d_LengthAspect::DrawSecondArrow () const {
return myDrawSecondArrow;
}
void Prs3d_LengthAspect::Print (Standard_OStream& s) const {
s << "LengthAspect: " << endl;
s << " " ; myLineAspect->Print(s); s << endl;
s << " First arrow " ; myArrow1Aspect->Print(s); s << endl;
s << " Second arrow " ; myArrow2Aspect->Print(s); s << endl;
s << " " ; myTextAspect->Print(s); s << endl;
}

View File

@@ -65,10 +65,7 @@ is
is static;
--- Purpose: Returns the line aspect. This is defined as the set of
-- color, type and thickness attributes.
Print( me; s: in out OStream from Standard)
is virtual;
fields
myAspect: AspectLine3d from Graphic3d;

View File

@@ -40,28 +40,3 @@ void Prs3d_LineAspect::SetWidth(const Standard_Real aWidth){
Handle (Graphic3d_AspectLine3d) Prs3d_LineAspect::Aspect () const {
return myAspect;
}
void Prs3d_LineAspect::Print (Standard_OStream& s) const {
Quantity_Color C;
Aspect_TypeOfLine T;
Standard_Real W;
myAspect->Values(C,T,W);
switch (T) {
case Aspect_TOL_SOLID:
s << "LineAspect: " << Quantity_Color::StringName(C.Name()) << " SOLID " << W;
break;
case Aspect_TOL_DASH:
s << "LineAspect: " << Quantity_Color::StringName(C.Name()) << " DASH " << W;
break;
case Aspect_TOL_DOT:
s << "LineAspect: " << Quantity_Color::StringName(C.Name()) << " DOT " << W;
break;
case Aspect_TOL_DOTDASH:
s << "LineAspect: " << Quantity_Color::StringName(C.Name()) << " DOTDASH " << W;
break;
case Aspect_TOL_USERDEFINED:
s << "LineAspect: " << Quantity_Color::StringName(C.Name()) << " USERDEFINED " << W;
break;
}
}

View File

@@ -64,8 +64,6 @@ is
Aspect(me) returns AspectMarker3d from Graphic3d
is static;
Print( me; s: in out OStream from Standard);
GetTextureSize (me:mutable; AWidth : out Integer from Standard;
AHeight : out Integer from Standard);
---Level: Public

View File

@@ -50,59 +50,7 @@ void Prs3d_PointAspect::SetScale(const Standard_Real aScale){
Handle (Graphic3d_AspectMarker3d) Prs3d_PointAspect::Aspect () const {
return myAspect;
}
void Prs3d_PointAspect::Print (Standard_OStream& s) const {
Quantity_Color C;
Aspect_TypeOfMarker T;
Standard_Real S;
myAspect->Values(C,T,S);
switch (T) {
case Aspect_TOM_POINT:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " POINT " << S;
break;
case Aspect_TOM_PLUS:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " PLUS " << S;
break;
case Aspect_TOM_STAR:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " STAR " << S;
break;
case Aspect_TOM_O:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " O " << S;
break;
case Aspect_TOM_X:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " X " << S;
break;
case Aspect_TOM_O_POINT:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " O_POINT " << S;
break;
case Aspect_TOM_O_PLUS:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " O_PLUS " << S;
break;
case Aspect_TOM_O_STAR:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " O_STAR " << S;
break;
case Aspect_TOM_O_X:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " O_X " << S;
break;
case Aspect_TOM_BALL:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " BALL " << S;
break;
case Aspect_TOM_RING1:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " RING1 " << S;
break;
case Aspect_TOM_RING2:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " RING2 " << S;
break;
case Aspect_TOM_RING3:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " RING3 " << S;
break;
case Aspect_TOM_USERDEFINED:
s << "PointAspect: " << Quantity_Color::StringName(C.Name()) << " USERDEFINED " << S;
break;
default:
break;
}
}
void Prs3d_PointAspect::GetTextureSize(Standard_Integer& AWidth, Standard_Integer& AHeight)
{
myAspect->GetTextureSize( AWidth, AHeight);

View File

@@ -91,8 +91,7 @@ is
-- - color
-- - font
-- - height/width ratio, that is, the expansion factor, and
-- - space between characters.
Print( me; s: in out OStream from Standard);
-- - space between characters.
fields
myTextAspect: AspectText3d from Graphic3d;

View File

@@ -82,20 +82,3 @@ Graphic3d_TextPath Prs3d_TextAspect::Orientation () const {return myOrientation;
Handle(Graphic3d_AspectText3d) Prs3d_TextAspect::Aspect() const {
return myTextAspect;
}
void Prs3d_TextAspect::Print (Standard_OStream& s) const {
Quantity_Color C;
Standard_CString F;
Standard_Real Ratio;
Standard_Real Space;
myTextAspect->Values(C,F,Ratio,Space);
Standard_CString FontName;
strcpy((char*)FontName,(char*)F);
s << "TextAspect:" << Quantity_Color::StringName(C.Name()) << " Font: " << FontName << " Ratio: " << Ratio << " Space: " << Space;
}