|
Open CASCADE Technology 6.5.2
|
Constructs the primitive Radius
#include <Prs2d_RadiusIndep.hxx>

Public Member Functions | |
| Prs2d_RadiusIndep (const Handle< Graphic2d_GraphicObject > &aGO, const gp_Pnt2d &anAttachPnt, const gp_Pnt2d &aCenter, const Standard_Real aRad, const TCollection_ExtendedString &aText, const Standard_Real aLength=10.0, const Prs2d_TypeOfRadius aTypeRad=Prs2d_TOR_STANDARD, const Standard_Real aTxtScale=1.0) | |
| Creates the radius of the circle <aCenter, aRad> passing through the point <anAttachPnt1> on the circle | |
| void | Values (gp_Pnt2d &anAttPnt, gp_Pnt2d &aCenter, Standard_Real &aRad, TCollection_ExtendedString &aText, Standard_Real &aLength, Prs2d_TypeOfRadius &aTypeRad, Standard_Real &aTxtScale) const |
| allows to get the properties of the radius | |
| void | SetText (const TCollection_ExtendedString &aTxt) |
| Defines the text | |
| void | SetTextScale (const Standard_Real aTxtScale) |
| Defines the scale factor of text | |
| void | SetTextFont (const Standard_Integer aTF) |
| Sets the index of the font of this text to this dimension | |
| void | SetFontOfSymb (const Standard_Integer aFS) |
| Sets the index of the font of the symbol to this dimension | |
| void | DrawSymbol (const Standard_Boolean isDraw) |
| Sets the flag for drawing additional symbol | |
| void | SetSymbolCode (const Standard_Integer aCode) |
| Sets the ASCII code of the symbol | |
| Standard_Integer | TextFont () const |
| Returns the index of the font of this text of this dimension | |
| Standard_Integer | FontOfSymb () const |
| Returns the index of the font of the symbol of this dimension | |
| Standard_Boolean | IsDrawSymbol () const |
| Return true if symbol is drawn, false - in otherwise | |
| Standard_Integer | SymbolCode () const |
| Return ASCII code of the symbol | |
| virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
| void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
| Draws the angle <me>. | |
| virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws element <anIndex> of the radius <me>. | |
| virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws vertex <anIndex> of the radius <me>. | |
| Standard_Boolean | Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle< Graphic2d_Drawer > &aDrawer) |
| Returns Standard_True if the radius <me> is picked, Standard_False if not. | |
| Prs2d_RadiusIndep::Prs2d_RadiusIndep | ( | const Handle< Graphic2d_GraphicObject > & | aGO, |
| const gp_Pnt2d & | anAttachPnt, | ||
| const gp_Pnt2d & | aCenter, | ||
| const Standard_Real | aRad, | ||
| const TCollection_ExtendedString & | aText, | ||
| const Standard_Real | aLength = 10.0, |
||
| const Prs2d_TypeOfRadius | aTypeRad = Prs2d_TOR_STANDARD, |
||
| const Standard_Real | aTxtScale = 1.0 |
||
| ) |
| void Prs2d_RadiusIndep::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| virtual void Prs2d_RadiusIndep::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anIndex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| void Prs2d_RadiusIndep::DrawSymbol | ( | const Standard_Boolean | isDraw | ) |
| virtual void Prs2d_RadiusIndep::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anIndex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| Standard_Integer Prs2d_RadiusIndep::FontOfSymb | ( | ) | const |
| Standard_Boolean Prs2d_RadiusIndep::IsDrawSymbol | ( | ) | const |
| Standard_Boolean Prs2d_RadiusIndep::Pick | ( | const Standard_ShortReal | X, |
| const Standard_ShortReal | Y, | ||
| const Standard_ShortReal | aPrecision, | ||
| const Handle< Graphic2d_Drawer > & | aDrawer | ||
| ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| virtual void Prs2d_RadiusIndep::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
| void Prs2d_RadiusIndep::SetFontOfSymb | ( | const Standard_Integer | aFS | ) |
| void Prs2d_RadiusIndep::SetSymbolCode | ( | const Standard_Integer | aCode | ) |
| void Prs2d_RadiusIndep::SetText | ( | const TCollection_ExtendedString & | aTxt | ) |
| void Prs2d_RadiusIndep::SetTextFont | ( | const Standard_Integer | aTF | ) |
| void Prs2d_RadiusIndep::SetTextScale | ( | const Standard_Real | aTxtScale | ) |
| Standard_Integer Prs2d_RadiusIndep::SymbolCode | ( | ) | const |
| Standard_Integer Prs2d_RadiusIndep::TextFont | ( | ) | const |
| void Prs2d_RadiusIndep::Values | ( | gp_Pnt2d & | anAttPnt, |
| gp_Pnt2d & | aCenter, | ||
| Standard_Real & | aRad, | ||
| TCollection_ExtendedString & | aText, | ||
| Standard_Real & | aLength, | ||
| Prs2d_TypeOfRadius & | aTypeRad, | ||
| Standard_Real & | aTxtScale | ||
| ) | const |
1.7.4