Open CASCADE Technology  7.1.0.beta
Public Member Functions | Static Public Member Functions | Data Fields

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>

Inheritance diagram for Prs3d_Arrow:
Inheritance graph
[legend]

Public Member Functions

 Standard_DEPRECATED ("Prs3d_Arrow::Draw() taking Graphic3d_Group should be used instead") static void Draw(const Handle< Prs3d_Presentation > &thePrs
 Alias to another method Draw() for backward compatibility. More...
 

Static Public Member Functions

static Handle< Graphic3d_ArrayOfTrianglesDrawShaded (const gp_Ax1 &theAxis, const Standard_Real theTubeRadius, const Standard_Real theAxisLength, const Standard_Real theConeRadius, const Standard_Real theConeLength, const Standard_Integer theNbFacettes)
 Defines the representation of the arrow as shaded triangulation. More...
 
static void Draw (const Handle< Graphic3d_Group > &theGroup, const gp_Pnt &theLocation, const gp_Dir &theDirection, const Quantity_PlaneAngle theAngle, const Quantity_Length theLength)
 Defines the representation of the arrow. Note that this method does NOT assign any presentation aspects to the primitives group! More...
 
- Static Public Member Functions inherited from Prs3d_Root
static Handle< Graphic3d_GroupCurrentGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 Returns the current (last created) group of primititves inside graphic objects in the display. A group also contains the attributes whose ranges are limited to the primitives in it. More...
 
static Handle< Graphic3d_GroupNewGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 Returns the new group of primitives inside graphic objects in the display. A group also contains the attributes whose ranges are limited to the primitives in it. More...
 

Data Fields

const gp_PnttheLocation
 
const gp_Pnt const gp_DirtheDirection
 
const gp_Pnt const gp_Dir const Quantity_PlaneAngle theAngle
 
const gp_Pnt const gp_Dir const Quantity_PlaneAngle const Quantity_Length theLength
 

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

static void Prs3d_Arrow::Draw ( const Handle< Graphic3d_Group > &  theGroup,
const gp_Pnt theLocation,
const gp_Dir theDirection,
const Quantity_PlaneAngle  theAngle,
const Quantity_Length  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)
static Handle< Graphic3d_ArrayOfTriangles > Prs3d_Arrow::DrawShaded ( const gp_Ax1 theAxis,
const Standard_Real  theTubeRadius,
const Standard_Real  theAxisLength,
const Standard_Real  theConeRadius,
const Standard_Real  theConeLength,
const Standard_Integer  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
Prs3d_Arrow::Standard_DEPRECATED ( "Prs3d_Arrow::Draw() taking Graphic3d_Group should be used instead"  ) const

Alias to another method Draw() for backward compatibility.

Field Documentation

const gp_Pnt const gp_Dir const Quantity_PlaneAngle Prs3d_Arrow::theAngle
const gp_Pnt const gp_Dir& Prs3d_Arrow::theDirection
const gp_Pnt const gp_Dir const Quantity_PlaneAngle const Quantity_Length Prs3d_Arrow::theLength
const gp_Pnt& Prs3d_Arrow::theLocation

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