Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
Prs3d_Arrow Class Reference

Provides class methods to draw an arrow at a given location, along a given direction and using a given angle. More...

#include <Prs3d_Arrow.hxx>

Static Public Member Functions

static occ::handle< Graphic3d_ArrayOfTrianglesDrawShaded (const gp_Ax1 &theAxis, const double theTubeRadius, const double theAxisLength, const double theConeRadius, const double theConeLength, const int theNbFacettes)
 Defines the representation of the arrow as shaded triangulation.
 
static occ::handle< Graphic3d_ArrayOfSegmentsDrawSegments (const gp_Pnt &theLocation, const gp_Dir &theDir, const double theAngle, const double theLength, const int theNbSegments)
 Defines the representation of the arrow as a container of segments.
 
static void Draw (const occ::handle< Graphic3d_Group > &theGroup, const gp_Pnt &theLocation, const gp_Dir &theDirection, const double theAngle, const double theLength)
 Defines the representation of the arrow. Note that this method does NOT assign any presentation aspects to the primitives group!
 

Detailed Description

Provides class methods to draw an arrow at a given location, along a given direction and using a given angle.

Member Function Documentation

◆ Draw()

static void Prs3d_Arrow::Draw ( const occ::handle< Graphic3d_Group > & theGroup,
const gp_Pnt & theLocation,
const gp_Dir & theDirection,
const double theAngle,
const double theLength )
static

Defines the representation of the arrow. Note that this method does NOT assign any presentation aspects to the primitives group!

Parameters
theGrouppresentation group to add primitives
theLocationlocation of the arrow tip
theDirectiondirection of the arrow
theAngleangle of opening of the arrow head
theLengthlength of the arrow (from the tip)

◆ DrawSegments()

static occ::handle< Graphic3d_ArrayOfSegments > Prs3d_Arrow::DrawSegments ( const gp_Pnt & theLocation,
const gp_Dir & theDir,
const double theAngle,
const double theLength,
const int theNbSegments )
static

Defines the representation of the arrow as a container of segments.

Parameters
theLocationlocation of the arrow tip
theDirdirection of the arrow
theAngleangle of opening of the arrow head
theLengthlength of the arrow (from the tip)
theNbSegmentscount of points on polyline where location is connected

◆ DrawShaded()

static occ::handle< Graphic3d_ArrayOfTriangles > Prs3d_Arrow::DrawShaded ( const gp_Ax1 & theAxis,
const double theTubeRadius,
const double theAxisLength,
const double theConeRadius,
const double theConeLength,
const int theNbFacettes )
static

Defines the representation of the arrow as shaded triangulation.

Parameters
theAxisaxis definition (arrow origin and direction)
theTubeRadiustube (cylinder) radius
theAxisLengthoverall arrow length (cylinder + cone)
theConeRadiuscone radius (arrow tip)
theConeLengthcone length (arrow tip)
theNbFacettestessellation quality for each part

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