# Visualization
TKV2d
Prs2d

# Prs2d_Dimension Class Reference

Groups all dimensions
.

`#include <Prs2d_Dimension.hxx>`

Inheritance diagram for Prs2d_Dimension:

[legend]

## Public Member Functions

void | SetText (const TCollection_ExtendedString &aText)
| Sets the text to this dimension .
void | SetTextScale (const Standard_Real aTS)
| Sets the scale of text to this dimension .
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 | SetArrowType (const Prs2d_TypeOfArrow anArrT)
| Sets the type of arrows to this dimension .
void | SetArrowSides (const Prs2d_ArrowSide anArrS)
| Sets the number of arrows 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 .
void | SetTextAbsPos (const Standard_Real Xp, const Standard_Real Yp)
| Sets the CalcTxtPos(Standard_True) myAbsX=Xp myAbsY=Yp .
void | SetTextAbsAngle (const Standard_Real Ap)
| Sets the CalcTxtPos(Standard_True) myAbsAngle=Ap .
void | SetTextRelPos (const Standard_Real Xp, const Standard_Real Yp)
| Sets the CalcTxtPos(Standard_False) myAbsX=Xp myAbsY=Yp .
void | SetTextRelAngle (const Standard_Real Ap)
| Sets the CalcTxtPos(Standard_False) myAbsAngle=Ap .
TCollection_ExtendedString | Text () const
| Returns text of this dimension .
Standard_Real | TextAbsX () const
| Returns X - coordinat of text in absolute axis add by enk Wed Dec 11 10:34 2002 .
Standard_Real | TextAbsY () const
| Returns Y - coordinat of text in absolute axis add by enk Wed Dec 11 10:34 2002 .
Standard_Real | TextAbsAngle () const
| Returns angle of text in absolute axis add by enk Wed Dec 11 10:34 2002 .
Standard_Real | TextRelH () const
| Returns the horizontal position of text .
Standard_Real | TextRelV () const
| Returns the vertical position of text .
Standard_Real | TextRelAngle () const
| Returns the angle of text .
Standard_Real | TextScale () const
| Returns the scale of text of this dimension .
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 .
Prs2d_TypeOfArrow | ArrowType () const
| Indicates the type of arrows of this dimension .
Prs2d_ArrowSide | ArrowSides () const
| Indicates the number of arrows of this dimension .
Standard_Real | ArrowAngle () const
| Indicates the angle of arrow of this dimension .
Standard_Real | ArrowLength () const
| Indicates the length of arrow of this dimension .
Standard_Boolean | ArrowIsReversed () const
| Return true if arrows are reversed, false - in otherwise .
Standard_Boolean | IsDrawSymbol () const
| Return true if symbol is drawn, false - in otherwise .
Standard_Integer | SymbolCode () const
| Return ASCII code of the symbol .
Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d | ArrayOfFirstArrowPnt () const
Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d | ArrayOfSecondArrowPnt () const
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Protected Member Functions

Standard_EXPORT | Prs2d_Dimension (const Handle(Graphic2d_GraphicObject)&aGO, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale, const Standard_Real anArrAngle, const Standard_Real anArrLength, const Prs2d_TypeOfArrow anArrType, const Prs2d_ArrowSide anArrow, const Standard_Boolean IsRevArrow)
| creates a dimension
virtual Standard_EXPORT void | CalcTxtPos (const Standard_Boolean theFromAbs=Standard_False)=0

## Protected Attributes

TCollection_ExtendedString | myText
Standard_Real | myTextScale
Standard_Real | myTextPosH
Standard_Real | myTextPosV
Standard_Real | myTextAngle
Standard_Real | myAbsX
Standard_Real | myAbsY
Standard_Real | myAbsAngle
Standard_Integer | myTextFont
Standard_Integer | mySymbFont
TShort_Array1OfShortReal | myXVert1
TShort_Array1OfShortReal | myYVert1
TShort_Array1OfShortReal | myXVert2
TShort_Array1OfShortReal | myYVert2
Prs2d_TypeOfArrow | myArrType
Prs2d_ArrowSide | myArrow
Standard_Real | myArrowAng
Standard_Real | myArrowLen
Standard_Boolean | myIsRevArr
Standard_Boolean | myIsSymbol
Standard_Integer | mySymbCode

## Constructor & Destructor Documentation

Standard_EXPORT Prs2d_Dimension::Prs2d_Dimension | ( | const Handle(Graphic2d_GraphicObject)& | aGO,
|  | const TCollection_ExtendedString & | aText,
|  | const Standard_Real | aTxtScale,
|  | const Standard_Real | anArrAngle,
|  | const Standard_Real | anArrLength,
|  | const Prs2d_TypeOfArrow | anArrType,
|  | const Prs2d_ArrowSide | anArrow,
|  | const Standard_Boolean | IsRevArrow
| ) | `[protected]`

## Member Function Documentation

Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d Prs2d_Dimension::ArrayOfFirstArrowPnt | ( |  | ) | const

Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d Prs2d_Dimension::ArrayOfSecondArrowPnt | ( |  | ) | const

