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 occ::handle< Graphic3d_ArrayOfTriangles > | DrawShaded (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_ArrayOfSegments > | DrawSegments (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!
|
Provides class methods to draw an arrow at a given location, along a given direction and using a given angle.
◆ Draw()
Defines the representation of the arrow. Note that this method does NOT assign any presentation aspects to the primitives group!
- Parameters
-
| theGroup | presentation group to add primitives |
| theLocation | location of the arrow tip |
| theDirection | direction of the arrow |
| theAngle | angle of opening of the arrow head |
| theLength | length of the arrow (from the tip) |
◆ DrawSegments()
Defines the representation of the arrow as a container of segments.
- Parameters
-
| theLocation | location of the arrow tip |
| theDir | direction of the arrow |
| theAngle | angle of opening of the arrow head |
| theLength | length of the arrow (from the tip) |
| theNbSegments | count of points on polyline where location is connected |
◆ DrawShaded()
| 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
-
| theAxis | axis definition (arrow origin and direction) |
| theTubeRadius | tube (cylinder) radius |
| theAxisLength | overall arrow length (cylinder + cone) |
| theConeRadius | cone radius (arrow tip) |
| theConeLength | cone length (arrow tip) |
| theNbFacettes | tessellation quality for each part |
The documentation for this class was generated from the following file: