# Visualization
TKV3d
DsgPrs

# DsgPrs_LengthPresentation Class Reference

Framework for displaying lengths.
The length displayed is indicated by line segments
and text alone or by a combination of line segment,
text and arrows at either or both of its ends.
.

`#include <DsgPrs_LengthPresentation.hxx>`

## Public Member Functions

void * | operator new (size_t, void *anAddress)
void * | operator new (size_t size)
void | operator delete (void *anAddress)

## Static Public Member Functions

static Standard_EXPORT void | Add (const Handle(Prs3d_Presentation)&aPresentation, const Handle(Prs3d_Drawer)&aDrawer, const TCollection_ExtendedString &aText, const gp_Pnt &AttachmentPoint1, const gp_Pnt &AttachmentPoint2, const gp_Dir &aDirection, const gp_Pnt &OffsetPoint)
| Draws a line segment representing a length in the display aPresentation. This segment joins the points AttachmentPoint1 and AttachmentPoint2, along the direction aDirection. The text aText will be displayed at the offset point OffsetPoint. The line and text attributes are specified by the attribute manager aDrawer. .
static Standard_EXPORT void | Add (const Handle(Prs3d_Presentation)&aPresentation, const Handle(Prs3d_Drawer)&aDrawer, const TCollection_ExtendedString &aText, const gp_Pnt &AttachmentPoint1, const gp_Pnt &AttachmentPoint2, const gp_Dir &aDirection, const gp_Pnt &OffsetPoint, const DsgPrs_ArrowSide ArrowSide)

Draws a line segment representing a length in the
display aPresentation.
This segment joins the points AttachmentPoint1 and
AttachmentPoint2, along the direction aDirection.
The text aText will be displayed at the offset point
OffsetPoint. The value of the enumeration ArrowSide
controls whether arrows will be displayed at either or
both ends of the length.
The line, text and arrow attributes are specified by the
attribute manager aDrawer.
.

static Standard_EXPORT void | Add (const Handle(Prs3d_Presentation)&aPresentation, const Handle(Prs3d_Drawer)&aDrawer, const TCollection_ExtendedString &aText, const gp_Pnt &AttachmentPoint1, const gp_Pnt &AttachmentPoint2, const gp_Pln &PlaneOfFaces, const gp_Dir &aDirection, const gp_Pnt &OffsetPoint, const DsgPrs_ArrowSide ArrowSide)

Draws a line segment representing a length in the
display aPresentation.
This segment joins the points AttachmentPoint1 and
AttachmentPoint2, along the direction aDirection.
The text aText will be displayed at the offset point
OffsetPoint. The value of the enumeration ArrowSide
controls whether arrows will be displayed at either or
both ends of the length.
The plane PlaneOfFaces is used if length is null.
The line, text and arrow attributes are specified by the
attribute manager aDrawer.
.

static Standard_EXPORT void | Add (const Handle(Prs3d_Presentation)&aPresentation, const Handle(Prs3d_Drawer)&aDrawer, const TCollection_ExtendedString &aText, const Handle(Geom_Surface)&SecondSurf, const gp_Pnt &AttachmentPoint1, const gp_Pnt &AttachmentPoint2, const gp_Dir &aDirection, const gp_Pnt &OffsetPoint, const DsgPrs_ArrowSide ArrowSide)

Draws a line segment representing a length in the
display aPresentation.
This segment joins the points AttachmentPoint1 and
AttachmentPoint2, along the direction
aDirection. AttachmentPoint2 lies on the curvilinear
faces SecondSurf. The text aText will be displayed at
the offset point OffsetPoint. The value of the
enumeration ArrowSide controls whether arrows will
be displayed at either or both ends of the length.
The line, text and arrow attributes are specified by the
attribute manager aDrawer.
.

static Standard_EXPORT void | Add (const Handle(Prs3d_Presentation)&aPresentation, const Handle(Prs3d_Drawer)&aDrawer, const gp_Pnt &Pt1, const gp_Pnt &Pt2, const DsgPrs_ArrowSide ArrowSide)
| Draws a line segment representing a length in the display aPresentation. This segment joins the points AttachmentPoint1 and AttachmentPoint2, along the direction aDirection. The value of the enumeration ArrowSide controls whether arrows will be displayed at either or both ends of the length. The line and arrow attributes are specified by the attribute manager aDrawer. .

## Member Function Documentation

static Standard_EXPORT void DsgPrs_LengthPresentation::Add | ( | const Handle(Prs3d_Presentation)& | aPresentation,
|  | const Handle(Prs3d_Drawer)& | aDrawer,
|  | const gp_Pnt & | Pt1,
|  | const gp_Pnt & | Pt2,
|  | const DsgPrs_ArrowSide | ArrowSide
| ) | `[static]`

static Standard_EXPORT void DsgPrs_LengthPresentation::Add | ( | const Handle(Prs3d_Presentation)& | aPresentation,
|  | const Handle(Prs3d_Drawer)& | aDrawer,
|  | const TCollection_ExtendedString & | aText,
|  | const Handle(Geom_Surface)& | SecondSurf,
|  | const gp_Pnt & | AttachmentPoint1,
|  | const gp_Pnt & | AttachmentPoint2,
|  | const gp_Dir & | aDirection,
|  | const gp_Pnt & | OffsetPoint,
|  | const DsgPrs_ArrowSide | ArrowSide
| ) | `[static]`

static Standard_EXPORT void DsgPrs_LengthPresentation::Add | ( | const Handle(Prs3d_Presentation)& | aPresentation,
|  | const Handle(Prs3d_Drawer)& | aDrawer,
|  | const TCollection_ExtendedString & | aText,
|  | const gp_Pnt & | AttachmentPoint1,
|  | const gp_Pnt & | AttachmentPoint2,
|  | const gp_Pln & | PlaneOfFaces,
|  | const gp_Dir & | aDirection,
|  | const gp_Pnt & | OffsetPoint,
|  | const DsgPrs_ArrowSide | ArrowSide
| ) | `[static]`

static Standard_EXPORT void DsgPrs_LengthPresentation::Add | ( | const Handle(Prs3d_Presentation)& | aPresentation,
|  | const Handle(Prs3d_Drawer)& | aDrawer,
|  | const TCollection_ExtendedString & | aText,
|  | const gp_Pnt & | AttachmentPoint1,
|  | const gp_Pnt & | AttachmentPoint2,
|  | const gp_Dir & | aDirection,
|  | const gp_Pnt & | OffsetPoint,
|  | const DsgPrs_ArrowSide | ArrowSide
| ) | `[static]`

static Standard_EXPORT void DsgPrs_LengthPresentation::Add | ( | const Handle(Prs3d_Presentation)& | aPresentation,
|  | const Handle(Prs3d_Drawer)& | aDrawer,
|  | const TCollection_ExtendedString & | aText,
|  | const gp_Pnt & | AttachmentPoint1,
|  | const gp_Pnt & | AttachmentPoint2,
|  | const gp_Dir & | aDirection,
|  | const gp_Pnt & | OffsetPoint
| ) | `[static]`

void DsgPrs_LengthPresentation::operator delete | ( | void * | anAddress | ) | `[inline]`

void* DsgPrs_LengthPresentation::operator new | ( | size_t | size | ) | `[inline]`

void* DsgPrs_LengthPresentation::operator new | ( | size_t | ,
|  | void * | anAddress
| ) | `[inline]`

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

- DsgPrs_LengthPresentation.hxx