Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
Prs2d_Arrow Class Reference

Constructs the primitive arrow

#include <Prs2d_Arrow.hxx>

Inheritance diagram for Prs2d_Arrow:
Inheritance graph
[legend]

Public Member Functions

 Prs2d_Arrow (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Ax2d &Location, const Standard_Real OpenAngle=5.0, const Standard_Real Length=5.0, const Prs2d_TypeOfArrow theType=Prs2d_TOA_CLOSED)
 create an arrow:
"Location" gives the location and direction,
"OpenAngle" gives the opening angle (in radians),
"Length" gives the length.

const Handle_TColgp_HArray1OfPnt2d ArrayOfPnt2d (const Standard_Boolean withTrsf=Standard_False) const
Prs2d_TypeOfArrow TypeOfArrow () const
 Returns type of arrow
Type is:
TOA_OPENED,
TOA_CLOSED,
TOA_FILLED

virtual void Save (Aspect_FStream &aFStream) const

Protected Member Functions

void Draw (const Handle< Graphic2d_Drawer > &aDrawer)
 Draws the arrow <me>.

virtual void DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws element <anIndex> of the arrow <me>.

virtual void DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws vertex <anIndex> of the arrow <me>.

Standard_Boolean Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle< Graphic2d_Drawer > &aDrawer)
 Returns Standard_True if the arrow <me> is picked,
Standard_False if not.


Constructor & Destructor Documentation

Prs2d_Arrow::Prs2d_Arrow ( const Handle< Graphic2d_GraphicObject > &  aGraphicObject,
const gp_Ax2d Location,
const Standard_Real  OpenAngle = 5.0,
const Standard_Real  Length = 5.0,
const Prs2d_TypeOfArrow  theType = Prs2d_TOA_CLOSED 
)

Member Function Documentation

const Handle_TColgp_HArray1OfPnt2d Prs2d_Arrow::ArrayOfPnt2d ( const Standard_Boolean  withTrsf = Standard_False) const
void Prs2d_Arrow::Draw ( const Handle< Graphic2d_Drawer > &  aDrawer) [protected, virtual]

Implements Graphic2d_Primitive.

virtual void Prs2d_Arrow::DrawElement ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

virtual void Prs2d_Arrow::DrawVertex ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

Implements Graphic2d_Primitive.

virtual void Prs2d_Arrow::Save ( Aspect_FStream aFStream) const [virtual]

Reimplemented from Graphic2d_Line.


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