Standard_Real Prs2d_Dimension::ArrowAngle | ( |  | ) | const`[inline]`

Standard_Boolean Prs2d_Dimension::ArrowIsReversed | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::ArrowLength | ( |  | ) | const`[inline]`

Prs2d_ArrowSide Prs2d_Dimension::ArrowSides | ( |  | ) | const`[inline]`

Prs2d_TypeOfArrow Prs2d_Dimension::ArrowType | ( |  | ) | const`[inline]`

virtual Standard_EXPORT void Prs2d_Dimension::CalcTxtPos | ( | const Standard_Boolean | theFromAbs = `Standard_False` | ) | `[protected, pure virtual]`

| Implemented in Prs2d_Angle, Prs2d_Diameter, Prs2d_Length, Prs2d_Radius, and Prs2d_Repere.

void Prs2d_Dimension::DrawSymbol | ( | const Standard_Boolean | isDraw | ) | `[inline]`

Standard_Integer Prs2d_Dimension::FontOfSymb | ( |  | ) | const`[inline]`

Standard_EXPORT const Prs2d_Dimension::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from Graphic2d_Line. Reimplemented in Prs2d_Angle, Prs2d_Diameter, Prs2d_Length, Prs2d_Radius, and Prs2d_Repere.

Standard_Boolean Prs2d_Dimension::IsDrawSymbol | ( |  | ) | const`[inline]`

void Prs2d_Dimension::SetArrowSides | ( | const Prs2d_ArrowSide | anArrS | ) | `[inline]`

void Prs2d_Dimension::SetArrowType | ( | const Prs2d_TypeOfArrow | anArrT | ) | `[inline]`

void Prs2d_Dimension::SetFontOfSymb | ( | const Standard_Integer | aFS | ) | `[inline]`

void Prs2d_Dimension::SetSymbolCode | ( | const Standard_Integer | aCode | ) | `[inline]`

void Prs2d_Dimension::SetText | ( | const TCollection_ExtendedString & | aText | ) | `[inline]`

void Prs2d_Dimension::SetTextAbsAngle | ( | const Standard_Real | Ap | ) | `[inline]`

void Prs2d_Dimension::SetTextAbsPos | ( | const Standard_Real | Xp,
|  | const Standard_Real | Yp
| ) | `[inline]`

void Prs2d_Dimension::SetTextFont | ( | const Standard_Integer | aTF | ) | `[inline]`

void Prs2d_Dimension::SetTextRelAngle | ( | const Standard_Real | Ap | ) | `[inline]`

void Prs2d_Dimension::SetTextRelPos | ( | const Standard_Real | Xp,
|  | const Standard_Real | Yp
| ) | `[inline]`

void Prs2d_Dimension::SetTextScale | ( | const Standard_Real | aTS | ) | `[inline]`

Standard_Integer Prs2d_Dimension::SymbolCode | ( |  | ) | const`[inline]`

TCollection_ExtendedString Prs2d_Dimension::Text | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextAbsAngle | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextAbsX | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextAbsY | ( |  | ) | const`[inline]`

Standard_Integer Prs2d_Dimension::TextFont | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextRelAngle | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextRelH | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextRelV | ( |  | ) | const`[inline]`

Standard_Real Prs2d_Dimension::TextScale | ( |  | ) | const`[inline]`

## Field Documentation

Standard_Real Prs2d_Dimension::myAbsAngle `[protected]`

Standard_Real Prs2d_Dimension::myAbsX `[protected]`

Standard_Real Prs2d_Dimension::myAbsY `[protected]`

Prs2d_ArrowSide Prs2d_Dimension::myArrow `[protected]`

Standard_Real Prs2d_Dimension::myArrowAng `[protected]`

Standard_Real Prs2d_Dimension::myArrowLen `[protected]`

Prs2d_TypeOfArrow Prs2d_Dimension::myArrType `[protected]`

Standard_Boolean Prs2d_Dimension::myIsRevArr `[protected]`

Standard_Boolean Prs2d_Dimension::myIsSymbol `[protected]`

Standard_Integer Prs2d_Dimension::mySymbCode `[protected]`

Standard_Integer Prs2d_Dimension::mySymbFont `[protected]`

TCollection_ExtendedString Prs2d_Dimension::myText `[protected]`

Standard_Real Prs2d_Dimension::myTextAngle `[protected]`

Standard_Integer Prs2d_Dimension::myTextFont `[protected]`

Standard_Real Prs2d_Dimension::myTextPosH `[protected]`

Standard_Real Prs2d_Dimension::myTextPosV `[protected]`

Standard_Real Prs2d_Dimension::myTextScale `[protected]`

TShort_Array1OfShortReal Prs2d_Dimension::myXVert1 `[protected]`

TShort_Array1OfShortReal Prs2d_Dimension::myXVert2 `[protected]`

TShort_Array1OfShortReal Prs2d_Dimension::myYVert1 `[protected]`

TShort_Array1OfShortReal Prs2d_Dimension::myYVert2 `[protected]`

The documentation for this class was generated from the following files:

- Prs2d_Dimension.hxx
- Prs2d_Dimension.lxx